[ 
https://issues.apache.org/jira/browse/IVYDE-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lalevée resolved IVYDE-35.
----------------------------------

    Resolution: Fixed

I have been able to resolve the issue.

The SaxParserFactory search for the file 
META-INF/services/javax.xml.parsers.SAXParserFactory in the classpath, with the 
context class loader.
Then the solution was to add xerces as a *required* dependency of IvyDE, so 
xerces will be found in IvyDE classloader before the javax.xml packages of the 
jre. And I made the thread calling Ivy using an IvyDE class loader as context 
class loader.
I also had to fix Ivy so we can have control over the context class loader 
used, see r747794.


> Parsing ivy file fails in IvyDE while it succeeds in Ant
> --------------------------------------------------------
>
>                 Key: IVYDE-35
>                 URL: https://issues.apache.org/jira/browse/IVYDE-35
>             Project: IvyDE
>          Issue Type: Bug
>          Components: classpath container
>    Affects Versions: 1.2.0
>            Reporter: Maarten Coene
>            Assignee: Nicolas Lalevée
>             Fix For: 2.0.0.final
>
>         Attachments: ivy.xml, velocity-1.4.ivy
>
>
> Hi,
> I receive the following error when doing a resolve:
> === eclipse log file ===
> !ENTRY org.jayasoft.ivyde.eclipse 1 0 2006-10-10 16:13:06.484
> !MESSAGE resolved dependencies of 
> C:\working\vhs\scontra_vhscontract\ant\ivy.xml
> !ENTRY org.jayasoft.ivyde.eclipse 4 4 2006-10-10 16:13:06.494
> !MESSAGE Impossible to resolve dependencies of [ LCMB | scontra-vhscontract | 
> NONE ]:
> unresolved dependency: [ OTHER | velocity | 1.4 ]: java.text.ParseException: 
> [[Fatal Error] 
> c:\working\repository\commons\lcm\ant_build\ivy\velocity-1.4.ivy:1:-1: 
> Document root element is missing. in 
> c:\working\repository\commons\lcm\ant_build\ivy\velocity-1.4.ivy
> ]
> See IvyConsole for further details
> === end ===
> However, I checked the velocity-1.4.ivy file and the XML is correct.
> Even more, if I resolve the ivy file using ant, there is no problem parsing 
> the velocity-1.4.ivy file
> regards,
> Maarten

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to