Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 73464 invoked from network); 11 Nov 2004 22:32:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Nov 2004 22:32:46 -0000 Received: (qmail 28375 invoked by uid 500); 11 Nov 2004 22:32:42 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 28327 invoked by uid 500); 11 Nov 2004 22:32:41 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 28313 invoked by uid 99); 11 Nov 2004 22:32:41 -0000 Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 11 Nov 2004 14:32:41 -0800 Received: (qmail 1711 invoked from network); 11 Nov 2004 22:32:39 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 11 Nov 2004 22:32:39 -0000 Message-ID: <509880630.1100212351988.JavaMail.apache@nagoya> Date: Thu, 11 Nov 2004 14:32:31 -0800 (PST) From: "David Jencks (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Reopened: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException In-Reply-To: <210884264.1095437317608.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=history ] David Jencks reopened GERONIMO-307: ----------------------------------- > 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 > Assignee: David Jencks > Fix For: 1.0-M3 > > 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: > > ra/CF > g6o.ra.ConnectionFactory > Application > > > geronimo-jetty.xml: > > ra/CF > testCF > > > ...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