Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 65937 invoked from network); 5 Jun 2007 12:43:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2007 12:43:50 -0000 Received: (qmail 87419 invoked by uid 500); 5 Jun 2007 12:43:51 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 87372 invoked by uid 500); 5 Jun 2007 12:43:51 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 87361 invoked by uid 99); 5 Jun 2007 12:43:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2007 05:43:51 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2007 05:43:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 59B194297CD for ; Tue, 5 Jun 2007 05:43:26 -0700 (PDT) Message-ID: <6372423.1181047406364.JavaMail.jira@brutus> Date: Tue, 5 Jun 2007 05:43:26 -0700 (PDT) From: "Shiva Kumar H R (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-3211) The PersistenceUnitGBean is added to wrong configuration for EAR application In-Reply-To: <2661885.1181020106255.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501546 ] Shiva Kumar H R commented on GERONIMO-3211: ------------------------------------------- Thanks YunFeng! DayTrader works perfectly after applying this patch to trunk. > The PersistenceUnitGBean is added to wrong configuration for EAR application > ----------------------------------------------------------------------------- > > Key: GERONIMO-3211 > URL: https://issues.apache.org/jira/browse/GERONIMO-3211 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: deployment > Affects Versions: 2.0-M6 > Reporter: YunFeng Ma > Fix For: 2.0-M7 > > Attachments: GERONIMO-3211.patch > > > For an EAR application which includes war module and ejb module, such as the DayTrader, the persistence.xml is included in ejb module, PersistenceUnitBuilder will parse persistence.xml and create a PersistenceUnitGBean and insert the gbean to web module, then the ejb module throws exception for not finding the gbean. > Deploying Daytrader shows this error: > org.apache.geronimo.common.DeploymentException: Could not resolve reference at d > eploy time for query ?name=persistence/daytrader#org.apache.geronimo.persistence > .PersistenceUnitGBean. No GBeans found. > at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder. > checkForGBean(PersistenceContextRefBuilder.java:205) > at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder. > buildNaming(PersistenceContextRefBuilder.java:119) > at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder$ > $FastClassByCGLIB$$adb4ada.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:828) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$1 > 9254d5e.buildNaming() > at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNami > ng(NamingBuilderCollection.java:53) > at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection$$FastClas > sByCGLIB$$5fe23b0e.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:828) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$1 > 9254d5e.buildNaming() > at org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.addEnc(Ej > bDeploymentBuilder.java:328) > at org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.buildEnc( > EjbDeploymentBuilder.java:305) > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(Ejb > ModuleBuilder.java:608) > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByC > GLIB$$cd80af20.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:828) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$8 > dacf4da.addGBeans() > at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati > on(EARConfigBuilder.java:616) > at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLI > B$$38e56ec6.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:828) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$ > $8ed2d1cd.buildConfiguration() > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124) > at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.i > nvoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:863) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 239) > at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342) > at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.in > voke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:863) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 239) > at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBrid > ge.java:168) > at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp > l.java:231) > at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM > BeanServerInterceptor.java:833) > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802 > ) > at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti > onImpl.java:1423) > at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectio > nImpl.java:96) > at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run > (RMIConnectionImpl.java:1260) > at java.security.AccessController.doPrivileged(AccessController.java:275 > ) > at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R > MIConnectionImpl.java:1363) > at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImp > l.java:797) > at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:615) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:309) > at sun.rmi.transport.Transport$1.run(Transport.java:168) > at java.security.AccessController.doPrivileged(AccessController.java:275 > ) > at sun.rmi.transport.Transport.serviceCall(Transport.java:164) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:5 > 06) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TC > PTransport.java:838) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport > .java:912) > at java.lang.Thread.run(Thread.java:803) > Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: No matches for ref > erencePatterns: [?name=persistence/daytrader#org.apache.geronimo.persistence.Per > sistenceUnitGBean] > at org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configu > ration.java:668) > at org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configu > ration.java:625) > at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder. > checkForGBean(PersistenceContextRefBuilder.java:200) > ... 79 more > org.apache.geronimo.common.DeploymentException: Could not resolve reference at d > eploy time for query ?name=daytrader#org.apache.geronimo.persistence.Persistence > UnitGBean. No GBeans found. > at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder. > checkForGBean(PersistenceContextRefBuilder.java:205) > at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder. > buildNaming(PersistenceContextRefBuilder.java:160) > at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder$ > $FastClassByCGLIB$$adb4ada.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:828) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$1 > 9254d5e.buildNaming() > at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNami > ng(NamingBuilderCollection.java:53) > at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection$$FastClas > sByCGLIB$$5fe23b0e.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:828) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$1 > 9254d5e.buildNaming() > at org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.addEnc(Ej > bDeploymentBuilder.java:328) > at org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.buildEnc( > EjbDeploymentBuilder.java:305) > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(Ejb > ModuleBuilder.java:608) > at org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByC > GLIB$$cd80af20.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:828) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$8 > dacf4da.addGBeans() > at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati > on(EARConfigBuilder.java:616) > at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLI > B$$38e56ec6.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:828) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$ > $8ed2d1cd.buildConfiguration() > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124) > at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.i > nvoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:863) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 239) > at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342) > at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.in > voke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:127) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:863) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 239) > at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBrid > ge.java:168) > at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp > l.java:231) > at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM > BeanServerInterceptor.java:833) > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802 > ) > at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti > onImpl.java:1423) > at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectio > nImpl.java:96) > at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run > (RMIConnectionImpl.java:1260) > at java.security.AccessController.doPrivileged(AccessController.java:275 > ) > at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R > MIConnectionImpl.java:1363) > at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImp > l.java:797) > at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:615) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:309) > at sun.rmi.transport.Transport$1.run(Transport.java:168) > at java.security.AccessController.doPrivileged(AccessController.java:275 > ) > at sun.rmi.transport.Transport.serviceCall(Transport.java:164) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:5 > 06) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TC > PTransport.java:838) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport > .java:912) > at java.lang.Thread.run(Thread.java:803) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.