[ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=comments#action_55373 ] toby cabot commented on GERONIMO-307: -------------------------------------
I tried installing the modules not in an ear but one at a time. EJB and RA deployed and seem to run fine (i.e. they show up in the debug console as "running") but the web deployment failed. I can't say what the problem was since there wasn't any stack trace on the server side and the client side just says: Deployment failed Server reports: Error unmarshaling return; nested exception is: java.lang.ClassNotFoundException: org.apache.geronimo.j2ee.deployment.UnresolvedEJBRefException (no security manager: RMI class loader disabled) java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.lang.ClassNotFoundException: org.apache.geronimo.j2ee.deployment.UnresolvedEJBRefException (no security manager: RMI class loader disabled) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) 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.gbean.jmx.JMXOperationInvoker.invoke(JMXOperationInvoker.java:54) at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:112) at org.apache.geronimo.kernel.KernelMBean$$EnhancerByCGLIB$$66f64035.invoke(<generated>) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:95) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.ClassNotFoundException: org.apache.geronimo.j2ee.deployment.UnresolvedEJBRefException (no security manager: RMI class loader disabled) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215) ... 23 more I tried putting geronimo-j2ee-builder-1.0-SNAPSHOT.jar on the deployer classpath but got the same error. > servlet tries to lookup resource adapter: IllegalStateException > --------------------------------------------------------------- > > Key: GERONIMO-307 > URL: http://nagoya.apache.org/jira/browse/GERONIMO-307 > Project: Apache Geronimo > Type: Bug > Versions: 1.0-M2 > Environment: fedora core 2 > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) > Reporter: toby cabot > > I'm trying to use a resource adapter in a web application. The > adapter is home-grown but I expect that the technique would be similar > for an off-the-shelf one. > My RA's connectiondefinition-instance name is "testCF" and if I use: > > > > web.xml: > <resource-ref> > <res-ref-name>ra/CF</res-ref-name> > <res-type>g6o.ra.ConnectionFactory</res-type> > <res-auth>Application</res-auth> > </resource-ref> > > > > geronimo-jetty.xml: > <resource-ref> > <ref-name>ra/CF</ref-name> > <target-name>testCF</target-name> > </resource-ref> > > > > ...I can deploy, and the server runs, but I get a NamingException in > the servlet init which I've attached as a postscript. The strange > part is that if I cut and paste the target name that the exception > message indicated was "not started" into the debug console "Filter > Output" box it shows up as running. Judging from the "name=testCF not > started" message in the stack trace perhaps there's an issue with the > order in which the components within the ear are being started? Can I > influence that order somehow? > > > > As an aside, this is a "soft" exception in that Geronimo keeps running > after it happens; even the servlet is running. If I do something to > cause a different error, i.e. try to look up an obviously bogus JNDI > name, then Geronimo will shut down. > > > > Thanks, > Toby > PS: stack trace: > javax.naming.NamingException: could not look up : env/ra/CF [Root exception > is java.lang.IllegalStateException: Proxy not returned. Target > +geronimo.server:J2EEServer=geronimo,j2eeType=JCAManagedConnectionFactory,name=testCF > not started] > at > org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContext.java:209) > at > org.apache.geronimo.naming.java.RootContext.lookup(RootContext.java:55) > at javax.naming.InitialContext.lookup(InitialContext.java:347) > at g6o.servlet.Servlet.init(Servlet.java:51) > at > org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:226) > at > org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:390) > at > org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:287) > at > org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:421) > at > org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:219) > at > org.apache.geronimo.gbean.jmx.GBeanMBean.doStart(GBeanMBean.java:593) > at > org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(AbstractManagedObject.java:479) > at > org.apache.geronimo.gbean.jmx.SingleProxy.attemptFullStart(SingleProxy.java:154) > at > org.apache.geronimo.gbean.jmx.SingleProxy.addTarget(SingleProxy.java:119) > at > org.apache.geronimo.gbean.jmx.GBeanMBeanReference.handleNotification(GBeanMBeanReference.java:307) > at > mx4j.server.interceptor.NotificationListenerMBeanServerInterceptor$ListenerWrapper.handleNotification(NotificationListenerMBeanServerInterceptor.java:57) > at > javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:346) > at > javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:320) > at > org.apache.geronimo.gbean.jmx.AbstractManagedObject.sendNotification(AbstractManagedObject.java:244) > at > org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(AbstractManagedObject.java:500) > at > org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractManagedObject.java:279) > at > +org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(AbstractManagedObject.java:303) > at > org.apache.geronimo.gbean.jmx.GBeanMBean$9.invoke(GBeanMBean.java:940) > at > org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142) > at > org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:767) > at > mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218) > at > mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) > at > mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86) > at > mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) > at > mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) > at > mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205) > at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079) > at > org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(AbstractManagedObject.java:310) > at > org.apache.geronimo.gbean.jmx.GBeanMBean$9.invoke(GBeanMBean.java:940) > at > org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142) > at > org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:767) > at > mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218) > at > mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) > at > mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86) > at > mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) > at > mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) > at > mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205) > at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079) > at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:231) > at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:226) > at > org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:272) > at org.apache.geronimo.system.main.Daemon.main(Daemon.java:148) > Caused by: java.lang.IllegalStateException: Proxy not returned. Target > geronimo.server:J2EEServer=geronimo,j2eeType=JCAManagedConnectionFactory,name=testCF > not started > at > org.apache.geronimo.naming.jmx.JMXObjectFactory.getObjectInstance(JMXObjectFactory.java:55) > at > javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) > at > org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContext.java:205) > ... 45 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira