Re: Fwd: catalina ant deploy task problem...

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
At 11:10 AM 1/19/2003 +0100, you wrote:
>1) the URL. Speaking of unix, there we have
>file:///home/stefan/whatever.war
>The first two "//" belong to the protocol specification, the last one to
>the path in the filesystem. So when using a Micro$oft OS, an absolute
>path starts with the drive letter. Following this, your URL should be
>file://C:/anypath/anyfile.war (you are using three "///"). Im not sure
>if you have to use "\" instead of "/" in the path.

Note that if I only use the "//" instead of the "///", I get the following 
exception on the catalina-install task:

catalina-install:
[catalina-install] FAIL - Encountered exception java.io.IOException: 
java.net.Un
knownHostException: D


BUILD FAILED
file:./catalina-tasks.incl:82: FAIL - Encountered exception 
java.io.IOException:
  java.net.UnknownHostException: D

This is with the path...

file://D:/myclasses/Repository/Enhydra/BarracudaMVC_2003-01-15/Barracuda/WEB-INF/ccf.xml

If I add the 3rd "/" to that and use the following, it works just fine...

file:///D:/myclasses/Repository/Enhydra/BarracudaMVC_2003-01-15/Barracuda/WEB-INF/ccf.xml

Try setting your URL to have the 3rd forward slash and see if it works.  I 
bet it does.  If "ant catalina-install" works for you with the Barracuda 
distro, then it does since that is the path that is getting generated via 
the "app.ccf" property.

Moral of the story....Even if only 2 forward slashes works on Unix, it is 
not portable to Windows and 3 forward slashes work on both platforms.  So, 
use the 3 forward slashes for maximum compatibility.

Jake
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.