<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Hibernate 4.1.9 Jboss 6.0.0
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/sapan.vas">Sapan Vashishth</a> in <i>EJB3</i> - <a href="https://community.jboss.org/message/800959#800959">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to deploy and use hibernate 4.1.9 on the Jboss server 6.0.0.</p><p>What I did:</p><p><span>1. Deployed EJB3 example from this tutorial on jboss6.0.0 (</span><a class="jive-link-external-small" href="http://www.laliluna.de/download/first-ejb3-tutorial-en.pdf" rel="nofollow" target="_blank">http://www.laliluna.de/download/first-ejb3-tutorial-en.pdf</a><span>)</span></p><p>2. Tested with default jboss configuration and this is running successfully.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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.</p><p>4. Now when I restart Jbsoss, the deployment fails. exceptions as below.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Serve.lg</p><p><em>DEPLOYMENTS MISSING DEPENDENCIES:</em></p><p><em>&#160; Deployment "MK2TimerServiceFactory" is missing the following dependencies:</em></p><p><em>&#160;&#160;&#160; Dependency "persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb" (should be in state "Installed", but is actually in state "**ERROR**")</em></p><p><em>&#160; Deployment "jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3" is missing the following dependencies:</em></p><p><em>&#160;&#160;&#160; Dependency "&lt;UNKNOWN jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3&gt;" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=FirstEjb3Tutorial.jar#FirstEjb3Tutorial' **")</em></p><p><em>&#160; Deployment "jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3_endpoint" is missing the following dependencies:</em></p><p><em>&#160;&#160;&#160; Dependency "jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>DEPLOYMENTS IN ERROR:</em></p><p><em>&#160; 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</em></p><p><em>&#160; Deployment "persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb" is in error due to the following reason(s): java.lang.NullPointerException, **ERROR**</em></p><p><em>&#160; Deployment "&lt;UNKNOWN jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3&gt;" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=FirstEjb3Tutorial.jar#FirstEjb3Tutorial' **</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>boot.log</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>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</em></p><p><em>&#160;&#160;&#160; at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72) [:3.6.0.Final]</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Am I missing something here or should there be any other configuration that is required to be changed.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Also, It is our requirement to run the same on Jboss 6.0.0 and moving to Jboss7 is not an option presenlty.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Sapan</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/800959#800959">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>