ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Creating a Web Application with Ant and Tomcat 4
Subject:   Great article, but I can't deploy my war.
Date:   2003-10-22 02:15:06
From:   anonymous2
Using Windows 2000, Tomcat 4.1.12, and Ant 1.5.1.


The war file ends up in the same directory in which I have the build.xml (to keep it really simple), so in the "deploy" task element I have: war="file:${app.name}.war" . (So no slashes.) The error I get: "java.net.MalformedURLException: unknown protocol: c"


When I try war="file://${app.name}.war" (because the double slash appears in the war attribute of the install task element at the bottom of the "The Tomcat 4 Servlet/JSP Container - Manager App HOW-TO" document.), I get "java.net.UnknownHostException: SimpleApp.war" . ("SimpleApp" is the name of my application.)


Could it make a difference that I am using the Ant's "war" task to create the war (instead of its "jar" task)?


Thanks in advance for any help you can provide.