This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss hangs at Hibernate initialisation

 
Pol Pulderson
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic