Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 34395 invoked from network); 25 Feb 2011 09:42:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 09:42:32 -0000 Received: (qmail 52256 invoked by uid 500); 25 Feb 2011 09:42:30 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 51317 invoked by uid 500); 25 Feb 2011 09:42:27 -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 51304 invoked by uid 99); 25 Feb 2011 09:42:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 09:42:26 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=FREEMAIL_FROM,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ncjfranken@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-ww0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 09:42:19 +0000 Received: by wwb31 with SMTP id 31so1904850wwb.31 for ; Fri, 25 Feb 2011 01:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=uK+SM3BFHrDNkb+OuLkeGiJeNF3WCVtbUeTx6jVcWlY=; b=seKUcGqahHfS4zA7FBp1Nu3TjADJlwNI7pIZLENd9sMvBC9ZaXlirxvXG1GyuF9mLj TyUczKW60zqagB+N1j3IW4w07F/9/iPpL5WVlXHgncsa5AnZ+Ir3D5BILLqaPukj8vgy bjXuI4VA13tHmwpAWiIm53UXjfUG49/nB8k44= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=L8xcJwdBWyVja2UWdSyUZTEZX25Jenhd7NdNwFYfO722E84mS9D3VSi2zthTT3hMl/ mRT8mLC8u8kFpXkVweBstPJ3UeFaE14mtGHh/FlWqbQhHGh41jnepNy3gZmoknXDPAyG IRuQiaufwR6vqwtR7QFUeS1D6IZp1bV/OpqiY= Received: by 10.216.176.80 with SMTP id a58mr1751212wem.82.1298626917726; Fri, 25 Feb 2011 01:41:57 -0800 (PST) Received: from [192.168.11.82] (196-210-161-235.dynamic.isadsl.co.za [196.210.161.235]) by mx.google.com with ESMTPS id i80sm226173wej.4.2011.02.25.01.41.54 (version=SSLv3 cipher=OTHER); Fri, 25 Feb 2011 01:41:56 -0800 (PST) Subject: Re: EclipseLink JPA and Geronimo Question From: Neil Franken To: user@geronimo.apache.org In-Reply-To: References: <1298623889.22454.14.camel@namphibian> Content-Type: text/plain; charset="UTF-8" Date: Fri, 25 Feb 2011 11:41:43 +0200 Message-ID: <1298626903.22454.16.camel@namphibian> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit That is a definate no. I was not aware that this is a requirement. Could you perhaps clarify what the steps would be to do this? Seems like GF hides a lot of details from the developers. Once I get this right i would like to contribute to the Geronimo Wiki with the steps. On Fri, 2011-02-25 at 17:28 +0800, Shawn Jiang wrote: > 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