Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 84727 invoked from network); 19 Jan 2009 00:49:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2009 00:49:46 -0000 Received: (qmail 93826 invoked by uid 500); 19 Jan 2009 00:49:45 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 93817 invoked by uid 500); 19 Jan 2009 00:49:45 -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 93808 invoked by uid 99); 19 Jan 2009 00:49:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jan 2009 16:49:45 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.44.57] (HELO smtp102.prem.mail.sp1.yahoo.com) (98.136.44.57) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 Jan 2009 00:49:35 +0000 Received: (qmail 12799 invoked from network); 19 Jan 2009 00:49:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=r3tM2lQvfKGXZ0omHbR0Ma2u4ag8GH0lIXvRDg1hl2uiMU8NoHLlKRMfhhMYNjbpeQW5lQw3a5XM0yompHFyEmxdai/VbFiAS/z0fhb/wSLOievpZDzgrWMuhXC3SDKaCCX3HT9i+ZYbXExgSe0FGpanJZF2q0H77R+uhoEo7Es= ; Received: from unknown (HELO ?10.11.55.43?) (david_jencks@76.76.148.215 with plain) by smtp102.prem.mail.sp1.yahoo.com with SMTP; 19 Jan 2009 00:49:12 -0000 X-YMail-OSG: LqI4iK0VM1lylyMK86G2atJgBKZRmXoL9V2f0Ogaz1ytUKddmoRNVL32eBc1iGN0HxHpo_.nHKFdNEeVEIml7sb63AbCXZm1VvQM7vRZXPIgNqsYgOm4je2K7RIbGY__sQrhPnsLjVNy.pPuIKErP1q.0nPkkFMXE25B4S4ox.RUrfslf7CagrgRFW0VKnyO3OpPCfT_XybTCJGnSrOyz.Gk X-Yahoo-Newman-Property: ymail-3 Message-Id: <8588ABE6-EFA1-48DB-9C1A-0EA5A0C26867@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <21534279.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Jetty/Tomcat plugin build failed with persistence.xml Date: Sun, 18 Jan 2009 16:49:11 -0800 References: <21534279.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Where exactly is the persistence.xml in your ear? BTW if you use auto-create tables or openjpa "sequences" you almost certainly need a non-jta-datasource as well, and it should really not have transactions enabled. thanks david jencks On Jan 18, 2009, at 2:52 PM, bongosdude wrote: > > in my EJB module, I have created a persistence.xml as below: > > CallingCardUserJPA > > org.apache.openjpa.persistence.PersistenceProviderImpl provider> > callingcard_users > com.mycom.services.svc.model.entity.users.User > com.mycom.services.xvc.model.entity.users.UserRole > > > > > > > When I build my project using maven2 (i.e. mvn clean install), all > build > succeeded except when it builds jetty/tomcat plugin with the following > error: > > How can I setup jetty/tomcat plugin plan.xml with a persistence unit > that I > defined in persistence.xml? > > Please help. > > -B > > org.apache.geronimo.common.DeploymentException: Could not resolve > reference > at deploy time for query > ?name=persistence/ > CallingCardUsersUnit > #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 > .j2ee > .deployment > .NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53) > at > org > .apache > .geronimo > .openejb > .deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:321) > at > org > .apache > .geronimo > .openejb > .deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java: > 286) > at > org > .apache > .geronimo > .openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java: > 764) > at > org > .apache > .geronimo > .j2ee > .deployment > .EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254) > 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:585) > at > org > .apache > .geronimo > .gbean > .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: > 34) > at > org > .apache > .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) > > > ----- > B Amigo:super: > -- > View this message in context: http://www.nabble.com/Jetty-Tomcat-plugin-build-failed-with-persistence.xml-tp21534279s134p21534279.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >