Skip to main content

jaxb.properties not reached

1 reply [Last post]
valdezr1
Offline
Joined: 2005-11-16

I have a problem reaching the file jaxb.properties inside my generated package.

I´m importing my generated package on this way

import javax.xml.bind.*;

import CoordSuper.*;

import CoordSuper.impl.*;

and I´m using Jserv as Servlets engine with apache and JAXB 1.0.

If can compile and run my program at command line and is there no problem, it works fine; The problem arrives when I try to execute it invoked from a servlet.

The error message is :

javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package CoordSuper

at javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:205)

at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)

at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)

at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)

at CoordSuperParser.(CoordSuperParser.java:27)

at CoordSuperParser.main(CoordSuperParser.java:91)

Has somebody an idea of what other technique can I use to reach my generated package?

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sekhar
Offline
Joined: 2003-06-25

Since this issue is related to the integration of JAXB 1.0 into Jserv, I would suggest you send this question to an alternate forum. You could also try deploying your servlet on JWSDP http://java.sun.com/webservices/jwsdp/index.jsp (see the bottom of the page of a list of supported containers).