File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "war flie won Watch "war flie won New topic
Author

war flie won't deply

Hui Ge
Greenhorn

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">
<web-app>
<servlet>
<servlet-name>chapter04Servlet</servlet-name>
<servlet-class>PrintHeaders</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>chapter04Servlet</servlet-name>
<url-pattern>/print</url-pattern>
</servlet-mapping>

<welcome-file>index.html</welcome-file>
</web-app>

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: war flie won't deply
 
Similar Threads
Unable to view application
HelloWorld servlet not working
Problem with webapplication during deploying
Servlet Not working
servlets in Oracle Application server for windows2000