Skip to main content

javax.xml.bind.JAXBException: jaxb.properties does not contain the javax.xm

1 reply [Last post]
mjalleda
Offline
Joined: 2005-07-15

I am having the following error when i try to run my parser. Can anybody help please. Thanks.

C:\JDeveloper\jdk\bin\javaw.exe -client -classpath C:\TRINode\TRIParser\classes;C:\TRIJars\activation.jar;C:\TRIJars\ant-junit.jar;C:\TRIJars\ant-launcher.jar;C:\TRIJars\ant-nodeps.jar;C:\TRIJars\ant-trax.jar;C:\TRIJars\ant.jar;C:\TRIJars\cdx_document.jar;C:\TRIJars\classes12.jar;C:\TRIJars\commons-beanutils.jar;C:\TRIJars\commons-collections.jar;C:\TRIJars\commons-digester.jar;C:\TRIJars\commons-logging.jar;C:\TRIJars\dataflowclient.jar;C:\TRIJars\dom4j;C:\TRIJars\endorsed;C:\TRIJars\jaas.jar;C:\TRIJars\jax-qname.jar;C:\TRIJars\jaxb-api.jar;C:\TRIJars\jaxb-impl.jar;C:\TRIJars\jaxb-libs.jar;C:\TRIJars\jaxb-xjc.jar;C:\TRIJars\jaxp-api.jar;C:\TRIJars\jta-spec1_0_1.jar;C:\TRIJars\mail.jar;C:\TRIJars\namespace.jar;C:\TRIJars\relaxngDatatype.jar;C:\TRIJars\xsdlib.jar;C:\TRIJars\endorsed\dom.jar;C:\TRIJars\endorsed\sax.jar;C:\TRIJars\endorsed\xalan.jar;C:\TRIJars\endorsed\xercesImpl.jar Main
Enter Main

javax.xml.bind.JAXBException: jaxb.properties in package us.net.exchangenetwork.sc._1._0 does not contain the javax.xml.bind.context.factory property.

at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:220)

at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)

at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)

at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)

at Main.main(Main.java:75)

Process exited with exit code 0.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohsuke
Offline
Joined: 2003-06-09

It seems to me that you are using JAXB 1.0.x, not 2.0 (this is a forum for 2.0 discussions.)

If you are using 1.0, I think you forgot to copy those properties files to your jar file.