You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nandish Rudra <nr...@calleci.com> on 2004/11/11 19:56:56 UTC

automatic deployment using ant

Hello,

I am trying to do an auto deploy using ant script on tomcat 5.028 (Redhat
9). The war is about 60mb in size and tomcat is runnig with the following
java_opts JAVA_OPTS='-Xmn32M -Xmx256M -XX:MaxHeapFreeRatio=30
-XX:+UseParallelGC'.

Every time I try to deploy the war I get the following exception:

/home/source/buildFiles/ecisite-build.xml:172: java.lang.OutOfMemoryError. 

This is what the deploy part of the ant script looks like. 


	<property name="root-dir" location="..\"/>
	<property name="uwar-dir" location="${root-dir}\war\"/>
	<property name="url" value="http://127.0.0.1:8080/manager"/>
	<property name="project" value="calleci-site"/>
	<property name="tomcat-context" value="/"/>
	<property name="username" value="admin"/>
	<property name="password" value="XXXXX"/>
	<target name="udeploy">
		<taskdef name="deploy"
classname="org.apache.catalina.ant.DeployTask"
classpath="/usr/local/jakarta-tomcat/server/lib/catalina-ant.jar"/>
		<!--tomcat deploy task cannot deploy to the root context-->
		<echo>Installing/Deploying application Application to
${url}.</echo>
		<deploy url="${url}" username="${username}"
password="${password}" path="tomcat-context"
war="file://${uwar-dir}/${project}.war"/>
		<echo>Sleeping for 7seconds before proceeding to </echo>
		<sleep seconds="7"/>
	</target>

I first stop the app, then undeploy and then deploy. the first two work fin
but deploy fails. I have had success in the past deploying using this piece
of code but its failing here. any suggestions. 

Regards
Nandish


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