geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Collins <Russell.Coll...@mclaneat.com>
Subject Hibernate Deployment
Date Wed, 01 Apr 2009 13:17:51 GMT
I am trying to add hibernate to my enterprise application.  I was having issues with not having
the correct jar files that hibernate is asking for.  I may still be having those issues but
now, I do not know what it is looking for.  Basically, when I am deploying my EAR file, it
is throwing an error that is related to hibernate.  If anyone knows what is causing this,
I would greatly appreciate the assistance.  I will continue looking at the archives to see
if this issue has already been resolved.  I am using Geronimo 2.1.2.  Here is the Geronimo
log at deploy time.


23:57:21,407 INFO  [DirectoryMonitor] Hot deployer notified that an artifact was removed:
default/NewEar/1.0/car
23:57:24,798 INFO  [config] Configuring Service(id=Default Stateless Container, type=Container,
provider-id=Default Stateless Container)
23:57:24,798 INFO  [config] Configuring Service(id=Default Stateful Container, type=Container,
provider-id=Default Stateful Container)
23:57:24,798 INFO  [config] Configuring Service(id=Default BMP Container, type=Container,
provider-id=Default BMP Container)
23:57:24,798 INFO  [config] Configuring Service(id=Default CMP Container, type=Container,
provider-id=Default CMP Container)
23:57:24,798 INFO  [config] Configuring app: default/NewEar/1.0/car
23:57:24,876 INFO  [OpenEJB] Auto-deploying ejb TheBean: EjbDeployment(deployment-id=SimpleEJB.jar/TheBean)
23:57:24,876 INFO  [config] Loaded Module: default/NewEar/1.0/car
23:57:26,907 INFO  [Version] Hibernate Annotations 3.4.0.GA
23:57:26,938 INFO  [Environment] Hibernate 3.3.1.GA
23:57:27,017 INFO  [Environment] hibernate.properties not found
23:57:27,032 INFO  [Environment] Bytecode provider name : javassist
23:57:27,048 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
23:57:27,313 INFO  [Version] Hibernate Commons Annotations 3.1.0.GA
23:57:27,329 INFO  [Version] Hibernate EntityManager 3.4.0.GA
23:57:27,423 INFO  [Ejb3Configuration] Processing PersistenceUnitInfo [
            name: Database
            ...]
23:57:27,907 INFO  [Configuration] Reading mappings from resource : META-INF/orm.xml
23:57:28,017 INFO  [Ejb3Configuration] [PersistenceUnit: Database]  META-INF/orm.xml found
23:57:28,188 INFO  [AnnotationConfiguration] Hibernate Validator not found: ignoring
23:57:28,235 INFO  [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener
on the classpath. Hibernate Search is not enabled.
23:57:28,251 INFO  [DriverManagerConnectionProvider] Using Hibernate built-in connection pool
(not for production use!)
23:57:28,251 INFO  [DriverManagerConnectionProvider] Hibernate connection pool size: 20
23:57:28,251 INFO  [DriverManagerConnectionProvider] autocommit mode: true
23:57:28,267 INFO  [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at
URL: jdbc:mysql://localhost:3306/emds
23:57:28,267 INFO  [DriverManagerConnectionProvider] connection properties: {user=root, password=****,
autocommit=true, release_mode=auto}
23:57:28,423 INFO  [SettingsFactory] RDBMS: MySQL, version: 4.1.22-community-nt
23:57:28,423 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.0.17-ga
( $Date: 2005/04/06 14:12:56 $, $Revision: 1.27.2.47 $ )
23:57:28,501 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
23:57:28,642 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
23:57:28,657 INFO  [TransactionManagerLookupFactory] No TransactionManagerLookup configured
(in JTA environment, use of read-write or transactional second-level cache is not recommended)
23:57:28,657 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
23:57:28,657 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
23:57:28,657 INFO  [SettingsFactory] JDBC batch size: 15
23:57:28,657 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
23:57:28,657 INFO  [SettingsFactory] Scrollable result sets: enabled
23:57:28,657 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
23:57:28,657 INFO  [SettingsFactory] Connection release mode: auto
23:57:28,657 INFO  [SettingsFactory] Default schema: emds
23:57:28,657 INFO  [SettingsFactory] Maximum outer join fetch depth: 2
23:57:28,657 INFO  [SettingsFactory] Default batch fetch size: 1
23:57:28,657 INFO  [SettingsFactory] Generate SQL with comments: disabled
23:57:28,657 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
23:57:28,657 INFO  [SettingsFactory] Order SQL inserts for batching: disabled
23:57:28,657 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
23:57:28,673 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
23:57:28,673 INFO  [SettingsFactory] Query language substitutions: {}
23:57:28,673 INFO  [SettingsFactory] JPA-QL strict compliance: enabled
23:57:28,673 INFO  [SettingsFactory] Second-level cache: enabled
23:57:28,673 INFO  [SettingsFactory] Query cache: disabled
23:57:28,673 INFO  [SettingsFactory] Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
23:57:28,673 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
23:57:28,673 INFO  [SettingsFactory] Structured second-level cache entries: disabled
23:57:28,688 INFO  [SettingsFactory] Statistics: disabled
23:57:28,688 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
23:57:28,704 INFO  [SettingsFactory] Default entity-mode: pojo
23:57:28,704 INFO  [SettingsFactory] Named query checking : enabled
23:57:28,782 INFO  [SessionFactoryImpl] building session factory
23:57:28,798 INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name
configured
23:57:28,798 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state:
abstractName="default/NewEar/1.0/car?EJBModule=SimpleEJB.jar,J2EEApplication=default/NewEar/1.0/car,PersistenceUnitModule=SimpleEJB.jar,j2eeType=PersistenceUnit,name=Database"
javax.persistence.PersistenceException: [PersistenceUnit: Database] Unable to build EntityManagerFactory
            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
            at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
            at org.apache.geronimo.persistence.PersistenceUnitGBean.<init>(PersistenceUnitGBean.java:125)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:948)
            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
            at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
            at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
            at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
            at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
            at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
            at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
            at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:543)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
            at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
            at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.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.GeneratedMethodAccessor153.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
            at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
            at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
            at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
            at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
            at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
            at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
            at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
            at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
            at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown Source)
            at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source)
            at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
            at sun.rmi.transport.Transport$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access
to the JTA TransactionManager
            at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:361)
            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
            at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
            ... 53 more
23:57:28,798 INFO  [startup] Assembling app: C:\Documents and Settings\Russell.Collins\Local
Settings\Temp\geronimo-deploymentUtil59832.jar
23:57:28,829 INFO  [startup] Jndi(name=TheBeanLocal) --> Ejb(deployment-id=SimpleEJB.jar/TheBean)
23:57:28,829 INFO  [startup] Jndi(name=TheBeanRemote) --> Ejb(deployment-id=SimpleEJB.jar/TheBean)
23:57:28,829 INFO  [startup] Created Ejb(deployment-id=SimpleEJB.jar/TheBean, ejb-name=TheBean,
container=Default Stateless Container)
23:57:28,829 INFO  [startup] Deployed Application(path=C:\Documents and Settings\Russell.Collins\Local
Settings\Temp\geronimo-deploymentUtil59832.jar)
23:57:28,829 INFO  [startup] Undeploying app: C:\Documents and Settings\Russell.Collins\Local
Settings\Temp\geronimo-deploymentUtil59832.jar

Mime
View raw message