Unable to locate jaxb.properties in package...
843834Jul 21 2003 — edited Feb 11 2005I'm using JAXB within a web services application, and have been stuck for ages on the following error when running the client program;
javax.xml.bind.JAXBException: Unable to locate jaxb.properties in package generated
The client connects to the server program fine, but when executing a method on the server side which is supposed to parse an xml file based on generated java code, the above exception is thrown.
The line of code that causes the exception is;
JAXBContext jc = JAXBContext.newInstance("generated");
I've made sure the jaxb.properties file is included in the jar-files when they are packaged, but the program still cannot find it (the jar-files are also included in the classpath).
I'm using jwsdp-1.1 and jdk 1.4.1, and have tried basically all the solutions suggested in a previous post (http://forum.java.sun.com/thread.jsp?forum=34&thread=320813), incuding downloading jwsdp-1.2 and using its new version of jaxb-api.jar. But still getting the same exception...
I've also decompiled class ContextFinder.java, and changed the code as suggested in the above post, re-compiled it, and packaged it back into the jaxb-api.jar file, but then I get a new error, which is thrown before even getting to the code that throws the JAXBException above. The new error is thrown on the server side when trying to instantiate the class that contains the jaxb parsing method mentioned above;
[java] java.rmi.ServerException: Missing port information
[java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:370)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:231)
[java] at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:56)
[java] at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:281)
[java] at ProcessEngine.base.ProcessEngineClient.startProcessEngine(Unknown Source)
[java] at ProcessEngine.base.ProcessEngineClient.<init>(Unknown Source)
[java] at ProcessEngine.base.ProcessEngineClient.main(Unknown Source)
I'm completely stuck, as I have run out of work-arounds to try out, and I have no idea what is causing this. Please let me know if you have any suggestions that might help solve my problem!!!
Therese ;)