Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB Exception - unable to extract the schema information etc

 
Alex Ioannou
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there
I'm experiencing a problem with some xml binding.
I'm trying to unmarshal an xml file to some java objects, the file conforms to an xsd schema.

I have renamed the package structure to a/b/c/d.
If I had validating on the unmarshaller to false then this error does not occur, but that is not the desired result!
Al
 
Barry Friesen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I goofed that last reply.
I had this problem myself, and it turned out to be that the bgm.ser file was not in the classpath. You need to copy it from the source directory created when you ran xjc to the corresponding directory in your output path (where the class files are).
Barry

EDIT: Barry, I deleted the post for you. You can do it from the editing screen () by checking the "Delete Post?" checkbox and submitting the form.
[ October 09, 2003: Message edited by: Lasse Koskela ]
 
Vikas Varma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dont forget to put the jaxb.properties in the classpath too.
Since this property file, is read when u marshall or unmarshal the xml string.
--Vikas
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic