Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 40688 invoked from network); 3 Jun 2005 14:08:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jun 2005 14:08:46 -0000 Received: (qmail 17177 invoked by uid 500); 3 Jun 2005 14:08:39 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 17124 invoked by uid 500); 3 Jun 2005 14:08:38 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 17000 invoked by uid 99); 3 Jun 2005 14:08:38 -0000 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of fontaine_bertrand@hotmail.com designates 64.4.53.75 as permitted sender) Received: from bay19-f25.bay19.hotmail.com (HELO hotmail.com) (64.4.53.75) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Jun 2005 07:08:35 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 3 Jun 2005 07:06:59 -0700 Message-ID: Received: from 217.112.179.62 by by19fd.bay19.hotmail.msn.com with HTTP; Fri, 03 Jun 2005 14:06:59 GMT X-Originating-IP: [217.112.179.62] X-Originating-Email: [fontaine_bertrand@hotmail.com] X-Sender: fontaine_bertrand@hotmail.com In-Reply-To: <200506031400.j53E0SfB029780@fidel.intranet.ef.pt> From: "Bertrand Fontaine" To: tomcat-dev@jakarta.apache.org Bcc: Subject: RE: DeployTask gives "MalformedURLException: unknown protocol: c" Date: Fri, 03 Jun 2005 16:06:59 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 03 Jun 2005 14:06:59.0426 (UTC) FILETIME=[82134420:01C56845] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >You have to use two slahes. >--> localWar="file://C:/Training/training.war" Thanks Diogo, but I have the same problem. Bertrand > >-----Original Message----- >From: Bertrand Fontaine [mailto:fontaine_bertrand@hotmail.com] >Sent: sexta-feira, 3 de Junho de 2005 13:42 >To: tomcat-dev@jakarta.apache.org >Subject: DeployTask gives "MalformedURLException: unknown protocol: c" > >Hello, > >I have a problem with the ANT Deploy task. The error message is >"java.net.MalformedURLException: unknown protocol: c". I have found in the >archives that some people identified a bug that was giving the exact same >message. The problem has been fixed at that time in catalina-ant.jar. >However, I am running the latest versions of all libraries ... Here are the >details: > >Tomcat: installed from jakarta-tomcat-5.5.9.exe >Ant: version 1.6.4 >Java: SUN'JVM "1.5.0_03" >OS:Windows XP > >Ant script extract: > > > username="${manager.username}" > password="${manager.password}" > path="${app.path}" > localWar="file:/C:/Training/training.war" > /> > > >In order to valide the syntax of the localWar argument, I wrote the >following program: > >import ... > >public class Test { > > public static void main(String args[]) { > URL url = Test.class.getResource("/training.war"); > System.out.println(url); > > DeployTask deployTask = new DeployTask(); > deployTask.setLocalWar(url.toString()); > deployTask.setUsername(...); > deployTask.setPassword(...); > deployTask.setUrl(...); > deployTask.setPath(...); > deployTask.execute(); > return; > } >} > >I don't have the error message and the web app is indeed deployed. However, >when I copy-paste the result of url.toString() in the XML version of the >ANT > >script (cf. extract), I have the error message. > >Any idea ? > >Bertrand > >_________________________________________________________________ >Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > _________________________________________________________________ Free blogging with MSN Spaces http://spaces.msn.com/?mkt=nl-be --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org