I created a ware file and following is the contents of the war file.
It just has a
Servlet and a index.html file.
D:\myapp>jar -tf kar.war
META-INF/
META-INF/MANIFEST.MF
index.html
web-inf/
web-inf/classes/
web-inf/classes/pack/
web-inf/classes/pack/HelloServlet.class
web-inf/classes/pack/HelloServlet.java
web-inf/web.xml
I copied it to the webapps directory.
When i start
tomcat it is able to extract the war file and i see the directory structure as well.
But while adding the web application it complains about web.xml file.
BUT i can see the web.xml file in
D:\Apache Tomcat 4.0\webapps\kar\web-inf
directory.
This is the trace..
2002-03-16 13:01:19 StandardHost[localhost]: Installing web application at context path /kar from URL jar:file
:\Apache Tomcat 4.0\webapps\kar.war!/
2002-03-16 13:01:19 WebappLoader[/kar]: Deploying class repositories to work directory D:\Apache Tomcat 4.0\work\localhost\kar
2002-03-16 13:01:19 StandardManager[/kar]: Seeding random number generator class java.security.SecureRandom
2002-03-16 13:01:19 StandardManager[/kar]: Seeding of random number generator has been completed
2002-03-16 13:01:19 ContextConfig[/kar]: Missing application web.xml, using defaults only
2002-03-16 13:01:19 StandardWrapper[/kar
efault]: Loading container servlet default
2002-03-16 13:01:19 default: init
2002-03-16 13:01:19 StandardWrapper[/kar:invoker]: Loading container servlet invoker
2002-03-16 13:01:19 invoker: init
2002-03-16 13:01:19
jsp: init
2002-03-16 13:01:19 Internal Error: File /WEB-INF/web.xml not found
2002-03-16 13:01:19 StandardContext[/kar]: Servlet /kar threw load() exception