web service as another web service client - problem in JavaEE SE?

Hello,

I observed strange behaviour with OpenESB, Glassfish (build 33) and following scenario:

I need to call web service from another web service. When I use simple schema:

web service client -> web service (as EJB) -> another Web service

everything works. But I would like to use JBI/ESB, so:

web service client -> HTTP SOAP BC -> JAVAEE SE -> web service (as EJB) -> another Web service

the following exception prevents success:

com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class cz.muni.fi.yucca.client.jbiws.gamanager.Calculate is not fou

nd. Have you run APT to generate them?

at com.sun.xml.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:254)

at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:550)

at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:497)

at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:339)

at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:225)

at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:584)

at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:287)

at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:270)

at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:263)

at javax.xml.ws.Service.getPort(Service.java:92)

at cz.muni.fi.yucca.client.jbiws.gamanager.GAManagerService.getGAManagerPort(GAManagerService.java:51)

...

When I call both services separately they work correctly, when I don't use JBI it works correctly too.

Should anybody help me solving this problem?

Thanks in advice, Vlado

[1841 byte] By [Vladoa] at [2007-11-26 23:52:22]
# 1

Fine,

I've found out that this problem is caused by different classloaders assigned to directly (EJBClassloader) and through-JBI (improperly configured URLClassloader) called web services.

I've moved my question to GlassFish forum (http://forums.java.net/jive/thread.jspa?threadID=24901&tstart=0) beacause of it's "technical" nature.

Despite this, any help is welcome:-)

Vladoa at 2007-7-11 15:32:09 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...