You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by de...@geronimo.apache.org on 2004/09/17 18:08:37 UTC

[jira] Created: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-307

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-307
    Summary: servlet tries to lookup resource adapter: IllegalStateException
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Apache Geronimo
   Versions:
             1.0-M2

   Assignee: 
   Reporter: toby cabot

    Created: Fri, 17 Sep 2004 9:07 AM
    Updated: Fri, 17 Sep 2004 9:07 AM
Environment: fedora core 2
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)


Description:
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



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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


[jira] Closed: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
     [ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=history ]
     
David Jencks closed GERONIMO-307:
---------------------------------

     Resolution: Fixed
    Fix Version: 1.0-M3

> 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:
>     <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


[jira] Reopened: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
     [ 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:
>     <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


[jira] Commented: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "toby cabot (JIRA)" <de...@geronimo.apache.org>.
     [ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=comments#action_55369 ]
     
toby cabot commented on GERONIMO-307:
-------------------------------------

Aaron,

Thanks for looking into this.  I did a new build from recent svn and the error seems to be different.  My connectiondefinition-instance/name is testCF which I think should be valid.  That's also what's in my resource-ref/target-name and when I either try to deploy or distribute then bring up geronimo I get the following stack trace:

javax.naming.NamingException: could not look up : env/ra/CF [Root exception is java.lang.IllegalArgumentException: Invalid object name in jmxRefAddr: testCF]
        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:52)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:369)
        at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:243)
        at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:447)
        at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:298)
        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:512)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:244)
        at org.mortbay.util.Container.start(Container.java:72)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:211)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.doStart(GBeanMBean.java:616)
        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(AbstractManagedObject.java:511)
        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractManagedObject.java:305)        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(AbstractManagedObject.java:329)
        at org.apache.geronimo.gbean.jmx.GBeanMBean$11.invoke(GBeanMBean.java:1036)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at javax.naming.NamingException: could not look up : env/ra/CF [Root exception is java.lang.IllegalArgumentException: Invalid object name in jmxRefAddr: testCF]
        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:52)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:369)
        at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:243)
        at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:447)
        at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:298)
        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:512)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:244)
        at org.mortbay.util.Container.start(Container.java:72)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:211)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.doStart(GBeanMBean.java:616)
        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(AbstractManagedObject.java:511)
        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractManagedObject.java:305)        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(AbstractManagedObject.java:329)
        at org.apache.geronimo.gbean.jmx.GBeanMBean$11.invoke(GBeanMBean.java:1036)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
        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:343)
        at org.apache.geronimo.gbean.jmx.GBeanMBean$11.invoke(GBeanMBean.java:1036)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
        at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218)
        at mx4j.server.intercjavax.naming.NamingException: could not look up : env/ra/CF [Root exception is java.lang.IllegalArgumentException: Invalid object name in jmxRefAddr: testCF]
        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:52)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:369)
        at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:243)
        at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:447)
        at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:298)
        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:512)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:244)
        at org.mortbay.util.Container.start(Container.java:72)
        at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContext.java:211)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.doStart(GBeanMBean.java:616)
        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(AbstractManagedObject.java:511)
        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractManagedObject.java:305)        at org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(AbstractManagedObject.java:329)
        at org.apache.geronimo.gbean.jmx.GBeanMBean$11.invoke(GBeanMBean.java:1036)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
        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:343)
        at org.apache.geronimo.gbean.jmx.GBeanMBean$11.invoke(GBeanMBean.java:1036)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
        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:288)
        at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:283)
        at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:375)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:152)
Caused by: java.lang.IllegalArgumentException: Invalid object name in jmxRefAddr: testCF
        at org.apache.geronimo.naming.reference.GBeanGetResourceRefAddr.getContent(GBeanGetResourceRefAddr.java:72)
        at org.apache.geronimo.naming.reference.RefAddrContentObjectFactory.getObjectInstance(RefAddrContentObjectFactory.java:37)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
        at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContext.java:205)
        ... 40 more
Caused by: javax.management.MalformedObjectNameException: Missing ':' character in ObjectName
        at javax.management.ObjectName.parseDomain(ObjectName.java:418)
        at javax.management.ObjectName.parse(ObjectName.java:386)
        at javax.management.ObjectName.<init>(ObjectName.java:77)
        at javax.management.ObjectName.getInstance(ObjectName.java:262)
        at org.apache.geronimo.naming.reference.GBeanGetResourceRefAddr.getContent(GBeanGetResourceRefAddr.java:70)
        ... 43 more
