<!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="http://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;">
    Need little help with isolation configuration and class loading
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/nkarasev">Nikolay Karasev</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/575291#575291">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>I am new here. If this is not correct forum (location) please suggest the better one.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Our company has jboss installed on some QA and Prod servers and accessing and modifying any files on server is less than desirable for stability reasons.</p><p>However the installed version (4.2.3.GA) is using older hibernate libraries (/server/default/lib/hibernate3.jar,...). I have to use newer libraries to be able to use hibernate annotations. I have set up maven project(s) so that I am downloading correct versions of hibernate, hibernate-annotations and hibernate-commons-annotations. These are getting bundled into the WAR and then into EAR files and are extracted properly into application's /lib directory. However jboss is picking up the default libraries (I can see that in logs) and AnnotationConfiguration is probably not the correct class (configure() method is not found).</p><p>If I remove the default jar files from jboss installation on my dev box, all works fine, all newer versions of hibernate libraries are loaded and my app works as expected. But like I said - modifying anything on the server side is not desired at all, I would like to force jboss to pick those hibernate libraries from supplied WAR/EAR files.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>While trying to investigate and find the remedy, the only way I see is to do something with class loader in jboss-web.xml file. Maybe I am wrong here, but I cannot find anything close enough. However I am not able to understand how this file is organized. I have assumption that &lt;loader-repository&gt;com.example.loaderrepository:loader=my.war needs to be properly assigned, but I am not sure to what? "com.example" - is this a placeholder for the class that I need to load, or is this for something else? Currently my domain is just "localhost" but in QA or Prod environment it will be xxxxx.com</p><p>Also do I need to use java2ParentDelegation=false?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks,</p><p>Nikolay</p></div>

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


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

</div>

</body>
</html>