You shouldn't have backslashes when creating a file: protocol URL (although Java seems somewhat forgiving) and you shouldn't be using the jar: protocol for this scenario. Using the jar: protocol and with the "!" at the end is only if you were going to try to access a resource inside the archive for direct viewing.
An example of that can be seen on my web site here (using Mozilla): http://www.visi.com/~hoju/resources_test.html which uses img tags pointing to the following image locations: jar:http://www.visi.com/~hoju/assets/resources/resources_test.jar!/images/apache_pb.gif and jar:file:///C:/resources_test.jar!/images/apache_pb.gif What you want is: file:///C:/Projects/Crossbar/dist/crossbar.war Jake At 06:37 PM 8/12/2002 -0700, you wrote: >On Tue, 13 Aug 2002, Daniel Kehoe wrote: > > > Date: Tue, 13 Aug 2002 01:32:48 UT > > From: Daniel Kehoe <[EMAIL PROTECTED]> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > > To: Tomcat Users List <[EMAIL PROTECTED]> > > Subject: Re: web app mgr syntax for a Windows war location > > > > On Mon, 12 Aug 2002 17:38:57 -0700 (PDT), "Craig R. McClanahan" > > <[EMAIL PROTECTED]> said: > > > this should work: > > > jar:file:d:\Projects/<myapp>/crossbar.war!/ > > > > I tried > > WAR URL: "jar:file:C:\Projects/Crossbar/dist/crossbar.war!/" and got > > Message: FAIL - Encountered exception java.net.MalformedURLException: > > no protocol > > and tried > > WAR URL: "file:C:\Projects/Crossbar/dist/crossbar.war!/" and got > > Message: FAIL - Encountered exception java.net.MalformedURLException: > > no protocol: > > and tried > > WAR URL: "C:\Projects/Crossbar/dist/crossbar.war!/" > > Message: FAIL - Invalid application URL > > C:\Projects/Crossbar/dist/crossbar.war!/ was specified > > > > When I use the "ant install" target I see (in my Tomcat log file): > > "Manager: install: Installing web application at '/crossbar' from > > 'file://C:\Projects\Crossbar/build'" > > but variations on that don't work either. > > > > The docs at > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html > > say "The supported syntax for a URL referring to a WAR file is > > described on the Javadocs page for the java.net.JarURLConnection class" > > but the javadoc only gives examples for "http" not "file" protocol. > > > >And I only use Linux, so I'm not going to be much help :-(. > > > > Is there a reason you're creating a WAR instead of just deploying a > > > directory directly (like the example build.xml file does)? > > > > I want to give simple instructions for a user to download and deploy my > > app, like: > > "Download the war file. Use the TC W.A.M. to install the war file from > > your downloads directory." > > > > (I can go back to saying "copy the war file to <tomcat>/webapps and > > restart TC" but I still want to know how I'm supposed to use the TC > > W.A.M.!). > > > > > > > > > Also, what is the field "Config URL:" ? > > > Where do you see this term being used? > > > > In the TC W.A.M. at > > http://localhost:8080/manager/html/install/ > > in the table row below "Install" there are > > three text input fields: > > "Path: Config URL: WAR URL: " plus the Install button. > > > >Sorry ... I've never used the html interface on the manager webapp, so I >haven't got a clue what that is all about. My instructions above were for >using the non-HTML-ized version. > > > > > -- > > Daniel > > [EMAIL PROTECTED] > > > >Criag > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
