adSense 900*70


Tomcat Error and fix JSP

Tomcat Errors and Fix

Tomcat start and stop Error

Cannot assign requested address

Error message

SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]: 
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:382)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:420)
at org.apache.catalina.startup.Catalina.await(Catalina.java:713)
at org.apache.catalina.startup.Catalina.start(Catalina.java:659)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

Cause

127.0.0.1 -localhost에 대한 loopback 설정이 안되어 있기 때문.

How to fix

Linux계열

아래와 같이 /etc/network/interfaces의 내용을 편집하여 현재 사용중인 ethernet adapter에 loopback을 설정해준다.

sudo nano /etc/network/interfaces

/etc/network/interfaces 추가 내용

iface eth0 inet loopback

덧글

댓글 입력 영역


side adsense

adSense 900*70