tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Embedded Tomcat deploying WAR with URL of type jar:
Date Wed, 17 Nov 2004 13:28:00 GMT

Hi,
Or the Manager webapp docs, which show example WAR URLs.

Yoav Shapira http://www.yoavshapira.com
 

>-----Original Message-----
>From: Ben Souther [mailto:bsouther@fwdco.com]
>Sent: Tuesday, November 16, 2004 6:34 PM
>To: Tomcat Users List
>Subject: Re: Embedded Tomcat deploying WAR with URL of type jar:
>
>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: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message