<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>

is your problem. It's trying to connect to Sun to get this DTD. Have a look at the <xmlcatalog> stuff to resolve this.

Cheers,

Brian

Ganesh N Sonsale wrote:
I have apache-ant-1.6.1 folder on D:
Also classpath as D:\apache-ant-1.6.1\lib\xmltask.jar
I copied these files(attached) on c: and on cmd prompt I executed "ant" command this is the result
 
C:\>ant
Buildfile: build.xml
  [xmltask] java.net.ConnectException: Operation timed out: connect
  [xmltask]     at java.net.PlainSocketImpl.socketConnect(Native Method)
  [xmltask]     at java.net.PlainSocketImpl.doConnect(Unknown Source)
  [xmltask]     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
  [xmltask]     at java.net.PlainSocketImpl.connect(Unknown Source)
  [xmltask]     at java.net.Socket.<init>(Unknown Source)
  [xmltask]     at java.net.Socket.<init>(Unknown Source)
  [xmltask]     at sun.net.NetworkClient.doConnect(Unknown Source)
  [xmltask]     at sun.net.www.http.HttpClient.openServer(Unknown Source)
  [xmltask]     at sun.net.www.http.HttpClient.openServer(Unknown Source)
  [xmltask]     at sun.net.www.http.HttpClient.<init>(Unknown Source)
  [xmltask]     at sun.net.www.http.HttpClient.<init>(Unknown Source)
  [xmltask]     at sun.net.www.http.HttpClient.New(Unknown Source)
  [xmltask]     at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown S
ource)
  [xmltask]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Un
known Source)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Un
known Source)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown S
ource)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknow
n Source)
  [xmltask]     at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unkno
wn Source)
  [xmltask]     at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.d
ispatch(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
ument(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
  [xmltask]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
  [xmltask]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Sour
ce)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.documentFromStream(Xm
lTask.java:348)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.documentFromFile(XmlT
ask.java:365)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.access$000(XmlTask.ja
va:27)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask$InputFile.getDocument
(XmlTask.java:209)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:
548)
  [xmltask]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:269)
  [xmltask]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [xmltask]     at org.apache.tools.ant.Target.execute(Target.java:301)
  [xmltask]     at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelpe
r2.java:135)
  [xmltask]     at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHe
lper.java:89)
  [xmltask]     at org.apache.tools.ant.Main.runBuild(Main.java:617)
  [xmltask]     at org.apache.tools.ant.Main.startAnt(Main.java:183)
  [xmltask]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
  [xmltask]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
 
BUILD FAILED
C:\build.xml:8: Operation timed out: connect
 
Total time: 24 seconds
C:\>
 
I'd appreciate if your suggestion help me to do this working
 
Thanks & Regards,
Ganesh Narayan Sonsale
MBT
Phone   : +91-20-4018100 Extn : 5934
Email id : gsonsale@mahindrabt.com
*********************************************************
Disclaimer:

The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of MBT and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MBT is not responsible for any loss or damage arising in any way from its use

*********************************************************

<module> <ejb> ejblocal-jar-rm.jar </ejb> </module>

<?xml version = '1.0'?> <project name="CramerAPIClientDeploy" default="deployCramerAPI" basedir="."> <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"/> <description> Cramer API Client Deploy </description> <xmltask source="c:/application.xml" dest="d:/application.xml" preservetype="true"> <paste path="//application/description" file="c:/application.txt" position="after"/> </xmltask> </project>

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'> <application> <display-name>CramerAPI</display-name> <description>CramerAPI for installed Cramer5 modules</description> <module> <ejb>ejb-jar-common.jar</ejb> </module> <module> <ejb>ejb-jar-rm.jar</ejb> </module> <module> <ejb>ejb-jar-te.jar</ejb> </module> <module> <ejb>ejb-jar-de.jar</ejb> </module> <module> <ejb>ejb-jar-se.jar</ejb> </module> <security-role> <description>Protects TransactionManager</description> <role-name>OWIBEAN</role-name> </security-role> </application>

-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd         brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012