You right...
In a file analysez  by XmlTask, I reference a DTD no longer Avaliable in the local directory of ant...
I delete this reference and XmlTask work fine.
Its no relation with the installation of jre 1.5...
 (In the givee example, the listing is from a "ultimate" test using my old jre...).
Thanks for Your help and for this very nice extension of ant...
 

 

De : Brian Agnew [mailto:brian@oopsconsultancy.com]
Envoyé : mardi 15 mars 2005 17:54
À : CLAVIER Remi RD-CORE-LAN
Cc : xmltask-users@lists.sourceforge.net
Objet : Re: [Xmltask-users] TR: Xmltask problem with after jre 1.5 installation

  [xmltask] java.net.UnknownHostException: C

says to me that it's trying to resolve a DTD externally, rather than use a locally available one. i.e. <xmlcatalog> doesn't look like it's being used. Also:

  [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found

doesn't look good. You say that you've installed JRE 1.5, but the below is using 1.4. So it all looks a bit confusing. Can you clarify ?

Brian

CLAVIER Remi RD-CORE-LAN wrote:


______________________________________________
De :    CLAVIER Remi RD-CORE-LAN 
Envoyé :        mardi 15 mars 2005 12:28
À :     'xmltask-users@lists.sourceforge.net'
Objet : Xmltask problem with after jre 1.5 installation

I use xmltask from weeks without problem.
I had instelled a new jre and now, xmltask crash as below.

Help will be appreciated…


Apache Ant version 1.6.2 compiled on July 16 2004
Buildfile: buildRC.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.2_04\jre
Detected OS: Windows XP
parsing buildfile C:\V3_RFP_OMS_2005\buildRC.xml with URI = file:///C:/V3_RFP_OMS_2005/buildRC.xml
Project base dir set to: C:\V3_RFP_OMS_2005
  [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.
Override ignored for property originaux.dir
Build sequence for target `expxml' is [expxml]
Complete build sequence is [expxml, reidentxmltohtml, unmanufpj, unficpj, mymkdir, manquick, verifExpNeeded, exp, unePieceJointe, testif, reidenttoxm

, copydtd, quickplace, VerifIfReidentNeeded, Reident, recupfiles, exp_merge, help, addHTMLReidentFile, expxml_part, VerifIfDepouNeeded, fait_lignefil

, addHTMLReidentDir, pjsxmltohtml, pjstoxml, , depou]

expxml:
  [xmltask] Reading C:\V3_RFP_OMS_2005\pub.xml
  [xmltask] Executing xmltask 1.10.5
  [xmltask] Processing C:\V3_RFP_OMS_2005\pub.xml [no output document]
  [xmltask] Using predefined xml catalog
Apache resolver library not found, internal resolver will be used
  [xmltask] java.net.UnknownHostException: C
  [xmltask]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
  [xmltask]     at java.net.Socket.connect(Socket.java:452)
  [xmltask]     at java.net.Socket.connect(Socket.java:402)
  [xmltask]     at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
  [xmltask]     at sun.net.NetworkClient.openServer(NetworkClient.java:118)
  [xmltask]     at sun.net.ftp.FtpClient.openServer(FtpClient.java:423)
  [xmltask]     at sun.net.ftp.FtpClient.<init>(FtpClient.java:692)
  [xmltask]     at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:175)
  [xmltask]     at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:257)
  [xmltask]     at java.net.URL.openStream(URL.java:913)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  [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 Source)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.documentFromStream(XmlTask.java:353)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.documentFromFile(XmlTask.java:370)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.access$000(XmlTask.java:27)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask$InputFile.getDocument(XmlTask.java:214)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:598)
  [xmltask]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [xmltask]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [xmltask]     at org.apache.tools.ant.Target.execute(Target.java:341)
  [xmltask]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [xmltask]     at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
  [xmltask]     at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
  [xmltask]     at org.apache.tools.ant.Main.runBuild(Main.java:673)
  [xmltask]     at org.apache.tools.ant.Main.startAnt(Main.java:188)
  [xmltask]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
  [xmltask]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

BUILD FAILED


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