You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Venkatesh Babu <ve...@yahoo.com> on 2006/06/02 12:00:16 UTC

Problem while deploying war

Hi all,

I'm using Tomcat 4.1.31.

I have a war file and I'm using the ant target
"<deploy>" to deploy this war. Here is the code
snippet of my build.xml :

    <property name="tomcat.server.name"
value="localhost"/>
    <property name="tomcat.server.port" value="8080"/>
    <property name="tomcat.user.name" value="admin"/>
    <property name="tomcat.user.password"
value="admin"/>

    <property name="app.deploy.manageurl"
value="http://${tomcat.server.name}:${tomcat.server.port}/manager"/>


    <target name="deployapp" depends="war">
        <deploy
               url="${app.deploy.manageurl}"
               path="/app1"
	       war="${basedir}/app1.war"
               username="${tomcat.user.name}"
               password="${tomcat.user.password}"/>
    </target>

But when I call this target, I'm getting a strange
error:

BUILD FAILED
C:\temp\app1\build.xml:33:
java.net.MalformedURLException: unknown protocol: c

I have taken "catalina-ant.jar" from
${TOMCATHOME}/lib/ and placed that in ${ANT_HOME}/lib
but still having this problem.

Can anybody help me and point out what might be the
problem?

Thank you,
Venkatesh


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem while deploying war

Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org