ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandyg <gaddamsande...@gmail.com>
Subject removing and installing application gives exception
Date Fri, 04 Jul 2008 09:56:28 GMT

Hi,
i got the follow exception when using this code.

<taskdef name="install" classname="org.apache.catalina.ant.InstallTask" >
 	 	        <classpath refid="catalina-ant-classpath"/>
</taskdef>
<taskdef name="remove" classname="org.apache.catalina.ant.RemoveTask">
 	 	        <classpath refid="catalina-ant-classpath"/>
</taskdef>
<target name="install" description="Install application in Tomcat">
		    <install url="${tomcat.manager.url}"
		                 username="${tomcat.manager.username}"
		                 password="${tomcat.manager.password}"
		                 path="/${warname}" 
						 war="${basedir}\${dist}\${warname}.war"/>
</target>
 	
 	<target name="remove" description="Remove application in Tomcat">
 		 <remove url="${tomcat.manager.url}" taskname="remove"
 	            username="${tomcat.manager.username}"
 	            password="${tomcat.manager.password}"
 	            path="/${warname}"/>
 	    </target>

every thing is running fine in above code.
 when i am removing the application using remove target it runs fine but
when again when i need to install back to server it throwing exception.

FAIL - Encountered exception javax.management.RuntimeOperationsException:
Exception invoking method check

plz give me solution.

-- 
View this message in context: http://www.nabble.com/removing-and-installing-application-gives-exception-tp18276441p18276441.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message