• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

JAXB Exception - unable to extract the schema information etc

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic