File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes war flie won't deply Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "war flie won Watch "war flie won New topic

war flie won't deply

Hui Ge

Joined: Mar 11, 2005
Posts: 25
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">



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.
Hui Ge

Joined: Mar 11, 2005
Posts: 25
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 agree. Here's the link:
subject: war flie won't deply
It's not a secret anymore!