Please help: Error using Jakarta-tomcat 4.0 beta

Hi all,

Could you please help me with a following error?

I am trying to start Jakarta-tomcat 4.0:

C:\ Jakarta-tomcat 4.0\bin\startup.bat and I receive the error:

Catalina.start: LifecycleException: null.open: java.net.BindException: Address

already in use: JVM_Bind

LifecycleException: null.open: java.net.BindException: Address already in use:

JVM_Bind

at org.apache.catalina.connector.http.HttpConnector.initialize(Unknown S

ource)

at org.apache.catalina.core.StandardService.initialize(Unknown Source)

at org.apache.catalina.core.StandardServer.initialize(Unknown Source)

at org.apache.catalina.startup.Catalina.start(Unknown Source)

at org.apache.catalina.startup.Catalina.execute(Unknown Source)

at org.apache.catalina.startup.Catalina.process(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:30)

at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAcces

sorImpl.java:48)

at java.lang.reflect.Method.invoke(Method.java:306)

at org.apache.catalina.startup.Bootstrap.main(Unknown Source)

-- Root Cause --

java.net.BindException: Address already in use: JVM_Bind

at java.net.PlainSocketImpl.socketBind(Native Method)

at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:310)

at java.net.ServerSocket.bind(ServerSocket.java:305)

at java.net.ServerSocket.bind(ServerSocket.java:265)

at java.net.ServerSocket.<init>(ServerSocket.java:201)

at java.net.ServerSocket.<init>(ServerSocket.java:150)

at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Unkno

wn Source)

at org.apache.catalina.connector.http.HttpConnector.open(Unknown Source)

at org.apache.catalina.connector.http.HttpConnector.initialize(Unknown S

ource)

at org.apache.catalina.core.StandardService.initialize(Unknown Source)

at org.apache.catalina.core.StandardServer.initialize(Unknown Source)

at org.apache.catalina.startup.Catalina.start(Unknown Source)

at org.apache.catalina.startup.Catalina.execute(Unknown Source)

at org.apache.catalina.startup.Catalina.process(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:30)

at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAcces

sorImpl.java:48)

at java.lang.reflect.Method.invoke(Method.java:306)

at org.apache.catalina.startup.Bootstrap.main(Unknown Source)

Thanks a lot

Yahya

[2775 byte] By [yahyaaccess] at [2007-11-15]
# 1

When tomcat doesnt get stoped properly some of the java processes keeps running on the tomcat port.

You can check this by ps -aef

and kill the process ids by

kill -9 PID

where PID is process id

and then start tomcat

Hope this will help.

Thanks,

vrb1111

vrb1111 at 2007-7-2 > top of java,Other Topics,Java Community Process (JCP) Program...
# 2

Whenever you encounter a similar problem try to check the following this,

I am listing down the possible problems,

1. Try to check whether the port has been taken by some other OS or Application processes. If so try killing it.

2. Change the port numbers of both httpconnector and warp connector in server.xml and try.Or try restarting too.Try.

3. There is a possiblity that Tomcat gets started as a Service automatically at startup.That was the reason it was giving problem.See this in control panel ->Administrative Tools under Services.So dont start again explicitly if started automatically.If you try to start the server again after startup,actually you are trying to create two instances using the same port.. Also this will create an error here.

Hackerzhut.Inc at 2007-7-2 > top of java,Other Topics,Java Community Process (JCP) Program...