geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <delafran_j...@hotmail.com>
Subject Re: Ejb Deployment Errors...
Date Thu, 06 Jan 2005 21:22:50 GMT
David,

I was looking at including the necessary jar with the wsdl APIs.  I was 
going to add this jar to: assembly/src/plan/j2ee-runtime-deployer-plan.xml

    <dependency>
        <uri>wsdl.jar</uri>
    </dependency>

However, I have found a few references to the APIs:

etc/project.properites contains: axis/jars/axis-wsdl4j-1.2-RC1.jar
maven/repo contains wsdl4j/jars/wsdl4j-1.4.jar

I tested with wsdl4j-1.4.jar and I can deploy my EJB.

So, I have two questions:

1. Which jar file should be used?
2. How do you get the build to automagically copy the dependanciy to the 
target repository directory?   I noticed that adding the entry to the 
plan.xml created the runtime dependancy, but I had to manually copy the 
jar file.

Thanks
Mark

David Blevins wrote:

>It's been added to JIRA: (GERONIMO-534) ejb deployment causes NoClassDefFoundError
>
>Should be done in a sec.
>
>-David
>
>On Wed, Jan 05, 2005 at 04:15:53PM -0500, Mark wrote:
>  
>
>>I am trying to deploy a simple hello world EJB to geronimo, but 
>>encountering the following error (see stack trace below)
>>
>>java -jar bin\deployer.jar deploy  myejb.jar
>>
>>The problem seems to be a missing class / jar files in the classpath due 
>>to  Caused by: java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
>>at 
>>org.openejb.deployment.SessionBuilder.addWSContainerGBean(SessionBuilder.java:159)
>>
>>I am guessing that the ejb container is trying to create a wrapper/proxy 
>>for web service invocations.
>>
>>Anybody have any suggestions on which plan or jar file to start with or 
>>recognize the problem?
>>
>>Thanks
>>Mark
>>
>>    
>>
>>>java -jar bin\deployer.jar deploy  myejb.jar
>>>      
>>>
>>Username: system
>>Password: manager
>>Deployment failed
>> Server reports: javax.management.remote.JMXServerErrorException: Error 
>>thrown during invocation
>>org.apache.geronimo.kernel.InternalKernelException: 
>>javax.management.remote.JMXServerError
>>Exception: Error thrown during invocation
>>       at 
>>org.apache.geronimo.kernel.jmx.KernelDelegate.invoke(KernelDelegate.java:232)
>>       at 
>>org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:95)
>>       at java.lang.Thread.run(Thread.java:534)
>>Caused by: javax.management.remote.JMXServerErrorException: Error thrown 
>>during invocation
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:103)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:32)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:89)
>>       at java.security.AccessController.doPrivileged(Native Method)
>>       at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>>       at 
>>mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:151)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:85)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:79)
>>       at $Proxy0.invoke(Unknown Source)
>>       at 
>>javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:224)
>>       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:324)
>>       at 
>>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
>>       at sun.rmi.transport.Transport$1.run(Transport.java:148)
>>       at java.security.AccessController.doPrivileged(Native Method)
>>       at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
>>       at 
>>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
>>       at 
>>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
>>       at java.lang.Thread.run(Thread.java:534)
>>       at 
>>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
>>       at 
>>sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
>>       at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
>>       at 
>>javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)
>>       at mx4j.remote.rmi.ClientInvoker.invoke(ClientInvoker.java:210)
>>       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:324)
>>       at mx4j.remote.ClientProxy.invoke(ClientProxy.java:34)
>>       at 
>>mx4j.remote.rmi.ClientUnmarshaller.chain(ClientUnmarshaller.java:67)
>>       at 
>>mx4j.remote.rmi.ClientUnmarshaller.invoke(ClientUnmarshaller.java:56)
>>       at $Proxy0.invoke(Unknown Source)
>>       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:324)
>>       at mx4j.remote.ClientProxy.invoke(ClientProxy.java:34)
>>       at 
>>mx4j.remote.rmi.ClientExceptionCatcher.invoke(ClientExceptionCatcher.java:42)
>>       at $Proxy0.invoke(Unknown Source)
>>       at 
>>org.apache.geronimo.kernel.jmx.KernelDelegate.invokeKernel(KernelDelegate.java:349)
>>       at 
>>org.apache.geronimo.kernel.jmx.KernelDelegate.invoke(KernelDelegate.java:228)
>>       ... 2 more
>>Caused by: java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
>>       at 
>>org.openejb.deployment.SessionBuilder.addWSContainerGBean(SessionBuilder.java:159)
>>       at 
>>org.openejb.deployment.SessionBuilder.buildBeans(SessionBuilder.java:153)
>>       at 
>>org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilder.java:456)
>>       at 
>>org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke(<generated>)
>>       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>>       at 
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>>       at 
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
>>       at 
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:658)
>>       at 
>>org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>>       at 
>>org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
>>       at 
>>org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:92)
>>       at 
>>org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e45a280.addGBeans(<generated>)
>>       at 
>>org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:346)
>>       at 
>>org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
>>       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>>       at 
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>>       at 
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
>>       at 
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:658)
>>       at 
>>org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>>       at 
>>org.apache.geronimo.kernel.proxy.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
>>       at 
>>org.apache.geronimo.kernel.proxy.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:92)
>>       at 
>>org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7a1ca0ae.buildConfiguration(<generated>)
>>       at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:200)
>>       at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:80)
>>       at 
>>org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
>>       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>>       at 
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>>       at 
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
>>       at 
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:684)
>>       at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:302)
>>       at 
>>org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:121)
>>       at 
>>org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
>>       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>>       at 
>>org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>>       at 
>>org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
>>       at 
>>org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:684)
>>       at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:302)
>>       at 
>>org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117)
>>       at 
>>mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:222)
>>       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:324)
>>       at 
>>mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:36)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:98)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:32)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:89)
>>       at java.security.AccessController.doPrivileged(Native Method)
>>       at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>>       at 
>>mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:151)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:85)
>>       at 
>>mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:79)
>>       at $Proxy0.invoke(Unknown Source)
>>       at 
>>javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:224)
>>       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:324)
>>       at 
>>sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
>>       at sun.rmi.transport.Transport$1.run(Transport.java:148)
>>       at java.security.AccessController.doPrivileged(Native Method)
>>       at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
>>       at 
>>sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
>>       at 
>>sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
>>
>>       ... 1 more
>>
>>    
>>
>
>.
>
>  
>


Mime
View raw message