eptor.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:288)
        at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:283)
        at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:375)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:152)
Caused by: java.lang.IllegalArgumentException: Invalid object name in jmxRefAddr: testCF
        at org.apache.geronimo.naming.reference.GBeanGetResourceRefAddr.getContent(GBeanGetResourceRefAddr.java:72)
        at org.apache.geronimo.naming.reference.RefAddrContentObjectFactory.getObjectInstance(RefAddrContentObjectFactory.java:37)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
        at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContext.java:205)
        ... 40 more
Caused by: javax.management.MalformedObjectNameException: Missing ':' character in ObjectName
        at javax.management.ObjectName.parseDomain(ObjectName.java:418)
        at javax.management.ObjectName.parse(ObjectName.java:386)
        at javax.management.ObjectName.<init>(ObjectName.java:77)
        at javax.management.ObjectName.getInstance(ObjectName.java:262)
        at org.apache.geronimo.naming.reference.GBeanGetResourceRefAddr.getContent(GBeanGetResourceRefAddr.java:70)
        ... 43 more
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
        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:343)
        at org.apache.geronimo.gbean.jmx.GBeanMBean$11.invoke(GBeanMBean.java:1036)
        at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142)
        at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
        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:288)
        at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:283)
        at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:375)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:152)
Caused by: java.lang.IllegalArgumentException: Invalid object name in jmxRefAddr: testCF
        at org.apache.geronimo.naming.reference.GBeanGetResourceRefAddr.getContent(GBeanGetResourceRefAddr.java:72)
        at org.apache.geronimo.naming.reference.RefAddrContentObjectFactory.getObjectInstance(RefAddrContentObjectFactory.java:37)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
        at org.apache.geronimo.naming.java.ReadOnlyContext.lookup(ReadOnlyContext.java:205)
        ... 40 more
Caused by: javax.management.MalformedObjectNameException: Missing ':' character in ObjectName
        at javax.management.ObjectName.parseDomain(ObjectName.java:418)
        at javax.management.ObjectName.parse(ObjectName.java:386)
        at javax.management.ObjectName.<init>(ObjectName.java:77)
        at javax.management.ObjectName.getInstance(ObjectName.java:262)
        at org.apache.geronimo.naming.reference.GBeanGetResourceRefAddr.getContent(GBeanGetResourceRefAddr.java:70)
        ... 43 more


> 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


[jira] Closed: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
     [ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=history ]
     
David Jencks closed GERONIMO-307:
---------------------------------

     Assign To: David Jencks
    Resolution: Fixed

Whatever the original cause, the latest problems seem to have been due to changed configuration for (resource)-refs in geronimo plans, and corrected plans work fine.

> 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:
>     <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


[jira] Commented: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=comments#action_55372 ]
     
Aaron Mulder commented on GERONIMO-307:
---------------------------------------

The resource ref resolving was changed not too long ago.  I think my documentation might be out of date, and the target name may now be supposed to be a JMX ObjectName and there should be different fields used to map like you're trying to do.  In the short term, djencks might be able to help you through this.  Otherwise, I hope to work through it myself in the next few days.

> 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


[jira] Commented: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "toby cabot (JIRA)" <de...@geronimo.apache.org>.
     [ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=comments#action_55374 ]
     
toby cabot commented on GERONIMO-307:
-------------------------------------

David, Aaron,

Thanks for your attention on this.  The change from target-name to resource-link is indeed the fix, and the components are being brought up in the correct order, so I'm all set and please feel free to close this bug.

Again, thanks to both of you.


> 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


[jira] Commented: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "David Jencks (JIRA)" <de...@geronimo.apache.org>.
     [ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=comments#action_55371 ]
     
David Jencks commented on GERONIMO-307:
---------------------------------------

Your original geronimo plan is now wrong, see http://wiki.apache.org/geronimo/Naming

Most likely changing the geronimo plan to

  <resource-ref>
        <ref-name>ra/CF</ref-name>
        <resource-link>testCF</resource-link>
    </resource-ref>

will work

> 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


Re: [jira] Commented: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by toby cabot <to...@caboteria.org>.
On Thu, Nov 11, 2004 at 01:01:17PM -0800, David Jencks wrote:
> cmon toby, give us something to work with:-)

Looks as if our jira comments are crossing paths.  After trying the
experiment that Aaron suggested I saw your comment about the changes
to geronimo-jetty and that did the trick.

Thanks,
Toby

Re: [jira] Commented: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by David Jencks <dj...@gluecode.com>.
cmon toby, give us something to work with:-)

