aspose file tools*
The moose likes Tomcat and the fly likes Tomcat Installation/Config Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Installation/Config Error" Watch "Tomcat Installation/Config Error" New topic
Author

Tomcat Installation/Config Error

Ryan Tanz
Greenhorn

Joined: Aug 04, 2005
Posts: 1
I'm installing (using Windows installer .exe) Tomcat 5 on one of my servers at work. I was following instructions from http://www.coreservlets.com/Apache-Tomcat-Tutorial/
It did previously have an older Tomcat 5.x on it. I uninstalled, the followed the instructions for 5.5.9. Installation went fine. Now when I try to run Start->Programs->Tomcat->Configure Tomcat I get an error of Application System Error : An instance of 'Tomcat5' application is already running. So I then go to program files/apache soft/tomcat/bin/tomcat5w.exe.
I set Tomcat to be automatically started and start the service. I then try to log onto localhost:8080. It cant find the server. I open back up the tomcat5w.exe file and find that the service has been stopped. I find it to be the same way in my administrative tools->services. Tomcat gets killed immediately after the service starts. What's the deal?

Edit: I'm using j2re1.4.2_06 as my JVM (along with the compatability files) and I tried using jre1.5.0_04 and I get the same problem.

Edit: Ok. Somehow I got my localhost:8080 to work. It displays the tomcat thing but once i run tomcat I get this error.

Aug 4, 2005 1:17:29 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)
at org.apache.catalina.connector.Connector.initialize(Connector.java:928)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Aug 4, 2005 1:17:29 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.Connector.initialize(Connector.java:930)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Aug 4, 2005 1:17:29 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1531 ms
Aug 4, 2005 1:17:29 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 4, 2005 1:17:29 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Aug 4, 2005 1:17:29 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 4, 2005 1:17:30 PM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:182)
at org.apache.catalina.connector.Connector.start(Connector.java:1001)
at org.apache.catalina.core.StandardService.start(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Aug 4, 2005 1:17:30 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.Connector.start(Connector.java:1003)
at org.apache.catalina.core.StandardService.start(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Aug 4, 2005 1:17:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1688 ms
Aug 4, 2005 1:17:31 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:346)
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Aug 4, 2005 1:17:31 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Aug 4, 2005 1:17:31 PM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.jk.server.JkMain.pause(JkMain.java:675)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:209)
at org.apache.catalina.connector.Connector.pause(Connector.java:943)
at org.apache.catalina.core.StandardService.stop(StandardService.java:491)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:629)
Aug 4, 2005 1:17:32 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Aug 4, 2005 1:17:32 PM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:161)
at org.apache.catalina.connector.Connector.stop(Connector.java:1044)
at org.apache.catalina.core.StandardService.stop(StandardService.java:521)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:629)
Aug 4, 2005 1:17:32 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Aug 4, 2005 1:17:32 PM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started


[ August 04, 2005: Message edited by: Ryan Tanz ]
[ August 04, 2005: Message edited by: Ryan Tanz ]
chsanthosh kumar
Ranch Hand

Joined: Jun 28, 2005
Posts: 56
Originally posted by Ryan Tanz:
I'm installing (using Windows installer .exe) Tomcat 5 on one of my servers at work. I was following instructions from http://www.coreservlets.com/Apache-Tomcat-Tutorial/
It did previously have an older Tomcat 5.x on it. I uninstalled, the followed the instructions for 5.5.9. Installation went fine. Now when I try to run Start->Programs->Tomcat->Configure Tomcat I get an error of Application System Error : An instance of 'Tomcat5' application is already running. So I then go to program files/apache soft/tomcat/bin/tomcat5w.exe.
I set Tomcat to be automatically started and start the service. I then try to log onto localhost:8080. It cant find the server. I open back up the tomcat5w.exe file and find that the service has been stopped. I find it to be the same way in my administrative tools->services. Tomcat gets killed immediately after the service starts. What's the deal?

Edit: I'm using j2re1.4.2_06 as my JVM (along with the compatability files) and I tried using jre1.5.0_04 and I get the same problem.

Edit: Ok. Somehow I got my localhost:8080 to work. It displays the tomcat thing but once i run tomcat I get this error.

Aug 4, 2005 1:17:29 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)
at org.apache.catalina.connector.Connector.initialize(Connector.java:928)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Aug 4, 2005 1:17:29 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.Connector.initialize(Connector.java:930)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Aug 4, 2005 1:17:29 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1531 ms
Aug 4, 2005 1:17:29 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 4, 2005 1:17:29 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Aug 4, 2005 1:17:29 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 4, 2005 1:17:30 PM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:182)
at org.apache.catalina.connector.Connector.start(Connector.java:1001)
at org.apache.catalina.core.StandardService.start(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Aug 4, 2005 1:17:30 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.Connector.start(Connector.java:1003)
at org.apache.catalina.core.StandardService.start(StandardService.java:459)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Aug 4, 2005 1:17:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1688 ms
Aug 4, 2005 1:17:31 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:346)
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Aug 4, 2005 1:17:31 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Aug 4, 2005 1:17:31 PM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.jk.server.JkMain.pause(JkMain.java:675)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:209)
at org.apache.catalina.connector.Connector.pause(Connector.java:943)
at org.apache.catalina.core.StandardService.stop(StandardService.java:491)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:629)
Aug 4, 2005 1:17:32 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Aug 4, 2005 1:17:32 PM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:161)
at org.apache.catalina.connector.Connector.stop(Connector.java:1044)
at org.apache.catalina.core.StandardService.stop(StandardService.java:521)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:629)
Aug 4, 2005 1:17:32 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Aug 4, 2005 1:17:32 PM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started


[ August 04, 2005: Message edited by: Ryan Tanz ]

[ August 04, 2005: Message edited by: Ryan Tanz ]




Hi Ryan Tanz,

Here is the problem with port number 8080.

Plz change that port number to some other number like 8082,8083..etc.

For that you have to

tomcat/conf/server.xml

under that plz serach for 8080,
i think it will give 2 matches their you can change your server's port number to 8082 and stop the tomcat and restart it.

it will work for you.

Thanks


---------------------<br />SCJP(1.4)With 95%<br /> <br />Do it Right and Forget it!
sweta naidu
Greenhorn

Joined: Nov 02, 2004
Posts: 25
If you dont want to change the port number then type http://localhost:8080 and see which server is running at that port and shut that down by going to control panel.
Dharmesh Gangani
Ranch Hand

Joined: Feb 20, 2004
Posts: 30
Hi,

The error means that the some service is already running at port 8080. Tou can change the port to some other number like 8085, 8086, etc. and restart the server.

Also, you can re-install tomcat 5.0. During its installation, it asks for a port number. you can soecify any other port number. (this is only for tomcat 5.0 installation)


-=-=-=-=-=-=-=-=-=-<br />Thanks & Regards,<br />Dharmesh G.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Installation/Config Error