tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@comcast.net
Subject Re: Cannot start Tomcat 4.1
Date Fri, 10 Jun 2005 16:06:15 GMT
Which Sun j2sdk did you install 1.4 or 1.5?
If you installed the Debian-Tomcat 4 package and are using JDK 1.4, try to restart tomcat
by typing  /etc/init.d/tomcat4 restart
The Debian package installs a script named tomcat4 in /etc/init.d to start Tomcat when the
system is started but you can also use it to start, stop, and restart Tomcat.  If you installed
JDK 1.5, you may have to edit /etc/init.d/tomcat4 and add a reference to your JDK - look for
the line that begins with JDK_DIRS and add the absolute path to your JDK.
Then you should be able to:
start tomcat by typing /etc/init.d/tomcat4 start
stop tomcat by typing /etc/init.d/tomcat4 stop
restart your running tomcat by typing /etc/init.d/tomcat4 restart
Instead of deploying your webapps to to /usr/share/tomcat4/server/ you should probably just
deploy them to /usr/share/tomcat4/webapps/ (although I'm no expert on this one).

-------------- Original message -------------- 

> Hi, this is my first message on the list, so, i accept any comments 
> about my poor english :(. 
> 
> The problem: 
> I have installed Tomcat4.1/Sun j2sdk on a debian 3.1 (sarge). Yesterday, 
> it works fine, but today, I have added a new context using the web 
> administrator. Then, I put some JSP files on the context directory 
> (/user/share/tomcat4/server/webapps/****/). The first time I make a 
> pettition to the server, it creates correctly the .class and .java 
> files... BUT, when i reload the app using the web manager... it can not 
> do it. 
> Now, I cannot start Tomcat (using catalina.sh run), getting this message: 
> 
> ... 
> Jun 10, 2005 12:18:28 PM org.apache.coyote.http11.Http11Protocol init 
> INFO: Initializing Coyote HTTP/1.1 on http-8180 
> Starting service Tomcat-Standalone 
> Apache Tomcat/4.1 
> Catalina.start: LifecycleException: Context startup failed due to 
> previous errors 
> LifecycleException: Context startup failed due to previous errors 
> at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3578) 
> at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) 
> at 
> org.apache.catalina.core.StandardHost.start(StandardHost.java:707) 
> at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) 
> at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) 
> at 
> org.apache.catalina.core.StandardService.start(StandardService.java:450) 
> at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) 
> at org.apache.catalina.startup.Catalina.start(Catalina.java:463) 
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) 
> at org.apache.catalina.startup.Catalina.process(Catalina.java:129) 
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav 
> a:25) 
> at java.lang.reflect.Method.invoke(Method.java:324) 
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) 
> Stopping service Tomcat-Standalone 
> Catalina.stop: LifecycleException: Coyote connector has not been started 
> LifecycleException: Coyote connector has not been started 
> at 
> org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296) 
> at 
> org.apache.catalina.core.StandardService.stop(StandardService.java:499) 
> at 
> org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178) 
> at org.apache.catalina.startup.Catalina.start(Catalina.java:494) 
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) 
> at org.apache.catalina.startup.Catalina.process(Catalina.java:129) 
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav 
> a:25) 
> at java.lang.reflect.Method.invoke(Method.java:324) 
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) 
> 
> And the log file shows... 
> 
> 2005-06-10 12:18:29 WebappLoader[/admin]: Deploying class repositories 
> to work directory /usr/share/tomcat4/work/Standalone/localhost/admin 
> 2005-06-10 12:18:29 WebappLoader[/admin]: Deploy class files 
> /WEB-INF/classes to /usr/share/tomcat4/server/webapps/admin/WEB-INF/classes 
> 2005-06-10 12:18:29 WebappLoader[/admin]: Deploy JAR 
> /WEB-INF/lib/struts.jar to 
> /usr/share/tomcat4/server/webapps/admin/WEB-INF/lib/struts.jar 
> 2005-06-10 12:18:29 ContextConfig[/admin] Exception processing JAR at 
> resource path /WEB-INF/lib/struts.jar 
> javax.servlet.ServletException: Exception processing JAR at resource 
> path /WEB-INF/lib/struts.jar 
> at 
> org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:881) 
> at 
> org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:809) 
> at 
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:587) 
> at 
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:181) 
> at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja 
> va:119) 
> at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3523) 
> ... 
> 
> Maybe this error was caused by my newbie condition using Tomcat.... 
> Thanks. 
> 
> -- 
> /*********************************** 
> * Andrés Reyes ( areyes@tcor.net ) 
> * T-COR Desarrollos y Sistemas, S.L. 
> * Teléfno: 957 76 42 48 
> * Fax : 957 76 42 49 
> ***********************************/ 
> 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org 
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org 
> 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message