I am using tomcat5.5, jsdk1.5, eclipse3.1, sysdeo tomcatplugin3 to create a simple war file with web.xml in WEB-INF and the class file in WEB-INF/classes. I download the dtd file and host it on my won machine so that i can code offline.
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://localhost/dtd/web-app_2_3.dtd"> <web-app> <servlet> <servlet-name>chapter04Servlet</servlet-name> <servlet-class>PrintHeaders</servlet-class> </servlet>
I cannot understand why my war file won't deploy. I looked into the webapps folder and the war file is not exploded into its folders.
Joined: Mar 11, 2005
After a fair amount of experimenting and investigating, i found out that the problem is after a test.war file is copied to webapps directory a test.xml file is created in conf\Catalina\localhost folder causing redeployment of test.war file to fail subsequently.
After i deleted the test.war file everything functions as normal. Which part of the server.xml file can i edit to change this behaviour?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com