geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Re: ejb webservices
Date Fri, 12 Oct 2012 09:09:15 GMT
I am thinking that there is a bug here.  In the wsdl generation process,
the dependencies are not considered, only those APIs, endorsed directory
and deploying application classes are added, which is not consistent with
the current server runtime behavior.


2012/10/12 jcyim <jongchoul@gmail.com>

> hello.
> firstly simple question?
> current geronimo 3.0 release only support axis2 engine.
>
> I builded web service application which used stateless ejb.
> My ejb needed a library jar file.
> I registered that jar file to the repository.
> and I declared dependecny for a libarary jar in openejb-jar.xml
>
> but, I got errors telling "ClassNotFoundException" for the libary jar file.
> Actually, ejb was successfull deployed.
> but web service was not deployed. "ClassNofFoundException" was raised by
> wsgen tool.
> followings are part of logs.
>
> If I put the library file to geronimo's endorsed library directory. it
> works
> fine.
>
> I want to use dependency injection.
>
> 2012-10-12 17:29:34,726 INFO  [JAXWSServiceBuilder] Configuring EJB JAX-WS
> Web Service: ThirdPartyCallWsEjb at /ThirdPartyCall
> 2012-10-12 17:29:40,109 ERROR [EjbModuleBuilder]
> JAXWSEJBModuleBuilderExtension.addGBeans() failed: Unable to generate the
> wsdl file using wsgen.
> org.apache.geronimo.common.DeploymentException: Unable to generate the wsdl
> file using wsgen.
>         at
>
> org.apache.geronimo.jaxws.sun.tools.WsdlGenerator.generateWsdl(WsdlGenerator.java:182)
>         at
>
> org.apache.geronimo.jaxws.sun.tools.SunWsdlGenerator.generateWsdl(SunWsdlGenerator.java:34)
>         at
>
> org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java:153)
>         at
>
> org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configureEJB(JAXWSServiceBuilder.java:401)
>         at
>
> org.apache.geronimo.jaxws.ejb.builder.JAXWSEJBModuleBuilderExtension.addGBeans(JAXWSEJBModuleBuilderExtension.java:258)
>         at
>
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.doAddGBeans(EjbModuleBuilder.java:1267)
>         at
>
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:1166)
>         at
>
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:764)
>         at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:256)
>         at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
>
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>         at
>
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
>         at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
>         at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
>         at
>
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
>         at
>
> org.apache.geronimo.deployment.plugin.local.RedeployCommand.redeploySameConfiguration(RedeployCommand.java:228)
>         at
>
> org.apache.geronimo.deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:104)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.geronimo.jaxws.sun.tools.JAXWSTools.invoke(JAXWSTools.java:254)
>         at
> org.apache.geronimo.jaxws.sun.tools.JAXWSTools.invoke(JAXWSTools.java:235)
>         at
>
> org.apache.geronimo.jaxws.sun.tools.JAXWSTools.invokeWsgen(JAXWSTools.java:219)
>         at
>
> org.apache.geronimo.jaxws.sun.tools.WsdlGenerator.invokeWsgen(WsdlGenerator.java:188)
>         at
>
> org.apache.geronimo.jaxws.sun.tools.WsdlGenerator.generateWsdl(WsdlGenerator.java:158)
>         ... 21 more
> Caused by: java.lang.NoClassDefFoundError:
> org/asteriskjava/manager/ManagerEventListener
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>         at java.lang.Class.getMethod0(Class.java:2670)
>         at java.lang.Class.getMethod(Class.java:1603)
>         at
> com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:508)
>         at
> com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:366)
>         at
>
> com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:246)
>         at
> com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:247)
>         at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:126)
>         at
>
> com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:66)
>         at
>
> com.sun.tools.ws.spi.WSToolsObjectFactory.wsgen(WSToolsObjectFactory.java:112)
>         ... 30 more
> Caused by: java.lang.ClassNotFoundException:
> org.asteriskjava.manager.ManagerEventListener
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>         ... 41 more
>
>
>
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/ejb-webservices-tp3985903.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Ivan

Mime
View raw message