hi,
   When i add a Context in the server.xml, an error occurs:

Apache Tomcat/4.1.31
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.java: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.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

If i remove the added context, tomcat will start.
In fact, i rearrange the directories, i don't know if this will impact on the 
Context. If i put all directories under $CATALINA_HOME, tomcat will work well 
with the Context.

 $CATALINA_HOME/bin/
               shared/
               server/

$CATALINA_BASE/bin/
               conf/
               webapps/
               logs/
               work/
        
Context is as following:       
<Context path="/test" docBase="test" reloadable="true" />
               
     Best Regards.
       jacky  
       

Reply via email to