You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by JB...@silenus.com on 2002/03/04 16:32:27 UTC

Tomcat 4.0.2 unpacking wars

I've upgraded from Tomcat 3 to Tomcat 4.0.2 and have lost the ability to
unpack wars. Here is a piece of my server.xml

      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
        <Context path="/PSP" docBase="PSP" debug="0" reloadable="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="PspContext." suffix=".txt"
                  timestamp="true"/>
        </Context>

I use the following command to create my war file from within the PSP
directory
jar cfv PSP.war .

This worked great with Tomcat 3(something) but I get the following error
when tomcat 4 starts:

2002-03-04 10:17:09 StandardContext[/PSP]: Error initializing resources:
Document base C:\Tomcat402\webapps\PSP does not exist or is not a readable
directory
2002-03-04 10:17:09 StandardContext[/PSP]: Context startup failed due to
previous errors
2002-03-04 10:17:09 StandardContext[/PSP]: Exception during cleanup after
start failed
LifecycleException:  Container StandardContext[/PSP] has not been started
     at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
     at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3451)
     at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3408)
     at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
     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.CatalinaService.start(CatalinaService.java:261)
     at
org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:172)
     at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
     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.BootstrapService.main(BootstrapService.java:428)

It is correct that the PSP directory doesn't exist but shouldn't tomcat
create that directory when unpacking the war (which it doesn't do). Any
ideas on how to solve this problem?

Thanks in advance,

Jason E. Brawner


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>