From user-return-15387-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Fri Feb 25 09:29:01 2011 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 28421 invoked from network); 25 Feb 2011 09:29:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 09:29:00 -0000 Received: (qmail 30964 invoked by uid 500); 25 Feb 2011 09:29:00 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 30688 invoked by uid 500); 25 Feb 2011 09:28:57 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 30680 invoked by uid 99); 25 Feb 2011 09:28:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 09:28:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of genspring@gmail.com designates 209.85.210.182 as permitted sender) Received: from [209.85.210.182] (HELO mail-iy0-f182.google.com) (209.85.210.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 09:28:47 +0000 Received: by iyj12 with SMTP id 12so829001iyj.13 for ; Fri, 25 Feb 2011 01:28:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=NC/xXFp7d0m82nrutGKASegjzMoUeUxATQyd6tjz7Gs=; b=SVrdq5azLbBGtrUZPS88Cn/QvcE2NEazy08Hu1mpSGQmIr/W/ZfS13kUjNiTLuBIWf wJMPFi75AD0yNDfxf95NBL/KTFfr2Pj0ap1DvNqN+vWlYfozAP7/BfRKIY6AW4bayFXy 3jqs2/18QC/C/fINJjdS2ZXSJfCllSp63wtfU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=KuFF0GvtIRdnYbjT4g4WJq8e9yrkPjV6aapew85yHCvGSN3E68R4CImpc4l6TaMvMB ovKZ+r2EpNrH0FV/qFC4ELar5fyRGwkgKi3FmAfo4VdS2tscc7o5/zy57WSL+Mx6fFt7 wzgADihOQqUXRiuDQSJt/GKAxeio/qdDO8Ylg= MIME-Version: 1.0 Received: by 10.42.189.136 with SMTP id de8mr524248icb.174.1298626106097; Fri, 25 Feb 2011 01:28:26 -0800 (PST) Received: by 10.42.213.68 with HTTP; Fri, 25 Feb 2011 01:28:26 -0800 (PST) In-Reply-To: <1298623889.22454.14.camel@namphibian> References: <1298623889.22454.14.camel@namphibian> Date: Fri, 25 Feb 2011 17:28:26 +0800 Message-ID: Subject: Re: EclipseLink JPA and Geronimo Question From: Shawn Jiang To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=20cf303dd952c000d5049d17f372 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303dd952c000d5049d17f372 Content-Type: text/plain; charset=ISO-8859-1 Have you added your datasouce pool as a dependency in your geronimo deployment plan ? On Fri, Feb 25, 2011 at 4:51 PM, Neil Franken wrote: > Hi All > > Sorry if this question is a newbie type thing. I am busy with a EAR > application that consist out of the usual stack of EJB and JSp/Servlets. > I got the EJB and Servlet/JSP Combination working perfectly on Geronimo > 2.2.1. I followed the 5 minute tutorial on the website. > > Anyway I got a J2EE application that I wrote in NB 6.9.1 and ran and > tested on Glassfish. Since Oracle seems to be letting NB slide I have > decided to move to Eclipse again and just start slowly with the basics > my ultimate goal is to port this application(NB/GF3) to Geronimo and I > am having a hard time with the connection pooling bit. > > I have created a connection pool on Geronimo(using the wizard). This > pool is called jdbc/cnectd. I can successfully use the connection pool > on the geronimo server console and I execute SQL on it and get results. > All fine so far the pool seems to be running correctly. However after > adding a JPA project to my Enterprise Application in Eclipse setting up > the persistence classes I am cannot deploy. Just note that I did add the > jdbc/cnectd connection name to my Persistence.xml and mark it as a JTA > source. > > Here is the error: > > Distribution of module failed. See log for details. > Unable to resolve reference "JtaDataSourceWrapper" > in gbean > > default/sample-ear/1.0/car?EJBModule=SampleEJB.jar,J2EEApplication=default/sample-ear/1.0/car,PersistenceUnitModule=SampleJPA.jar,j2eeType=PersistenceUnit,name=SampleJPA > to a gbean matching the pattern > [?name=jdbc/cnectd#org.apache.geronimo.naming.ResourceSource] > due to: No matches for referencePatterns: > [?name=jdbc/cnectd#org.apache.geronimo.naming.ResourceSource] > org.apache.geronimo.common.DeploymentException: Unable to resolve > reference "JtaDataSourceWrapper" > in gbean > > default/sample-ear/1.0/car?EJBModule=SampleEJB.jar,J2EEApplication=default/sample-ear/1.0/car,PersistenceUnitModule=SampleJPA.jar,j2eeType=PersistenceUnit,name=SampleJPA > to a gbean matching the pattern > [?name=jdbc/cnectd#org.apache.geronimo.naming.ResourceSource] > due to: No matches for referencePatterns: > [?name=jdbc/cnectd#org.apache.geronimo.naming.ResourceSource] > at > > org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:656) > at > org.apache.geronimo.deployment.Deployer.install(Deployer.java:339) > at > org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:263) > at > org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:136) > 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:597) > at > > org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) > at > > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130) > at > > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:851) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237) > at > org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342) > at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > > org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) > at > > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130) > at > > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:851) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237) > at > > org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172) > at > > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) > at > > javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427) > at javax.management.remote.rmi.RMIConnectionImpl.access > $200(RMIConnectionImpl.java:72) > at javax.management.remote.rmi.RMIConnectionImpl > $PrivilegedOperation.run(RMIConnectionImpl.java:1265) > at java.security.AccessController.doPrivileged(Native Method) > at > > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367) > at > > javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788) > at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) > at sun.rmi.transport.Transport$1.run(Transport.java:159) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:155) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) > at sun.rmi.transport.tcp.TCPTransport > $ConnectionHandler.run0(TCPTransport.java:790) > at sun.rmi.transport.tcp.TCPTransport > $ConnectionHandler.run(TCPTransport.java:649) > at java.util.concurrent.ThreadPoolExecutor > $Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor > $Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > > > Any help would be appreciated. I suspect I am not deploying correctly or > mismatching something along the line. > > Regards > Neil > > > -- Shawn --20cf303dd952c000d5049d17f372 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Have you added your datasouce pool as a dependency in your geronimo deploym= ent plan ?

On Fri, Feb 25, 2011 at 4:51 P= M, Neil Franken <ncjfranken@gmail.com> wrote:
Hi All

Sorry if this question is a newbie type thing. I am busy with a EAR
application that consist out of the usual stack of EJB and JSp/Servlets. I got the EJB and Servlet/JSP Combination working perfectly on Geronimo
2.2.1. I followed the 5 minute tutorial on the website.

Anyway I got a J2EE application that I wrote in NB 6.9.1 and ran and
tested on Glassfish. Since Oracle seems to be letting NB slide I have
decided to move to Eclipse again and just start slowly with the basics
my ultimate goal is to port this application(NB/GF3) to Geronimo and I
am having a hard time with the connection pooling bit.

I have created a connection pool on Geronimo(using the wizard). This
pool is called jdbc/cnectd. I can successfully use the connection pool
on the geronimo server console and I execute SQL on it and get results.
All fine so far the pool seems to be running correctly. However after
adding a JPA project to my Enterprise Application in Eclipse setting up
the persistence classes I am cannot deploy. Just note that I did add the jdbc/cnectd connection name to my Persistence.xml and mark it as a JTA
source.

Here is the error:

Distribution of module failed. =A0See log for details.
=A0Unable to resolve reference "JtaDataSourceWrapper"
=A0 =A0 =A0in gbean
default/sample-ear/1.0/car?EJBModule=3DSampleEJB.jar,J2EEApplication=3Ddefa= ult/sample-ear/1.0/car,PersistenceUnitModule=3DSampleJPA.jar,j2eeType=3DPer= sistenceUnit,name=3DSampleJPA
=A0 =A0 =A0to a gbean matching the pattern
[?name=3Djdbc/cnectd#org.apache.geronimo.naming.ResourceSource]
=A0 =A0 =A0due to: No matches for referencePatterns:
[?name=3Djdbc/cnectd#org.apache.geronimo.naming.ResourceSource]
=A0org.apache.geronimo.common.DeploymentException: Unable to resolve
reference "JtaDataSourceWrapper"
=A0 =A0 =A0in gbean
default/sample-ear/1.0/car?EJBModule=3DSampleEJB.jar,J2EEApplication=3Ddefa= ult/sample-ear/1.0/car,PersistenceUnitModule=3DSampleJPA.jar,j2eeType=3DPer= sistenceUnit,name=3DSampleJPA
=A0 =A0 =A0to a gbean matching the pattern
[?name=3Djdbc/cnectd#org.apache.geronimo.naming.ResourceSource]
=A0 =A0 =A0due to: No matches for referencePatterns:
[?name=3Djdbc/cnectd#org.apache.geronimo.naming.ResourceSource]
=A0 =A0 =A0 =A0at
org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(Deplo= ymentContext.java:656)
=A0 =A0 =A0 =A0at
org.apache.geronimo.deployment.Deployer.install(Deployer.java:339)
=A0 =A0 =A0 =A0at
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:263)
=A0 =A0 =A0 =A0at
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:136)
=A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Meth= od)
=A0 =A0 =A0 =A0at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3= 9)
=A0 =A0 =A0 =A0at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25)
=A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597)
=A0 =A0 =A0 =A0at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Reflection= MethodInvoker.java:34)
=A0 =A0 =A0 =A0at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java= :130)
=A0 =A0 =A0 =A0at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:8= 51)
=A0 =A0 =A0 =A0at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237) =A0 =A0 =A0 =A0at
org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
=A0 =A0 =A0 =A0at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown So= urce)
=A0 =A0 =A0 =A0at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25)
=A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597)
=A0 =A0 =A0 =A0at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Reflection= MethodInvoker.java:34)
=A0 =A0 =A0 =A0at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java= :130)
=A0 =A0 =A0 =A0at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:8= 51)
=A0 =A0 =A0 =A0at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237) =A0 =A0 =A0 =A0at
org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.jav= a:172)
=A0 =A0 =A0 =A0at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSe= rverInterceptor.java:836)
=A0 =A0 =A0 =A0at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
=A0 =A0 =A0 =A0at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl= .java:1427)
=A0 =A0 =A0 =A0at javax.management.remote.rmi.RMIConnectionImpl.access
$200(RMIConnectionImpl.java:72)
=A0 =A0 =A0 =A0at javax.management.remote.rmi.RMIConnectionImpl
$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
=A0 =A0 =A0 =A0at java.security.AccessController.doPrivileged(Native Metho= d)
=A0 =A0 =A0 =A0at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConn= ectionImpl.java:1367)
=A0 =A0 =A0 =A0at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java= :788)
=A0 =A0 =A0 =A0at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown So= urce)
=A0 =A0 =A0 =A0at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25)
=A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597)
=A0 =A0 =A0 =A0at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
=A0 =A0 =A0 =A0at sun.rmi.transport.Transport$1.run(Transport.java:159) =A0 =A0 =A0 =A0at java.security.AccessController.doPrivileged(Native Metho= d)
=A0 =A0 =A0 =A0at sun.rmi.transport.Transport.serviceCall(Transport.java:1= 55)
=A0 =A0 =A0 =A0at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) =A0 =A0 =A0 =A0at sun.rmi.transport.tcp.TCPTransport
$ConnectionHandler.run0(TCPTransport.java:790)
=A0 =A0 =A0 =A0at sun.rmi.transport.tcp.TCPTransport
$ConnectionHandler.run(TCPTransport.java:649)
=A0 =A0 =A0 =A0at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
=A0 =A0 =A0 =A0at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
=A0 =A0 =A0 =A0at java.lang.Thread.run(Thread.java:662)


Any help would be appreciated. I suspect I am not deploying correctly or mismatching something along the line.

Regards
Neil





--
Shawn
--20cf303dd952c000d5049d17f372--