Your modified XML here. Assume that file name is build.xml Hope this helps ..All the best..
<?xml version="1.0"?> <project name="Hello" default="all"> <target name="all" depends="Deploy-App"> <echo message="Task of weblogic completed" /> </target> <target name="Deploy-App"> <serverdeploy action="deploy" source="E:\jrt\jade.war"> <weblogic application="jade" server="http://localhost:7001"; classpath="E:\bea\weblogic81\server\lib\weblogic.jar" username="admin" password="administrator" component="myserver" debug="true"/> </serverdeploy> </target> </project> -----Original Message----- From: Shweta Bodade [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 4:51 PM To: 'Ant Users List' Subject: One more Question regarding deployment in ANT and WebLogic Hi, I could deploy my web application using Ant in WebLogic server But I get the following description when I deploy it, sorry for so many questions but am a fresher and want to explore Ant for automation. Buildfile: E:\workspace2\Hello\src\build.xml print message: [java] Warning: No targets were specified. Your application will not be deployed anywhere. [java] To specify a target for your component, use the -component argument [java] Done deploying jade with e:\bea\user_projects\domains\mydomain\.\myserver\upload\jade\jade.war BUILD SUCCESSFUL Total time: 22 seconds Because of this line that no targets were specified the context root is missing Can u show me an example of specifying a target My code is <project name="Hello" default="print message"> <target name="print message"> <serverdeploy action="deploy" source="E:\jrt\jade.war"> <weblogic application="jade" server="http://localhost:7001"; classpath="E:\bea\weblogic81\server\lib\weblogic.jar" username="admin" password="administrator" component="myserver" debug="true"/> </serverdeploy> </target> </project> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]