tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bachoo jahnkar <manut...@yahoo.com>
Subject tomcat not finding the context root.
Date Thu, 01 Sep 2005 17:57:39 GMT
Hi,
 
my application is in the /webapps/hst/htdocs directory. I have created a war file from ../hst
directory and named it hst.war. I have used ant task to do it.
 
<war destfile="${tomcat.home}/webapps/hst/hst.war" 
            webxml="${tomcat.home}/webapps/hst/htdocs/WEB-INF/web.xml"
            >
            <fileset dir="${tomcat.home}/webapps/hst"/>
            <excludesfile name="${tomcat.home}/webapps/hst/htdocs/WEB-INF/web.xml"/>
       </war>
  
 
when i copy the war file to the unix box and restart tomcat, it creates WEB-INF file under
/hst ( webapps/hst/WEB-INF/web.xml). there is also webapps/hst/htdocs/WEB-INF/web.xml.
my server.xml has context which has docbase="hst/htdocs". When i try to run my application
on tomcat i get the following error.  Context path is set to /hst and not /hst/htdocs as in
server.xml. Please help
 
-----------------------------------------------log-----------------------------------------------------------------------
 
2005-09-01 12:59:29 StandardHost[localhost]: Installing web application at context path /hst
from URL jar:file:/var/jakarta-tomcat-4.0.3/webapps/hst.war!/
2005-09-01 12:59:42 WebappLoader[/hst]: Deploying class repositories to work directory /var/jakarta-tomcat-4.0.3/work/localhost/hst
2005-09-01 12:59:42 StandardManager[/hst]: Seeding random number generator class java.security.SecureRandom
2005-09-01 12:59:42 StandardManager[/hst]: Seeding of random number generator has been completed
2005-09-01 12:59:42 ContextConfig[/hst]: Added certificates -> request attribute Valve
2005-09-01 12:59:42 ContextConfig[/hst]: Configured an authenticator for method FORM
2005-09-01 12:59:43 StandardWrapper[/hst:default]: Loading container servlet default
2005-09-01 12:59:43 default: init
2005-09-01 12:59:43 StandardWrapper[/hst:invoker]: Loading container servlet invoker
2005-09-01 12:59:43 invoker: init
2005-09-01 12:59:43 jsp: init
2005-09-01 12:59:43 StandardWrapper[/hst:cgi]: Loading container servlet cgi
2005-09-01 12:59:43 cgi: init
2005-09-01 12:59:43 cgi: init: loglevel set to 6
2005-09-01 12:59:43 StandardWrapper[/hst:ControllerServlet]: Marking servlet ControllerServlet
as unavailable
2005-09-01 12:59:43 StandardContext[/hst]: Servlet /hst threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class edu.mit.hst.ControllerServlet
or a class it depends on
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.lang.ClassNotFoundException: edu.mit.hst.ControllerServlet
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1243)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:865)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
2005-09-01 12:59:43 Ajp13Connector[8009] Opening server socket on all host IP addresses
2005-09-01 12:59:43 Ajp13Connector[8009] Starting background thread
2005-09-01 12:59:43 Ajp13Processor[8009][0] Starting background thread
2005-09-01 12:59:43 Ajp13Processor[8009][1] Starting background thread
2005-09-01 12:59:43 Ajp13Processor[8009][2] Starting background thread
2005-09-01 12:59:43 Ajp13Processor[8009][3] Starting background thread
2005-09-01 12:59:43 Ajp13Processor[8009][4] Starting background thread


		
---------------------------------
 Start your day with Yahoo! - make it your home page 
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message