Re: Re:[solved] Re: Using Hibernate 3.6 with Jonas 5.1
"S. Ali Tokmen" <[email protected]> Wed, 21 Sep 2011 21:40:12 +0200
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------020903040601040806040408
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi Thomas
To avoid server-wide configuration, you can also place the XML file in
the deployable, |META-INF/classloader-filtering.xml|
(|WEB-INF/classloader-filtering.xml| for a web application).
Read more on:
http://jonas.ow2.org/JONAS_5_2_0/doc/doc-en/html/j2eeprogrammerguide.html=
#id1093872
Cheers
S. Ali Tokmen
http://ali.tokmen.com/
GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 66 43 00 555 [Orange]
GSM (tr): +90 555 266 52 73 [Avea]
My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com
On 2011/09/21 14:29, Thomas Walraet wrote:
> Le 20/09/2011 17:38, Guillaume Sauthier (OW2) a =E9crit :
>> You can filter some packages exported by JOnAS using the
>> filtering-default-classloader.xml file in your conf/ folder.
>> Simply adapt the package patterns list until you have something workin=
g.
>
> It works. Thanks.
>
> If somebody have the same problem, following filters exclude all
> classes 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
> java2-delegation-model using |WEB-INF/jonas-web.xml| 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.
>
> Using filtering-default-classloader.xml do the trick. Thanks again for
> the tip.
>
>
> --=20
> Thomas Walraet - Knowmore
--------------020903040601040806040408
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">
Hi Thomas<br>
<br>
To avoid server-wide configuration, you can also place the
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
XML file in the deployable, <code class="filename">META-INF/classloader-filtering.xml</code>
(<code class="filename">WEB-INF/classloader-filtering.xml</code> for
a web application).<br>
<br>
Read more on:
<a class="moz-txt-link-freetext" href="http://jonas.ow2.org/JONAS_5_2_0/doc/doc-en/html/j2eeprogrammerguide.html#id1093872">http://jonas.ow2.org/JONAS_5_2_0/doc/doc-en/html/j2eeprogrammerguide.html#id1093872</a><br>
<br>
Cheers<br>
<br>
<pre class="moz-signature" cols="72">S. Ali Tokmen
<a class="moz-txt-link-freetext" href="http://ali.tokmen.com/">http://ali.tokmen.com/</a>
GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 66 43 00 555 [Orange]
GSM (tr): +90 555 266 52 73 [Avea]
My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on <a class="moz-txt-link-freetext" href="http://contact.ali.tokmen.com">http://contact.ali.tokmen.com</a></pre>
<br>
On 2011/09/21 14:29, Thomas Walraet wrote:
<blockquote cite="mid:[email protected]" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Le 20/09/2011 17:38, Guillaume Sauthier (OW2) a écrit :
<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>
<filter-name>org.hibernate.*</filter-name><br>
<filter-name>antlr.*</filter-name><br>
<filter-name>com.mchange.*</filter-name><br>
<filter-name>org.dom4j.*</filter-name><br>
<filter-name>javax.persistence.*</filter-name><br>
<filter-name>javassist.*</filter-name><br>
<filter-name>javax.transaction.*</filter-name><br>
<filter-name>org.slf4j.*</filter-name><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>
</blockquote>
</body>
</html>
--------------020903040601040806040408--