Just for the record, this is how it is....Jacob,
Tomcat4.x.x:
If one defines the context in server.xml or in a context configuration file, the .war file corresponding to the webapp that it refers to will not be unpacked. Why this is the behavior or Tomcat4.x.x is beyond me.
Tomcat5.x.x
One should not define the context in server.xml, but in a context configuration file. And in either case, the .war file will be unpacked no matter what. This is what it always should have been.
Moral of the story, move off of Tomcat4.x.x and on to Tomcat5.x.x to get server behavior that makes sense.
Jake
At 03:47 PM 3/13/2004 -0500, you wrote:
I don't know why the WAR file is not unpacking automatically but I'd like to
suggest a simpler alternative than creating a directory and unjarring it
manually: use the Tomcat Manager application, specifically the "Upload a WAR
file to install" section.
Rhino
----- Original Message ----- From: "phil campaigne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 13, 2004 3:09 PM Subject: War does not unpack on deployment
> My application "Test.war"is not unpacking when I ftp it to the > jakarta-tomcat/webapps directory on my host. Even after stop and > re-start. If I mkdir Test and move test.war into it and jar -vxf > Test.war then it does expand and run properly. > > > This is my server.xml entries > ********************************** > <!-- Define the default virtual host --> > <Host name="localhost" debug="0" appBase="webapps" > unpackWARs="true" autoDeploy="true"> > > > <!-- Test Context --> > <Context path="/Test" docBase="Test" > debug="100" privileged="true"/> > ******************************************************** > > This is my web.xml > > ******************************************************** > <?xml version="1.0" encoding="ISO-8859-1"?> > > <!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > <display-name>Test</display-name> > > > <servlet> > <servlet-name>Test</servlet-name> > <display-name>Test</display-name> > <servlet-class>com.op.test.Test</servlet-class> > </servlet> > > > <servlet-mapping> > <servlet-name>Test</servlet-name> > <url-pattern>/Test</url-pattern> > </servlet-mapping> > > </web-app> > *********************************************** > Why doesn't unpack automatically? > Thanks, > Phil Campaigne > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
My hosting service is Tomcat 4.18 so I'm kind of stuck with 4.x. Are you saying if I use tomcat 4.x I must not put a context for my applicaton in server.mxl? Then it will be unpacked automatially?
thanks,
Phil
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
