View RSS Feed

My Java Tips

Jboss-4.0.2 hibernate bug

Rate this Entry
by , 11-06-2011 at 06:21 PM (1248 Views)
Hibernate is a popular persistence engine that runs in almost any application server and provides alternative of standard entity beans. With JBoss, you can choose to deploy your application as a Hibernate archive, called a HAR file. This makes using hibernate simpler. JBoss is responsible for managing hibernate session and other configuration details.

Jboss-4.0.2 does not include Hibernate3 integration module. This requires Apache commons collections JAR. To fix this, use fix-hibernate target:

[hibernate]$ ant -f jboss-build.xml fix-hibernate
Buildfile: jboss-build.xml
[copy] Copying 1 file to /tmp/jboss-4.0.2/server/default/deploy/jboss-hibernate.deployer

This will copy commons-collections-2.1.1.jar to the jboss-hibernate.deployer directory and redeploys the Hibernate deployer service. The Hibernate 3 service will be fully functional after this. This bug should be fixed in future releases.

Submit "Jboss-4.0.2 hibernate bug" to Facebook Submit "Jboss-4.0.2 hibernate bug" to Digg Submit "Jboss-4.0.2 hibernate bug" to Submit "Jboss-4.0.2 hibernate bug" to StumbleUpon Submit "Jboss-4.0.2 hibernate bug" to Google

Tags: None Add / Edit Tags
Hibernate , Java EE , JBoss