Re:[solved] Re: Using Hibernate 3.6 with Jonas 5.1

Thomas Walraet <[email protected]> Wed, 21 Sep 2011 14:29:35 +0200
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------000603010107030408020908
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Le 20/09/2011 17:38, Guillaume Sauthier (OW2) a =E9crit :
> You can filter some packages exported by JOnAS using the=20
> filtering-default-classloader.xml file in your conf/ folder.
> Simply adapt the package patterns list until you have something working=
.

It works. Thanks.

If somebody have the same problem, following filters exclude all classes=20
from Hibernate and its dependencies :
<filter-name>org.hibernate.*</filter-name>
<filter-name>antlr.*</filter-name>
<filter-name>com.mchange.*</filter-name>
<filter-name>org.dom4j.*</filter-name>
<filter-name>javax.persistence.*</filter-name>
<filter-name>javassist.*</filter-name>
<filter-name>javax.transaction.*</filter-name>
<filter-name>org.slf4j.*</filter-name>


To avoid server-wide configuration, I've tried to change the=20
java2-delegation-model using |WEB-INF/jonas-web.xml| file. Surprisingly=20
it doesn't work : org.hibernate.Version indicate that Hibernate 3.6 is=20
used, but I still have weird bugs as if Hibernate 3.3 was used.

Using filtering-default-classloader.xml do the trick. Thanks again for=20
the tip.


--=20
       Thomas Walraet        -     Knowmore


--------------000603010107030408020908
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Le 20/09/2011 17:38, Guillaume Sauthier (OW2) a &eacute;crit&nbsp;:
    <blockquote
cite="mid:CAG1yf3Ng+LV6=fshsFKoNgO_=gnbLQoGtvtWor0675q3AZqBNg@mail.gmail.com"
      type="cite">You can filter some packages exported by JOnAS using
      the filtering-default-classloader.xml file in your conf/ folder.<br>
      Simply adapt the package patterns list until you have something
      working.<br>
    </blockquote>
    <br>
    It works. Thanks.<br>
    <br>
    If somebody have the same problem, following filters exclude all
    classes from Hibernate and its dependencies :<br>
    &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;org.hibernate.*&lt;/filter-name&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;antlr.*&lt;/filter-name&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;com.mchange.*&lt;/filter-name&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;org.dom4j.*&lt;/filter-name&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;javax.persistence.*&lt;/filter-name&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;javassist.*&lt;/filter-name&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;javax.transaction.*&lt;/filter-name&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;filter-name&gt;org.slf4j.*&lt;/filter-name&gt;<br>
    <br>
    <br>
    To avoid server-wide configuration, I've tried to change the <span
      class="markup">java2-delegation-model using </span> <code
      class="filename">WEB-INF/jonas-web.xml</code> file. Surprisingly
    it doesn't work : org.hibernate.Version indicate that Hibernate 3.6
    is used, but I still have weird bugs as if Hibernate 3.3 was used.<br>
    <br>
    Using filtering-default-classloader.xml do the trick. Thanks again
    for the tip.<br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
      Thomas Walraet        -     Knowmore
</pre>
  </body>
</html>

--------------000603010107030408020908--