geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shiva Kumar H R (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-3211) The PersistenceUnitGBean is added to wrong configuration for EAR application
Date Tue, 05 Jun 2007 12:43:26 GMT

    [ 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(<generated>)
>         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(<generated>)
>         at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNami
> ng(NamingBuilderCollection.java:53)
>         at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection$$FastClas
> sByCGLIB$$5fe23b0e.invoke(<generated>)
>         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(<generated>)
>         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(<generated>)
>         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(<generated>)
>         at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati
> on(EARConfigBuilder.java:616)
>         at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLI
> B$$38e56ec6.invoke(<generated>)
>         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(<generated>)
>         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(<generated>)
>         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(<generated>)
>         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(<generated>)
>         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(<generated>)
>         at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNami
> ng(NamingBuilderCollection.java:53)
>         at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection$$FastClas
> sByCGLIB$$5fe23b0e.invoke(<generated>)
>         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(<generated>)
>         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(<generated>)
>         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(<generated>)
>         at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati
> on(EARConfigBuilder.java:616)
>         at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLI
> B$$38e56ec6.invoke(<generated>)
>         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(<generated>)
>         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(<generated>)
>         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(<generated>)
>         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.


Mime
View raw message