Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JAXBException unable to locate bgm.ser

Thread Tools

JAXBException unable to locate bgm.ser

Posts: n/a

I'm using JAXB to read xml files and everything seems to be working
fine except if I try to call setValidating, like in the second line of
the following code:
Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
(X) unmarshaller.setValidating(true);

and try to run the code. The following message apperas:
javax.xml.bind.Unmarshaller: unable to locate
"/__path__/jaxb/bgm.ser". Check if this file is in the classpath.
This file does exist and is in the class path. What could be the
error? Also the path is indicated by "/" instead of "\" in the error
message. Any help would be greatly appreciated.

Best Regards,
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to locate program Computer Support 2 04-05-2007 02:54 PM
Unable to locate package java.lang in classpath or bootclasspath Mannu Java 1 02-12-2007 01:49 PM
JAXBException while unmarshalling an xml file Sikku Java 0 12-09-2006 10:36 AM
Unable to locate IIS 6.0 =?Utf-8?B?Um9uIEphY2tzb24=?= ASP .Net 2 02-02-2004 04:22 AM
"unable to locate a login configuration" running tomcat as a service Andy Fish Java 1 12-03-2003 12:46 PM