I have a couple web services. They both use some common xml schema, java classes, and binding files that are maintained in a separate eclipse project.
Individually, each service, when built, pulls in the java code and includes the bindings in its main binding. The external java code is then compiled and run through the jibx binder and is used within the project. All is good. Both services are happy and can be invoked by clients built at the same time in the same manner. I chose this approach as "pre-binding" where I ran the jibx binder on the external project code and then tried to use it within the service did not seem to work. Perhaps I was doing that wrong. So, now I have one service that wants to call the other. Now it falls down. The error I get is [java] org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: edu.iris.ws.base.GeoLocation.JiBX_binding_newinstance_1_0(Lorg/jibx/runtime/impl/UnmarshallingContext;)Ledu/iris/ws/base/GeoLocation; [java] at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) ... I *think* what is happening is a classpath issue. There are two copies of the GeoLocation available, one for the first service's "external" interface, the other for the first service to call the second service. That seems wrong to me, but the above method is indeed missing from the first service's GeoLocation class, while it exists in the second service's GeoLocation class. Is this a mess or what? It appears that the first service's invocation of the second service is successful (from tcpmon) and that the unmarshalling is failing. How should I handle this? Should I revisit trying to "pre-bind" the common classes? Is that correct and I just didn't do it right? Am I crazy for trying to do this? thanks, Linus ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users