File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes JBoss hangs at Hibernate initialisation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JBoss hangs at Hibernate initialisation" Watch "JBoss hangs at Hibernate initialisation" New topic
Author

JBoss hangs at Hibernate initialisation

Pol Pulderson
Greenhorn

Joined: Jun 20, 2011
Posts: 2
I have an ear application, packaging a war and jboss seam and an EJB3 bean.
The Seam is only used for scheduling.

I use Hibernate, JPA 1.0, JBoss 5.1.0.GA and Oracle 11.
During deploy, the JBoss hangs after the following lines:
Server.log:

2011-06-20 13:20:35,140 INFO [org.jboss.jpa.deployment.PersistenceUnitDeployment] (HDScanner) Starting persistence unit persistence.unit:unitName=cs_ft.ear/lib/FT-DB-JPA-1.0-SNAPSHOT.jar#be.cs_ft.impl_FM-DB-JPA
2011-06-20 13:20:35,390 INFO [org.hibernate.cfg.annotations.Version] (HDScanner) Hibernate Annotations 3.4.0.GA
2011-06-20 13:20:35,421 INFO [org.hibernate.cfg.Environment] (HDScanner) Hibernate 3.3.1.GA
2011-06-20 13:20:35,452 INFO [org.hibernate.cfg.Environment] (HDScanner) hibernate.properties not found
2011-06-20 13:20:35,468 INFO [org.hibernate.cfg.Environment] (HDScanner) Bytecode provider name : javassist
2011-06-20 13:20:35,499 INFO [org.hibernate.cfg.Environment] (HDScanner) using JDK 1.4 java.sql.Timestamp handling
2011-06-20 13:20:35,733 INFO [org.hibernate.annotations.common.Version] (HDScanner) Hibernate Commons Annotations 3.1.0.GA
2011-06-20 13:20:35,749 INFO [org.hibernate.ejb.Version] (HDScanner) Hibernate EntityManager 3.4.0.GA
2011-06-20 13:20:35,796 INFO [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Processing PersistenceUnitInfo [
name: be.cs_ft.impl_FM-DB-JPA
...]
2011-06-20 13:20:35,874 WARN [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
2011-06-20 13:20:36,124 INFO [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] (HDScanner) Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
2011-06-20 13:20:36,140 INFO [org.hibernate.connection.ConnectionProviderFactory] (HDScanner) Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
2011-06-20 13:20:36,155 INFO [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] (HDScanner) Using provided datasource
2011-06-20 13:20:36,718 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
2011-06-20 13:20:46,030 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC driver: Oracle JDBC driver, version: 10.2.0.5.0[/Code]


I have this both on a local JBoss (oracle XE, log shown), as on a remote server (oracle 11).
It seems to be consuming a lot of memory, as can be seen in the process monitoring. After some time an out of memory error is thrown.

Does someone experienced this, and what can be the cause of this error?
Pol Pulderson
Greenhorn

Joined: Jun 20, 2011
Posts: 2
It seems this bug was because
I also included the eclipselink dependencies in maven. (I created my project using Netbeans 7)
JBoss/Hibernate seem not be able to cope with this and give appropriate error.

After downscaling my project to hibernate dependencies only on all levels (also test), it did not have this bug any more.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss hangs at Hibernate initialisation