• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception while running example from JAXB beta edition

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to use the xjc.bat command to generate JAXB Java classes from the source XML schema ( using the sample applications that come with the beta version of JAXB).
I keep getting an Exception error when I use the xjc.bat command.
I am in the following directory:
%JAXB_HOME%\examples\users-guides\SampleApp1
and I run the following command:
%JAXB_HOME%/bin/xjc.sh po.xsd -p primer.po
I get:
parsing a schema...
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.xerces.util.ObjectFactory.findClassLoader()Ljava/lang/ClassLoader;from class org.apache.xerces.parsers.XMLGrammerPreparser
at org.apache.xerces.parsers.XMLGrammerPreparser.registerPreparser(XMLGrammerPreparser.java:194)
at com.sun.tools.xjc.reader.xmlschema.SchemaConstraintChecker.check(SchemaConstraintChecker.java:53)
at com.cun.tools.xjc.Driver.loadGrammer(Driver.java:400)
at com.sun.tools.xjc.Driver.run(Driver.java:268)
at com.sun.tools.xjc.Driver.main(Driver.java:88)
What am I doing wrong.
Any help will be APPRECIATED!!
thanks
 
Straws are for suckers. Now suck on this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic