aspose file tools*
The moose likes XML and Related Technologies and the fly likes JAXB Exception - unable to extract the schema information etc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB Exception - unable to extract the schema information etc" Watch "JAXB Exception - unable to extract the schema information etc" New topic
Author

JAXB Exception - unable to extract the schema information etc

Alex Ioannou
Greenhorn

Joined: Nov 14, 2001
Posts: 25
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

Joined: Oct 09, 2003
Posts: 1
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

Joined: Aug 21, 2002
Posts: 23
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAXB Exception - unable to extract the schema information etc