Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 22123 invoked from network); 19 May 2009 04:06:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 May 2009 04:06:29 -0000 Received: (qmail 15067 invoked by uid 500); 19 May 2009 04:06:28 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 15006 invoked by uid 500); 19 May 2009 04:06: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 14998 invoked by uid 99); 19 May 2009 04:06:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2009 04:06:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.196.25.241] (HELO smtp.mclaneat.com) (66.196.25.241) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2009 04:06:19 +0000 Received: from MATSVEC14.mclane.local ([192.168.10.33]) by MATSVEHT12.mclane.local ([192.168.10.36]) with mapi; Mon, 18 May 2009 23:05:58 -0500 From: Russell Collins To: "'user@geronimo.apache.org'" Date: Mon, 18 May 2009 23:05:56 -0500 Subject: Hibernate Deployment on Geronimo 2.1.4 Thread-Topic: Hibernate Deployment on Geronimo 2.1.4 Thread-Index: AcnYNeeQheJomf3EQM+6ybksWNS2LgAARsUg Message-ID: <69BEFCE5AAEBCA44B1301AD2360E83C78DA87594F6@MATSVEC14.mclane.local> References: <69BEFCE5AAEBCA44B1301AD2360E83C78DA87594F4@MATSVEC14.mclane.local> In-Reply-To: <69BEFCE5AAEBCA44B1301AD2360E83C78DA87594F4@MATSVEC14.mclane.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_69BEFCE5AAEBCA44B1301AD2360E83C78DA87594F6MATSVEC14mcla_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_69BEFCE5AAEBCA44B1301AD2360E83C78DA87594F6MATSVEC14mcla_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am trying to deploy on Geronimo 2.1.4 using hibernate as my JPA provider.= Here is my persistence file. eCommerce Domain Model org.hibernate.ejb.HibernatePersistence EMDS_DB com.mds.domain.ecommerce.entity.Admin com.mds.domain.ecommerce.entity.User com.mds.domain.ecommerce.entity.BusinessType com.mds.domain.ecommerce.embedded.EntityChange com.mds.domain.ecommerce.embedded.EntityStatus com.mds.domain.ecommerce.entity.SystemValues com.mds.domain.ecommerce.keys.PkSystemValues true I created the Geronimo transaction manager lookup class. Here is what my d= eployment plan looks like mds ecommerce 2.0 car console.dbpool EMDS_DB 1.0 rar org.apache.geronimo GeronimoTransactionManager 1.0 jar This is the error that I am getting: I have tried adding and removing the= JTATransactionFactory entries and nothing helps. 2009-05-18 22:50:30,567 ERROR [GBeanInstanceState] Error while starting; GB= ean is now in the FAILED state: abstractName=3D"mds/ecommerce/2.0/car?EJBMo= dule=3Dmds.ecommerce.base.jar,J2EEApplication=3Dmds/ecommerce/2.0/car,Persi= stenceUnitModule=3Ddomain.ecommerce.jar,j2eeType=3DPersistenceUnit,name=3Dd= omain.ecommerce" javax.persistence.PersistenceException: [PersistenceUnit: domain.ecommerce]= Unable to build EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3= Configuration.java:677) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManage= rFactory(HibernatePersistence.java:132) at org.apache.geronimo.persistence.PersistenceUnitGBean.(Persis= tenceUnitGBean.java:127) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Meth= od) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstr= uctorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegati= ngConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBe= anInstance.java:948) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullSt= art(GBeanInstanceState.java:268) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanIn= stanceState.java:102) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursiv= e(GBeanInstanceState.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBe= anInstance.java:555) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(B= asicKernel.java:379) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigura= tionGBeans(ConfigurationUtil.java:456) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start= (KernelConfigurationManager.java:188) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.start= Configuration(SimpleConfigurationManager.java:563) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.start= Configuration(SimpleConfigurationManager.java:544) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm= pl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc= cessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(R= eflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOpera= tion.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstan= ce.java:867) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.ja= va:239) at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342= ) at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc= cessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(R= eflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOpera= tion.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstan= ce.java:867) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.ja= va:239) at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanB= ridge.java:172) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Defau= ltMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:= 761) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConne= ctionImpl.java:1426) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnec= tionImpl.java:72) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.= run(RMIConnectionImpl.java:1264) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperatio= n(RMIConnectionImpl.java:1366) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnection= Impl.java:788) at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc= cessorImpl.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.jav= a:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTrans= port.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransp= ort.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolE= xecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecu= tor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.hibernate.HibernateException: The chosen transaction strateg= y requires access to the JTA TransactionManager at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.ja= va:361) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.= java:1327) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Anno= tationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3= Configuration.java:669) ... 54 more Any guidence you could give me would be greatly appreciated. --_000_69BEFCE5AAEBCA44B1301AD2360E83C78DA87594F6MATSVEC14mcla_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

