JOnAS fails to create the Web Service Endpoint of an @WebService annotated Stateless EJB
I deploy an EJB module (x.jar). It contains a Stateless EJB, also annotaed with the @WebService annotation, so that to publish a Web Service Endpoint. But I get an exception (see below).
The same module deploys without error an JOnAS 5.2-M4. Thus it seems to be a regression of JOnAS5.2-M5.
If I rather package it as an hybrid bundle (both an EJB and an OSGi bundle) with the Easybeans Activator, the deployment succeeds. (This thus seams to be a workarround).
Please find the exception hereafter: 2011-03-15 12:48:30,802 : INFO : Thread-9 : EasyBeansDeployer.doDeploy : Deploying 'controller.facade-1.0.0-VC-SNAPSHOT.jar'... 2011-03-15 12:48:30,849 : INFO : Thread-9 : Enhancer.enhance : Beans found are [ControllerImpl] 2011-03-15 12:48:31,099 : INFO : Thread-9 : ReflectionServiceFactoryBean.buildServiceFromClass : Creating Service {http://energetic.org/controller/ws}ControllerService from class org.energetic.services.controller.Controller 2011-03-15 12:48:31,365 : SEVERE : Thread-9 : JContainer3.start : org.ow2.jonas.ws.cxf.easybeans.ext.LifeCycleCallback.start() failed java.lang.IllegalArgumentException: interface org.apache.cxf.tools.common.extensions.soap.SoapBinding is not visible from class loader at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581) at org.apache.cxf.tools.util.SOAPBindingUtil.getProxy(SOAPBindingUtil.java:87) at org.apache.cxf.tools.util.SOAPBindingUtil.getSoapBinding(SOAPBindingUtil.java:274) at org.apache.cxf.tools.util.SOAPBindingUtil.createSoapBinding(SOAPBindingUtil.java:426) at org.apache.cxf.binding.soap.SoapBindingFactory.createSoapBinding(SoapBindingFactory.java:190) at org.apache.cxf.binding.soap.SoapBindingFactory.createBindingInfo(SoapBindingFactory.java:175) at org.apache.cxf.binding.AbstractBindingFactory.createBindingInfo(AbstractBindingFactory.java:80) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:360) at org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:160) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:257) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:145) at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105) at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:177) at org.ow2.jonas.ws.cxf.JOnASJaxWsServerFactoryBean.create(JOnASJaxWsServerFactoryBean.java:77) at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:403) at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:336) at org.ow2.jonas.ws.cxf.jaxws.CXFWSEndpoint.(CXFWSEndpoint.java:106) at org.ow2.jonas.ws.cxf.easybeans.CXFEJBWebserviceEndpoint.(CXFEJBWebserviceEndpoint.java:71) at org.ow2.jonas.ws.cxf.easybeans.ext.LifeCycleCallback.start(LifeCycleCallback.java:180) at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:448) at org.ow2.jonas.ejb.easybeans.EasyBeansDeployer.doDeploy(EasyBeansDeployer.java:172) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:96) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:95) at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:94) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:129) at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(DeployableMonitor.java:489) at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(DeployableMonitor.java:306) at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonitor.java:216) 2011-03-15 12:48:31,396 : INFO : Thread-9 : JContainer3.start : Container 'F:\JavaEE\svr52\j59\work\ejb3s\jonas\controller.facade-1.0.0-VC-SNAPSHOT_2011.03.15-12.22.40.jar' [1 SLSB, 0 SFSB, 0 MDB] started in 594 ms 2011-03-15 12:48:31,396 : INFO : Thread-9 : EasyBeansDeployer.doDeploy : 'controller.facade-1.0.0-VC-SNAPSHOT.jar' EJB3 Deployable is now deployed