tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8418] New: - Context declarations causing war files not to be expanded
Date Tue, 23 Apr 2002 14:41:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8418>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8418

Context declarations causing war files not to be expanded

           Summary: Context declarations causing war files not to be
                    expanded
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tony@dahbura.com


When specifying a context in the server.xml file, and placing the application in 
the webapps directory as a war file, tomcat does not expand it out.  Tomcat 
gives the following error at startup:

2002-04-23 10:01:37 StandardContext[/resourcetracker]: Error initializing 
resources: Document base /cust/jakarta-tomcat-4.1/webapps/resourcetracker does 
not exist or is not a readable directory
2002-04-23 10:01:37 StandardContext[/resourcetracker]: Context startup failed 
due to previous errors
2002-04-23 10:01:37 StandardContext[/resourcetracker]: Exception during cleanup 
after start failed
LifecycleException:  Container StandardContext[/resourcetracker] has not been 
started
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
        at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3440)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3397)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
        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)


If instead I remove the context specification from the server.xml file the 
application war file is expanded at startup and everything proceeds as expected. 
 It appears the expansion handling is not called first when specifying a context 
under the <host> tag.

The virtual host is defined as follows:

   <!-- Define the default virtual host -->
      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">

underneath it is the following context tag:
 <Context path="/resourcetracker" docBase="resourcetracker" debug="0"
                 reloadable="true" unpackWARs="true">

          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="localhost_resourcetracker_log." suffix=".txt"
              timestamp="true"/>

 </Context>

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message