I am still unable to get this to unpack automatically, I have to unpack it myself before starting Tomcat and then it is ok
in my web.xml I have
<web-app>
<servlet>
<servlet-name>Controller</servlet-name>
<servlet-class>com.testapp.Controller</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Controller</servlet-name>
<url-pattern>/controller</url-pattern>
</servlet-mapping> </web-app>


Is there anything I can do here which might make a difference.

Paul Taylor wrote:

Thanks I use a File() constructor because the same class is used in a standalone situation
Ive checked my server.xml and it already seems to have unpacking set.


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

should my docbase me appname or appname.war

Shapira, Yoav wrote:

Hi,



How can I get round this ?


Two ways: either configure the Host in server.xml to unpackWARs (which
is the default I think even for Tomcat 4.x).  Or write your app to the
Servlet Spec, which means no File constructions except in the
javax.servlet.context.tempdir directory.

Yoav



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.






---------------------------------------------------------------------
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]



Reply via email to