Hi Joe,

>URL warFile = new URL("jar:C:/source/ROOT.war");

Take a look at the syntax for the JarURLConnection class.
http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html


-Ben Souther
F.W. Davison & Co, Inc.  ;-)


On Tue, 2004-11-16 at 17:59, Joe Reger, Jr. wrote:
> Hi.
> 
> I have a question regarding the embedded version of Tomcat.  I'd like to
> have a java program start an instance of Tomcat and then deploy a WAR file
> to it.
> 
> ...
> URL warFile = new URL("jar:C:/source/ROOT.war");
> Deployer deployer = (Deployer)host;
> deployer.install("/ROOT", warFile);
> ...
> 
> I get the following error on the first line above:
> java.net.MalformedURLException: no !/ in spec
> 
> This appears to be a known issue with Java:
> http://archives.java.sun.com/cgi-bin/wa?A2=ind0311&L=jini-users&F=&S=&P=1044
> 6
> 
> But in the Tomcat API doc I see "A URL of type "jar:" that points to a WAR
> file, or type "file:" that points to an unpacked directory structure
> containing the web application to be installed ":
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache
> /catalina/Deployer.html#install(java.net.URL,%20java.net.URL)
> 
> Summary: I'd like to use a URL of type "jar:" but I can't seem to get it
> working.  Any help appreciated.
> 
> Sorry for the long message.
> 
> Joe Reger 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to