You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert Priest <Ro...@bentley.com> on 2003/04/02 22:31:30 UTC

War File Not Unpacking.

Running freshly build version of TC 4.1 from cvs tree.
Using JAVA_HOME:       c:\j2sdk1.4.1_01

I have a web application which has only one jsp page in it (and an
index.html page).
The jsp page uploads a file using commons-fileupload.

If I just have a plain old directory containing under the webapps dir,
everything runs fine.

When I package it up as uploadfile.war:

- when starting tomcat, war file does not get unpacked despite having the
following in server.xml:
<Host name="localhost" debug="9999" appBase="webapps" 
       unpackWARs="true" autoDeploy="true">

- the webapps fails to load (of course) with the following error:
2003-04-02 15:23:11 StandardContext[/uploadfile]: Processing start(),
current available=false
2003-04-02 15:23:11 StandardContext[/uploadfile]: Configuring default
Resources
2003-04-02 15:23:11 StandardContext[/uploadfile]: Resources start failed:
java.lang.IllegalArgumentException: Document base ..\webapps\uploadfile does
not exist or is not a readable directory


My web.xml file seems to be valid because it runs when placed under webapps
as a directory. Can anyone tell me what might be my issue?

The following is what my web.xml file looks like:

------Web.xml file ----------------

<?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>Upload File JSP</display-name>
  <description>
     Upload File JSP Sample.
  </description>

<servlet>
  <servlet-name>uploadfile</servlet-name>
  <jsp-file>/jsp/upload.jsp</jsp-file>
</servlet>

<servlet-mapping>
   <servlet-name>uploadfile</servlet-name>
   <url-pattern>/uploadfile</url-pattern>
</servlet-mapping>


<welcome-file-list> 
  <welcome-file>index.html</welcome-file>
</welcome-file-list> 

</web-app>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org