It's probably trying to resolve the dtd or xsd file. For example: <xmlcatalog id="dtd"> <dtd publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" location="./web-app_2_3.dtd"/> </xmlcatalog> <xmltask source="stage/web.xml" dest="tmpwebxml/web.xml" report="false" failWithoutMatch="true" preservetype="true"> <xmlcatalog refid="dtd"/> <replace path="/web-app/session-config/session-timeout/text()" expandProperties="true" withText="${session.timeout}" /> </xmltask>
Mark Coffin School Systems 1425 Norjohn Court, Unit #1 Burlington, ON L7L 0E6 Canada D: 1 800 668 8486 F: 905 632 2605 E: mcof...@aalsolutions.com Pearson Always Learning Learn more at www.pearsonschoolsystems.com ________________________________ From: Vikram Gopinath [mailto:gopinath.vik...@yahoo.com] Sent: Monday, February 28, 2011 2:05 AM To: xmltask-users@lists.sourceforge.net Subject: [Xmltask-users] Connection Timed out error when running a build.xmlat xmltask tag Hi All, We have a install/build.xml that installs an application to a weblogic server. When we are running the build script we get an error connection timed out. This error occurs at the build.xml line number 571 which is the xmltask tag. I have no idea why this is happening. The xmltask jar file is in the classpath for the build as well as defined on line 80 of the build.xml Please help us in solving this issue. Please find below the cutpaste of the error in the log file configure-client-ear: [copy] Copying 1 file to /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output [mkdir] Created dir: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/beforeconfig [mkdir] Created dir: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/afterconfig [mkdir] Created dir: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ warcontents/beforeconfig [mkdir] Created dir: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ warcontents/afterconfig [mkdir] Created dir: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ jarcontents/beforeconfig [mkdir] Created dir: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ jarcontents/afterconfig [unjar] Expanding: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/sim-client. ear into /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/beforeconfig [unjar] Expanding: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/beforeconfig/sim- client.war into /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ warcontents/beforeconfig [unjar] Expanding: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ warcontents/beforeconfig/lib/ sim-client-resources.jar into /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ jarcontents/beforeconfig [copy] Copying 1 file to /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ warcontents/afterconfig/lib [copy] Copying 1 file to /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/afterconfig [copy] Copying 1 file to /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/afterconfig [copy] Copying /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/beforeconfig/conf/ JnlpLaunch.properties to /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/afterconfig/conf/ JnlpLaunch.properties [mkdir] Created dir: /root/SIM_Installer/CDROM/WLS/ sim/application/sim13/ configured-output/tmp/client/ earcontents/afterconfig/META- INF [xmltask] It looks like you've got a network error. The probable cause [xmltask] is that you're trying to resolve a DTD on the internet although [xmltask] you don't know it! Check your XML for DTDs external to your network [xmltask] and read the Ant documentation for <xmlcatalog>. XMLTask will support [xmltask] usage of <xmlcatalog>. See the following: [xmltask] http://ant.apache.org/manual/CoreTypes/xmlcatalog.html [xmltask] http://www.oopsconsultancy. com/software/xmltask <http://www.oopsconsultancy.com/software/xmltask> [xmltask] If this isn't the problem, then please report this error to the support [xmltask] mailing list. Thanks! BUILD FAILED /root/SIM_Installer/CDROM/WLS/ sim/application/build.xml:571: Connection timed out at com.oopsconsultancy.xmltask. ant.XmlTask.execute(XmlTask. java:662) at org.apache.tools.ant. UnknownElement.execute( UnknownElement.java:288) at sun.reflect. GeneratedMethodAccessor22. invoke(Unknown Source) at sun.reflect. DelegatingMethodAccessorImpl. invoke( DelegatingMethodAccessorImpl. java:25) at java.lang.reflect.Method. invoke(Method.java:597) at org.apache.tools.ant.dispatch. DispatchUtils.execute( DispatchUtils.java:106) at org.apache.tools.ant.Task. perform(Task.java:348) at org.apache.tools.ant.Target. execute(Target.java:357) at org.apache.tools.ant.Target. performTasks(Target.java:385) at org.apache.tools.ant.Project. executeSortedTargets(Project. java:1337) at org.apache.tools.ant.Project. executeTarget(Project.java: 1306) at org.apache.tools.ant.helper. DefaultExecutor. executeTargets( DefaultExecutor.java:41) at org.apache.tools.ant.Project. executeTargets(Project.java: 1189) at org.tp23.antinstaller.antmod. Main.runBuild(Main.java:704) at org.tp23.antinstaller.antmod. Main.startAnt(Main.java:216) at org.tp23.antinstaller.antmod. Launcher.run(Launcher.java: 215) at org.tp23.antinstaller.runtime. exe.AntLauncherFilter.exec( AntLauncherFilter.java:76) at org.tp23.antinstaller.runtime. ExecInstall.exec(ExecInstall. java:85) at org.tp23.antinstaller.runtime. ExecInstall.main(ExecInstall. java:157) Please find below the cutpaste of the build.xml for line 80 and 571 <!-- Taskdef setup --> <taskdef resource="net/sf/antcontrib/ antcontrib.properties"> <classpath> <pathelement location="ant-ext/ant-contrib. jar" /> </classpath> </taskdef> <taskdef name="xmltask" classname="com. oopsconsultancy.xmltask.ant. XmlTask"> <classpath> <pathelement location="ant-ext/xmltask-v1. 13.jar" /> </classpath> </taskdef> <taskdef name="credentialStoreManager" classname="com.oracle.retail. integration.common.security. credential. CredentialStoreManagerAntTask" /> <taskdef name="wlst" classname="weblogic.ant. taskdefs.management.WLSTTask" /> <!--Configure application.xml --> <mkdir dir="${client.temp.dir}/ earcontents/afterconfig/META- INF" /> <xmltask source="${client.temp.dir}/ earcontents/beforeconfig/META- INF/application.xml" dest="${client.temp.dir}/ earcontents/afterconfig/META- INF/application.xml"> <replace path="application/module[1]/ web/context-root/text()" withText="${client.context. root.trimmed}"/> </xmltask> Regards, Vikram Gopinath ****** CONFIDENTIALITY NOTICE ****** NOTICE: This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message from your system. Thank you.
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Xmltask-users mailing list Xmltask-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xmltask-users