aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes tomcat startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "tomcat startup" Watch "tomcat startup" New topic
Author

tomcat startup

dhana rangu
Ranch Hand

Joined: Oct 01, 2003
Posts: 65
I am not sure whether this is the correct place to post my question.

my problem is

When i start tomcat startup,I am geting a window(which is like dos window) and is disappearing quicly...

I didn't have this problem earlier..but all of a sudden its happening.
My OS is windows2000 server..

plz help me in resolving this
Arvind Chavar
Ranch Hand

Joined: May 16, 2001
Posts: 53
Check if JAVA_HOME setting is still correct.One more thing you could try is
open dos window , go to bin directory , and then type the startup.bat.That way you get to see at the error.Additionally you can look at log file for any errors
dhana rangu
Ranch Hand

Joined: Oct 01, 2003
Posts: 65
Hi my environment variables are properly set

I tried to start at the command prompt as follows:


E:\tomcat\jakarta-tomcat-4.1.30\bin>startup.bat


Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: e:\j2sdk1.4.2_04



these are what i saw on the window...plz help>>Even now tomcat window is disaapearing
Ion Gherasim
Greenhorn

Joined: Jul 23, 2003
Posts: 25
Please check the "Start in" setting. It must point to TOMCAT_HOME
Ram Kumar Subramaniam
Ranch Hand

Joined: Jan 17, 2003
Posts: 68
run tomcat on a command prompt. dont use startup. you can observe the error and get it resolved. check if there is come other server running on the same port.

C:\jakarta-tomcat-5.0.16\bin>catalina run
dhana rangu
Ranch Hand

Joined: Oct 01, 2003
Posts: 65
thanks all of u for ur reply

I have change server.xml inorder to add servlet context.some thing was gone wrong there with out my notice..

i made the reqd changes and its working fine now

thanks
dhana
arnel nicolas
Ranch Hand

Joined: Dec 16, 2003
Posts: 149
the easiest way to determine the problem is to run tomcat in the DEBUG mode
like "catalina debug" in the command prompt for Win.

arnel
Nithya Nandakumar
Greenhorn

Joined: Jun 27, 2004
Posts: 2
My Tomcat is installed inside the JRE folder of Java. So I gave the cmd
d:\j2sdk1.4\jre\Tomcat 5.0\bin>catlina run
The error message that I got was:
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: d:\j2sdk1.4
Jul 6, 2004 9:48:43 AM 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:306)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184)
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1445)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:648)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2416)
at org.apache.catalina.startup.Catalina.load(Catalina.java:545)
at org.apache.catalina.startup.Catalina.load(Catalina.java:566)
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:324)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
Jul 6, 2004 9:48:43 AM 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.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1447)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:648)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2416)
at org.apache.catalina.startup.Catalina.load(Catalina.java:545)
at org.apache.catalina.startup.Catalina.load(Catalina.java:566)
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:324)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
Jul 6, 2004 9:48:43 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1641 ms
Jul 6, 2004 9:48:43 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 6, 2004 9:48:43 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Jul 6, 2004 9:48:43 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 6, 2004 9:48:43 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jul 6, 2004 9:48:43 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file :\J2SDK1.4\jre\Tomcat 5.0\conf\Catalina\localhost\admin.xml
Jul 6, 2004 9:48:45 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jul 6, 2004 9:48:45 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Jul 6, 2004 9:48:45 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Jul 6, 2004 9:48:51 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file :\J2SDK1.4\jre\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
Jul 6, 2004 9:48:51 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file :\J2SDK1.4\jre\Tomcat 5.0\conf\Catalina\localhost\manager.xml
Jul 6, 2004 9:48:51 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file :\J2SDK1.4\jre\Tomcat 5.0\webapps\jsp-examples
Jul 6, 2004 9:48:52 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /maritz from URL file :\J2SDK1.4\jre\Tomcat 5.0\webapps\maritz
Jul 6, 2004 9:48:52 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL file :\J2SDK1.4\jre\Tomcat 5.0\webapps\ROOT
Jul 6, 2004 9:48:52 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL file :\J2SDK1.4\jre\Tomcat 5.0\webapps\servlets-examples
Jul 6, 2004 9:48:52 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file :\J2SDK1.4\jre\Tomcat 5.0\webapps\tomcat-docs
Jul 6, 2004 9:48:52 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file :\J2SDK1.4\jre\Tomcat 5.0\webapps\webdav
Jul 6, 2004 9:48:52 AM 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:306)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:323)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:218)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1545)
at org.apache.catalina.core.StandardService.start(StandardService.java:528)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Jul 6, 2004 9:48:52 AM 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.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1547)
at org.apache.catalina.core.StandardService.start(StandardService.java:528)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Jul 6, 2004 9:48:52 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9531 ms
StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.<init>(ServerSocket.java:182)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:534)
at org.apache.catalina.startup.Catalina.await(Catalina.java:657)
at org.apache.catalina.startup.Catalina.start(Catalina.java:617)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)


PLEASE HELP. I NEED TO DEPLOY SOME APPLICATION
arnel nicolas
Ranch Hand

Joined: Dec 16, 2003
Posts: 149
Most probably your port 8080 (Default Tomcat port) is currently in used
by another application.Another thing may be your Tomcat server starts up as a service therefore using port 8080 at the moment and then you are trying
to run tomcat in the console which will give the error messages that you have posted.Just to make sure, if u are using Windows, you may try rebooting your machine (da@#$ Windows).

arnel
 
jQuery in Action, 2nd edition
 
subject: tomcat startup