Can you include your entire spec dds and geronimo plans?  This last  
problem makes it look like you fixed the resource-ref and have a  
problem with an ejb-ref.  Note that if you name everything  
appropriately you can usually completely dispense with refs in the  
geronimo plan.

thanks
david jencks

On Nov 11, 2004, at 12:50 PM, toby cabot (JIRA) wrote:

>      [  
> 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.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.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.ja 
> va:39)
>         at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.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.ja 
> va:42)
>         at $Proxy0.invoke(Unknown Source)
>         at  
> org.apache.geronimo.gbean.jmx.JMXOperationInvoker.invoke(JMXOperationIn 
> voker.java:54)
>         at  
> org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMet 
> hodInterceptor.java:112)
>         at  
> org.apache.geronimo.kernel.KernelMBean$$EnhancerByCGLIB$$66f64035.invok 
> e(<generated>)
>         at  
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Distr 
> ibuteCommand.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(ServletHan 
>> dler.java:390)
>>         at  
>> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(Web 
>> ApplicationHandler.java:287)
>>         at  
>> org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationCo 
>> ntext.java:421)
>>         at  
>> org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppContex 
>> t.java:219)
>>         at  
>> org.apache.geronimo.gbean.jmx.GBeanMBean.doStart(GBeanMBean.java:593)
>>         at  
>> org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(A 
>> bstractManagedObject.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(G 
>> BeanMBeanReference.java:307)
>>         at  
>> mx4j.server.interceptor.NotificationListenerMBeanServerInterceptor$Lis 
>> tenerWrapper.handleNotification(NotificationListenerMBeanServerInterce 
>> ptor.java:57)
>>         at  
>> javax.management.NotificationBroadcasterSupport.handleNotification(Not 
>> ificationBroadcasterSupport.java:346)
>>         at  
>> javax.management.NotificationBroadcasterSupport.sendNotification(Notif 
>> icationBroadcasterSupport.java:320)
>>         at  
>> org.apache.geronimo.gbean.jmx.AbstractManagedObject.sendNotification(A 
>> bstractManagedObject.java:244)
>>         at  
>> org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(A 
>> bstractManagedObject.java:500)
>>         at  
>> org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractMana 
>> gedObject.java:279)        at
>> +org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(Ab 
>> stractManagedObject.java:303)
>>         at  
>> org.apache.geronimo.gbean.jmx.GBeanMBean$9.invoke(GBeanMBean.java: 
>> 940)
>>         at  
>> org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOpe 
>> ration.java:142)
>>         at  
>> org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:767)
>>         at  
>> mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMB 
>> eanServerInterceptor.java:218)
>>         at  
>> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMB 
>> eanServerInterceptor.java:121)
>>         at  
>> mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(Security 
>> MBeanServerInterceptor.java:86)
>>         at  
>> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMB 
>> eanServerInterceptor.java:121)
>>         at  
>> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMB 
>> eanServerInterceptor.java:121)
>>         at  
>> mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invok 
>> e(ContextClassLoaderMBeanServerInterceptor.java:205)
>>         at  
>> mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
>>         at  
>> org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(Abs 
>> tractManagedObject.java:310)
>>         at  
>> org.apache.geronimo.gbean.jmx.GBeanMBean$9.invoke(GBeanMBean.java: 
>> 940)
>>         at  
>> org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOpe 
>> ration.java:142)
>>         at  
>> org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:767)
>>         at  
>> mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMB 
>> eanServerInterceptor.java:218)
>>         at  
>> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMB 
>> eanServerInterceptor.java:121)
>>         at  
>> mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(Security 
>> MBeanServerInterceptor.java:86)
>>         at  
>> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMB 
>> eanServerInterceptor.java:121)
>>         at  
>> mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMB 
>> eanServerInterceptor.java:121)
>>         at  
>> mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invok 
>> e(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(JMXO 
>> bjectFactory.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
>


[jira] Commented: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "toby cabot (JIRA)" <de...@geronimo.apache.org>.
     [ 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


[jira] Commented: (GERONIMO-307) servlet tries to lookup resource adapter: IllegalStateException

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://nagoya.apache.org/jira/browse/GERONIMO-307?page=comments#action_55127 ]
     
Aaron Mulder commented on GERONIMO-307:
---------------------------------------

Toby, can you check whether this is still a problem?

Also, it may be that the modules are started out of order (web first, connector second).  If you still have the problem, can you specify both configuraion names on the server command line, connector first and web second, and see if that fixes the problem?


> 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