• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Two tomcat windows on clicking startup.bat

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Rancher
Posts: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
abheeshek reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.


 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic