tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22247] New: - org.apache.catalina.ant - "unknown protocol: c" on DeployTask
Date Fri, 08 Aug 2003 13:08:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22247>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22247

org.apache.catalina.ant - "unknown protocol: c" on DeployTask

           Summary: org.apache.catalina.ant - "unknown protocol: c" on
                    DeployTask
           Product: Tomcat 5
           Version: 5.0.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina:Modules
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: joe@joereger.com


I'm having this Ant-Tomcat build issue with Ant 1.5.3 and Ant 1.6alpha.  The 
same script worked with Tomcat 5.0.2. I am using ant-catalina.jar from the 
Tomcat 5.0.6 distro.  

I'm running on a windows xp pro development box that has j2sdk1.4.1_03 
installed.

Please let me know if there is a better place for this bug or if you need any 
more information.  -- Joe

ANT -V OUTPUT
=============

undeploy:
     [echo] Undeploying myApp.
   [remove] OK - Undeployed application at context path /myApp


deploy:
     [echo] Deploying myApp.
   [deploy] FAIL - Encountered exception java.net.MalformedURLException: 
unknown protocol: c

   [deploy] OK - Deployed application at context path /myApp


BUILD FAILED
file:c:/SuperFly/Source/myApp/build.xml:128: FAIL - Encountered exception 
java.net.MalformedURLException: unknown protocol: c
        at org.apache.catalina.ant.AbstractCatalinaTask.execute
(AbstractCatalinaTask.java:278)
        at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:229)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
Caused by: FAIL - Encountered exception java.net.MalformedURLException: 
unknown protocol: c
        at org.apache.catalina.ant.AbstractCatalinaTask.execute
(AbstractCatalinaTask.java:274)
        ... 9 more
--- Nested Exception ---
FAIL - Encountered exception java.net.MalformedURLException: unknown protocol: 
c
        at org.apache.catalina.ant.AbstractCatalinaTask.execute
(AbstractCatalinaTask.java:274)
        at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:229)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 29 seconds
c:\SuperFly\Source\myApp>

ANT SCRIPT
==========

<!-- Properties are read from build.properties with a <property/> tag. -->
<!-- WAR file creation omitted. -->

<target name="undeploy" description="Undeploys the Web Application" 
depends="backupsource">
    <echo message="Undeploying ${tomcat.app.name}."/>
    <remove url="${tomcat.manager.url}" username="${tomcat.mgr.username}" 
password="${tomcat.mgr.password}" path="/${tomcat.app.name}"/>
</target>
	
<target name="deploy" description="Deploys the Web Application" 
depends="undeploy">
    <echo message="Deploying ${tomcat.app.name}."/>
    <deploy url="${tomcat.manager.url}" username="${tomcat.mgr.username}" 
password="${tomcat.mgr.password}" path="/${tomcat.app.name}"  
war="file:${tomcat.app.name}-(bld${build.number})-${build.time}.war"/>
</target>

Mime
View raw message