Forums Register Login

Deployment problem

+Pie Number of slices to send: Send
hii all,

Some of my application folders are getting deleted while deploying my application inside my Tomcat 5.5. This often happens when I build my application with ant.

My build file is given below...

<?xml version="1.0"?>

<!-- build tool for LiveHelp admin web pages -->

<project name="BANK" default="copywar" basedir=".">

<!-- compiling the code -->
<target name="compilesources">
<javac srcdir="./WEB-INF/src" destdir="./WEB-INF/classes" includes="com/example/web/*.java" />
</target>

<!-- creating war file -->
<target name="createwar" depends="compilesources">
<jar jarfile="sample.war" basedir="." includes="WEB-INF/,jsp/" excludes="WEB-INF/src/" />
</target>

<!-- copying the ear file to jboss directory -->
<target name="copywar" depends="createwar">
<copy file="sample.war" todir="C:\Tomcat 5.5\webapps" overwrite="true"/>
</target>
</project>

Could you please help me out in solving this problem..?
+Pie Number of slices to send: Send
Is your "include" attribute working in the jar task? There is a War task for this here.

Seems you have put the source in the WEB-INF folder? Why do so? You can use the War task. Take a look at the link I gave above and search for the War Task. Hope this helps.
[ November 26, 2008: Message edited by: Vijitha Kumara ]
+Pie Number of slices to send: Send
Prasad, please check your private messages.
+Pie Number of slices to send: Send
Please do not post the same question multiple times.It only wastes the useful time of other ranchers and reduces the number of responses you get. Read this for more information.
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


Reply locked
This thread has been viewed 814 times.
Similar Threads
Deployment problem
struts/jboss/tomcat application not working
Cant compile the struts application withEclispse 3.4
Simple & Basic EJB application -- Help is needed
help in creating war/jar file
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:05:17.