Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ontopia distribution doesn't contain xerces.jar #407

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 2 comments
Closed

Ontopia distribution doesn't contain xerces.jar #407

GoogleCodeExporter opened this issue Mar 16, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Mar 16, 2015

The ontopia-engine pom.xml correctly lists

        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
        </dependency>

However, the xerces.jar is not included in the build, causing RDF export to 
fail with 

java.lang.NoClassDefFoundError: org/apache/xerces/util/XMLChar
    com.hp.hpl.jena.rdf.model.impl.Util.notNameChar(Util.java:121)
    com.hp.hpl.jena.rdf.model.impl.Util.splitNamespace(Util.java:79)
    com.hp.hpl.jena.graph.Node_URI.getLocalName(Node_URI.java:64)
    com.hp.hpl.jena.rdf.model.impl.ResourceImpl.getLocalName(ResourceImpl.java:127)
    com.hp.hpl.jena.rdf.model.impl.PropertyImpl.checkLocalName(PropertyImpl.java:82)
    com.hp.hpl.jena.rdf.model.impl.PropertyImpl.<init>(PropertyImpl.java:90)
    com.hp.hpl.jena.rdf.model.ResourceFactory$Impl.createProperty(ResourceFactory.java:245)
    com.hp.hpl.jena.rdf.model.ResourceFactory.createProperty(ResourceFactory.java:121)
    com.hp.hpl.jena.vocabulary.RDF.property(RDF.java:32)
    com.hp.hpl.jena.vocabulary.RDF.<clinit>(RDF.java:45)
    com.hp.hpl.jena.ontology.impl.OntResourceImpl.<clinit>(OntResourceImpl.java:63)
    com.hp.hpl.jena.enhanced.BuiltinPersonalities.<clinit>(BuiltinPersonalities.java:27)
    com.hp.hpl.jena.rdf.model.impl.ModelCom.<init>(ModelCom.java:51)
    com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:122)
    com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:116)
    net.ontopia.topicmaps.utils.rdf.RDFFragmentExporter.<init>(RDFFragmentExporter.java:36)

Original issue reported on code.google.com by lar...@gmail.com on 9 Sep 2011 at 1:18

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

The super pom defines Xerces as a test dependency, so indeed it won't be 
available during runtime. I'm running a full build to see if we can remove the 
test scope. 

Original comment by qsieb...@gmail.com on 9 Sep 2011 at 1:38

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

This issue was closed by revision r2190.

Original comment by qsieb...@gmail.com on 9 Sep 2011 at 1:57

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant