File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Two tomcat windows on clicking startup.bat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Two tomcat windows on clicking startup.bat" Watch "Two tomcat windows on clicking startup.bat" New topic
Author

Two tomcat windows on clicking startup.bat

abheeshek reddy
Ranch Hand

Joined: Nov 28, 2008
Posts: 41
Two tomcat windows on clicking startup.bat

Here is one of the tomcat window message

Listening for transport dt_socket at address: 8000 May 13, 2009 12:58:13 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\PC Connectivity \oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\PC Connectivity Solution\;C:\Program Files\Java\jdk1.5.0\bin;C:\oraclexe\app\oracle\produ WS\System32\Wbem;C:\Program Files\Common Files\Teleca Shared;E:\Technical\apache-ant-1.7.1\bin; May 13, 2009 12:58:13 PM org.apache.coyote.http11.Http11BaseProtocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use: JVM_Bind:8001 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298) at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139) at org.apache.catalina.connector.Connector.initialize(Connector.java:1017) at org.apache.catalina.core.StandardService.initialize(StandardService.java:578) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782) at org.apache.catalina.startup.Catalina.load(Catalina.java:504) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) May 13, 2009 12:58:13 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8001 at org.apache.catalina.connector.Connector.initialize(Connector.java:1019) at org.apache.catalina.core.StandardService.initialize(StandardService.java:578) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782) at org.apache.catalina.startup.Catalina.load(Catalina.java:504) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) May 13, 2009 12:58:13 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1250 ms May 13, 2009 12:58:14 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina May 13, 2009 12:58:14 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.26 May 13, 2009 12:58:14 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled May 13, 2009 12:58:15 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive alls.war May 13, 2009 12:58:15 PM org.apache.catalina.startup.HostConfig deployWAR


Below is the startup.bat code

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
What does "Two tomcat windows on clicking startup.bat" mean - are you trying to run two instances of Tomcat? If so, you need to set them up so that they use different ports; that's what "Address already in use: JVM_Bind:8001" complains about.

It's also possible to run a single Tomcat instance so that it listens on several ports (maybe 8080 and 8180). The Tomcat docs explain how to do this.


Ping & DNS - my free Android networking tools app
abheeshek reddy
Ranch Hand

Joined: Nov 28, 2008
Posts: 41
Ulf Dittmer wrote:What does "Two tomcat windows on clicking startup.bat" mean - are you trying to run two instances of Tomcat? If so, you need to set them up so that they use different ports; that's what "Address already in use: JVM_Bind:8001" complains about.

It's also possible to run a single Tomcat instance so that it listens on several ports (maybe 8080 and 8180). The Tomcat docs explain how to do this.



Sorry Its my mistake. I haven't explained my problem.

Two tomcat windows are opening when i am clicking on startup.bat. i want to get rid of this....

In other words what changes i have to make so that only one tomcat window should open when i am clicking on startup.bat (normal behaviour)

Thanks in advance
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12756
    
    5
Two instances are being created because thats what your startup.bat says to do.


Thats two executions of catalina.bat - each one creates a Tomcat instance. This is NOT the default startup.bat - why was it modified?

Bill
abheeshek reddy
Ranch Hand

Joined: Nov 28, 2008
Posts: 41
William Brogden wrote:Two instances are being created because thats what your startup.bat says to do.


Thats two executions of catalina.bat - each one creates a Tomcat instance. This is NOT the default startup.bat - why was it modified?

Bill





Thanks alot William. I modified startup.bat for jpda debugging.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two tomcat windows on clicking startup.bat
 
Similar Threads
unable to log with log4j in tomcat 6.0.29
Tomcat 5.5.23
Tomcat installation problems!
multiple tomcat instances:Need Help
startup.bat stops itself