JBoss Community

Hibernate 4.1.9 Jboss 6.0.0

created by Sapan Vashishth in EJB3 - View the full discussion

Hi

 

I am trying to deploy and use hibernate 4.1.9 on the Jboss server 6.0.0.

What I did:

1. Deployed EJB3 example from this tutorial on jboss6.0.0 (http://www.laliluna.de/download/first-ejb3-tutorial-en.pdf)

2. Tested with default jboss configuration and this is running successfully.

 

3. To move to Hibernate 4.1.9 I copied the jars from the hibernate-release-4.1.9.Final/lib/required to the jboss-6.0.0.Final/lib/endorsed.

4. Now when I restart Jbsoss, the deployment fails. exceptions as below.

 

Serve.lg

DEPLOYMENTS MISSING DEPENDENCIES:

  Deployment "MK2TimerServiceFactory" is missing the following dependencies:

    Dependency "persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb" (should be in state "Installed", but is actually in state "**ERROR**")

  Deployment "jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3" is missing the following dependencies:

    Dependency "<UNKNOWN jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=FirstEjb3Tutorial.jar#FirstEjb3Tutorial' **")

  Deployment "jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3_endpoint" is missing the following dependencies:

    Dependency "jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")

 

DEPLOYMENTS IN ERROR:

  Deployment "persistence.unit:unitName=FirstEjb3Tutorial.jar#FirstEjb3Tutorial" is in error due to the following reason(s): java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.ejb.Ejb3Configuration

  Deployment "persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb" is in error due to the following reason(s): java.lang.NullPointerException, **ERROR**

  Deployment "<UNKNOWN jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=FirstEjb3Tutorial.jar#FirstEjb3Tutorial' **

 

boot.log

 

12:28:27,975 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=FirstEjb3Tutorial.jar#FirstEjb3Tutorial state=Create: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.ejb.Ejb3Configuration

    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72) [:3.6.0.Final]

 

Am I missing something here or should there be any other configuration that is required to be changed.

 

Also, It is our requirement to run the same on Jboss 6.0.0 and moving to Jboss7 is not an option presenlty.

 

Sapan

Reply to this message by going to Community

Start a new discussion in EJB3 at Community