I am trying to deploy on Geronimo 2.1.4 using hibernate as my JPA provider. H= ere is my persistence file.

 

<?xml version=3D"1= .0" encoding= =3D"UTF-8"?>

<persistence version=3D"1= .0" xmlns=3D"http://java.sun.com/xml/ns/persistence"<= /span> xmlns:xsi= =3D"http://www.w3.org/2001/XMLSchema-instance&quo= t; xsi:schemaLocation=3D"http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"= >

      <= persiste= nce-unit name=3D"d= omain.ecommerce" transaction-type=3D"JTA">

      =       descript= ion>= eCommerce = Domain Model</descript= ion>=

      =       provider= >= org.hibern= ate.ejb.HibernatePersistence</provider= >=

      =       jta-data= -source>= EMDS_DB</jta-data= -source>=

      =      

      =       property= name=3D"h= ibernate.dialect" value=3D"org.hibernate.dialect.MySQLDialect" /> =

      =       property= name=3D"h= ibernate.transaction.factory_class" value=3D"org.hibernate.transaction.JTATransactionFacto= ry" />

      =       property= name=3D"h= ibernate.transaction.manager_lookup_class" value=3D"org.apache.geronimo.hibernate.transaction.Ger= onimoTransactionManagerLookup"/>

      =       class>= com.mds.do= main.ecommerce.entity.Admin</class>=

      =       class>= com.mds.do= main.ecommerce.entity.User</class>=

      =       class>= com.mds.do= main.ecommerce.entity.BusinessType</class>=

      =       class>= com.mds.do= main.ecommerce.embedded.EntityChange</class>=

      =       class>= com.mds.do= main.ecommerce.embedded.EntityStatus</class>=

      =       class>= com.mds.do= main.ecommerce.entity.SystemValues</class>=

      =       class>= com.mds.do= main.ecommerce.keys.PkSystemValues</class>=

      =       exclude-= unlisted-classes>= true</exclude-= unlisted-classes>=

      =      

      </persiste= nce-unit>=

</persistence>=

 

I created the Geronimo transaction manager lookup class.  Here is what m= y deployment plan looks like

 

<?xml version=3D"1= .0" encoding= =3D"UTF-8" standalone=3D"n= o"?>

<app:application xmlns:app=3D"h= ttp://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:client=3D"http://geronimo.apache.org/xml/ns/j2ee/applic= ation-client-2.0" xmlns:conn= =3D"http://geronimo.apache.org/xml/ns/j2ee/connec= tor-1.2" xmlns:dep= =3D"http://geronimo.apache.org/xml/ns/deployment-= 1.2" xmlns:ejb= =3D"http://openejb.apache.org/xml/ns/openejb-jar-= 2.2" xmlns:name= =3D"http://geronimo.apache.org/xml/ns/naming-1.2&= quot; xmlns:pers= =3D"http://java.sun.com/xml/ns/persistence"<= /span> xmlns:pkgen=3D"http://openejb.apache.org/xml/ns/pkgen-2.1&qu= ot; xmlns:sec= =3D"http://geronimo.apache.org/xml/ns/security-2.= 0" xmlns:web= =3D"http://geronimo.apache.org/xml/ns/j2ee/web-2.= 0.1" application-name=3D"ecommerce">

    <= dep:envi= ronment>=

      =   dep:modu= leId>=

      =       dep:grou= pId>= mds= </dep:grou= pId>=

      =       dep:arti= factId>= ecommerce<= /span></dep:arti= factId>=

      =       dep:vers= ion>= 2.0= </dep:vers= ion>=

      =       dep:type= >= car= </dep:type= >=

      =   dep:modu= leId>=  &nbs= p;    

      =   dep:depe= ndencies>=

      =       <dep:dependency>

                  <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:teal'><= dep:grou= pId>= console.db= pool</dep:grou= pId>=

                  <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:teal'><= dep:arti= factId>= EMDS_DB</dep:arti= factId>=

                  <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:teal'><= dep:vers= ion>= 1.0= </dep:vers= ion>=

                  <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:teal'><= dep:type= >= rar= </dep:type= >=

      =       </dep:dependency>

      =       <dep:dependency>

                  <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:teal'><= groupId<= /span>>= org.apache= .geronimo</groupId<= /span>>=

                  <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:teal'><= artifact= Id>= GeronimoTr= ansactionManager</artifact= Id>=

                  <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:teal'><= version<= /span>>= 1.0= </version<= /span>>=

                  <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:teal'><= type>= jar= </type>=

      =       dep:depe= ndency>=

      =   dep:depe= ndencies>=

    </dep:envi= ronment>=  &nbs= p;    

</app:application>

 

 

 

This is the error that I am getting:   I have tried adding and removin= g the JTATransactionFactory entries and nothing helps.

 

 

2009-05-18 22:50:30,567 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state= : abstractName=3D"mds/ecommerce/2.0/car?EJBModule=3Dmds.ecommerce.base.j= ar,J2EEApplication=3Dmds/ecommerce/2.0/car,PersistenceUnitModule=3Ddomain.e= commerce.jar,j2eeType=3DPersistenceUnit,name=3Ddomain.ecommerce"

javax.persistence.PersistenceExceptio= n: [PersistenceUnit: domain.ecommerce] Unable to build EntityManagerFactory

      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configu= ration.java:677)

      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(= HibernatePe= rsistence.java:132)

      at org.apache.geronimo.persistence.PersistenceUnitGBean.<init>(Persistence= UnitGBean.java:127)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Meth= od)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConst= ructorAccessorImpl.java:39)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC= onstructorAccessorImpl.java:27)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstan= ce.java:948)

      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstan= ceState.java:268)

      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstan= ceState.java:102)

      at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(= GBeanInstan= ceState.java:124)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstan= ce.java:555)

      at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(= BasicKernel= .java:379)

      at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBean= s(Configurati= onUtil.java:456)

      at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(<= u>KernelConfi= gurationManager.java:188)

      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfigura= tion(SimpleConfi= gurationManager.java:563)

      at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfigura= tion(SimpleConfi= gurationManager.java:544)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:= 39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM= ethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(= ReflectionM= ethodInvoker.java:34)

      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperat= ion.java:124)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstan= ce.java:867)

      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel= .java:239)

      at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)

      at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM= ethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(= ReflectionM= ethodInvoker.java:34)

      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperat= ion.java:124)

      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstan= ce.java:867)

      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel= .java:239)

      at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanB= ridge.java:172)

      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea= nServerInterceptor.java:836)

      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761= )

      at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti= onImpl.java:1426)

      at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnecti= onImpl.java:72)

      at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnecti= onImpl.java:1264)

      at java.security.AccessController.doPrivileged(Native Method)

      at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(= RMIConnecti= onImpl.java:1366)

      at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnecti= onImpl.java:788)

      at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM= ethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305<= span style=3D'font-size:10.0pt;font-family:"Courier New";color:black'>)

      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(TCPTranspor= t.java:535)

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTranspor= t.java:790)

      at su= n.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTranspor= t.java:649)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolE= xecutor.java:886)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:908)

      at java.lang.Thread.run(Thread.java:619)

Caused by: org.hiberna= te.HibernateException: The chos= en transaction strategy requires access to the JTA TransactionManager

      at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFact= oryImpl.java:361)

      at org.hibernate.cfg.Configuration.buildSessionFactory(Configurati= on.java:1327)

      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationC= onfiguration.java:867)

      at or= g.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configu= ration.java:669)

      ... 5= 4 more=

 

 

Any guidence you could give me would be greatly appreciated.<= /p>

 

 

--_000_69BEFCE5AAEBCA44B1301AD2360E83C78DA87594F6MATSVEC14mcla_--