Hi, Or the Manager webapp docs, which show example WAR URLs. Yoav Shapira http://www.yoavshapira.com
>-----Original Message----- >From: Ben Souther [mailto:[EMAIL PROTECTED] >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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
