on 02-15-2006 9:48 AM
Hello,
I would like to use the JAXB api to parse XML document.
The aim is to parse SOAP message sent by a server.
- I've download jaxb-api.jar, jaxb-impl.jar, jaxb-lib.jar and jaxb-xjc.jar.
- Here my <b>code</b> :
JAXBContext jc = JAXBContext.newInstance( "aaa.bbb.ccc");
Unmarshaller u = jc.createUnmarshaller();
Object o = u.unmarshal( httpConn.getInputStream() );
==> Here generated <b>error</b> :
JAXBException : Unable to locate jaxb.properties for package aaa.bbb.ccc
I use the IDE Eclipse, must I do a particular configuration ?
Could you help me please ?
Thanks.
Delphine.
Delphine,
As far as I understand other than adding the 4 java archives you mentioned to the class path, there's nothing else as far as set up/configuration is concerned.
As the exception clearly says, its a pure JAXB exception and not from the SAP server. Are you using jaxb-1.0-beta , if yes, it has this bug.
There are some solutions mentioned in
and
Hope this helps,
Kiran<u></u><u></u><u></u><u></u>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Delphine,
the jaxb.properties file is automatically generated by the schema compiler. Please make sure that the jaxb.properties file is in the built path of your java application.
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.