-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Deploy Hibernate 4.1.9 on Jboss 6.0.0
PostPosted: Wed Mar 06, 2013 3:00 am 
Newbie

Joined: Wed Mar 06, 2013 2:27 am
Posts: 1
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.

Any help would be highly appreciated.
Sapan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.