conflict in dependency

23 views
Skip to first unread message

Francois Le Fevre

unread,
Jun 1, 2012, 10:33:34 AM6/1/12
to biopax-...@googlegroups.com, François LE FEVRE
Dear all,
I am trying to import a basic biopax file :
ftp://ftp.ebi.ac.uk/pub/databases/rhea/biopax/
I ahev set up a minimal maven project but I have encountered a
conflict between jars.
could you help me?

If you try the small project attached: it is working.
If you add the following dependencies , it does not work

Exception in thread "main" org.biopax.paxtools.util.BioPaxIOException:
Unexpected element at start: 6
at org.biopax.paxtools.io.SimpleIOHandler.readNameSpaces(SimpleIOHandler.java:131)
at org.biopax.paxtools.io.BioPAXIOHandlerAdapter.convertFromOWL(BioPAXIOHandlerAdapter.java:212)
at fr.cea.ig.biopax.biopax.App.main(App.java:31)


Thank for your help!
Francois

<!-- flf1 -->
<!-- dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-api</artifactId>
<version>1.2.10</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
<exclusion>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-impl</artifactId>
<version>1.2.10</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
<exclusion>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
</exclusions>
</dependency-->
<!-- dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-dom</artifactId>
<version>1.2.10</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency-->
<!-- flf2 -->


--


Francois Le Fevre
Management Informatique Innovation Biotechnologies
Paris, France
-
Avant d'imprimer, pensez à l'environnement
biopax.zip

IgorRodchenkov

unread,
Jun 1, 2012, 10:48:16 AM6/1/12
to biopax-...@googlegroups.com, François LE FEVRE, Emek Demir
Dear Francois,

Sorry for that.

Unfortunately, it's a known but tricky issue (paxtools-core, SimpleIOHandler uses javax.xml.stream api and Java StAX factory auto-discovery, which mostly works...), which we'll try to fix in the next paxtools release. In meantime, could you try using JenaIOHandler instead, or experiment with other external dependencies (do you really need axis, xml-apis, etc?..)

Best,
IR.

Francois Le Fevre

unread,
Jun 2, 2012, 2:37:54 AM6/2/12
to IgorRodchenkov, Emek Demir, biopax-...@googlegroups.com

Ok i have witch to jena implentation. It works.
Thaqnks for this advice.
Francois

Reply all
Reply to author
Forward
0 new messages