El Saturday 04 October 2008 09:49:15 MarWestermann escribió: > Hi, > I have the following question / problem. First here are my environment > things: > Geronimo: > Version 2.1.2 > Build 2008.07.30-14:23:01.771-0400 > Java Version 1.6.0_07 > Java Vendor Sun Microsystems Inc. > > Dev: > eclipse 3.3 + geronimo 2.1 Server Adapter > > I followed the tutorial at: > http://cwiki.apache.org/GMOxDOC21/bean-managed-persistence-with-jpa.html > > When I came to the step where to deploy the ear-file, I got the following > error-message: > D:\geronimo-tomcat6-javaee5-2.1.2\bin>deploy.bat --user system --password > manage > r deploy C:\Temp\BeanManagedJPA-EAR.ear > Using GERONIMO_BASE: D:\geronimo-tomcat6-javaee5-2.1.2 > Using GERONIMO_HOME: D:\geronimo-tomcat6-javaee5-2.1.2 > Using GERONIMO_TMPDIR: var\temp > Using JRE_HOME: C:\Programme\Java\jdk1.6.0_07\jre > Error: Unable to distribute BeanManagedJPA-EAR.ear: At least one > deployment problem:[org.apache.geronimo.common.DeploymentException: > Could not resolve reference at deploy time for query > > ?name=persistence/AccountUnit#org.apache.geronimo.persistence.PersistenceUn >i tGBean. > No GBean references found.] > > Does anybody know, what this means? > Hello. That's sound like geronimo didn't create the AccountUnit Gbean that its created in the persistence.xml. Check that file. Specifically this part:
<persistence-unit name="AccountUnit" transaction-type="JTA"> <description>ContainerManagedJPA</description> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> <jta-data-source>AccountDS</jta-data-source> <class>sample.jpa.Account</class> <class>sample.jpa.Person</class> </persistence-unit> </persistence> > Thanks for any help, > Marco
