Re: Jonas 5.1.5 and classloader-default-filtering.xml
"Guillaume Sauthier (OW2)" <[email protected]> Wed, 2 Nov 2011 09:15:53 +0100
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <CAG1yf3NSmc2BEa=0EtSahQ3z=1iDda2MFGGYZneWRRVWgrQMQQ@mail.gmail.com> |
--0016364c7517a1ee2d04b0bc1470 Content-Type: text/plain; charset=ISO-8859-1 2011/10/31 Celinio Fernandes <[email protected]> > Hi, > I have not fully tested it yet so i am not 100% sure of the behavior that > i am going to describe : > > I want my application to use some libraries (jar files) that are inside my > application (EAR), instead of those that come with Jonas. > For instance hibernate. > In order to achieve that, i modified the file > conf/classloader-default-filtering.xml and added a filter : > > <default-filters> > <filter-name>org.apache.commons.digester.*</filter-name> > <filter-name>org.hibernate.*</filter-name> > </default-filters> > > http://jonas.ow2.org/JONAS_5_1_1/doc/doc-en/html/j2eeprogrammerguide.html > > If you change this file, you filter all the deployed applications in JOnAS in 1 shot. > > > I also added the file classloader-default-filtering.xml under WEB-INF/ > That seems to cause problem. > > The filtering at the module level is only available starting from JOnAS 5.1.6 And the file name is wrong: it should be WEB-INF/classloader-filtering.xml --G > There is no specific error, the reason why i'm filtering the hibernate library is because GWT 2.4 (latest version) > would not work with Jonas 5.1.5 otherwise (library conflict). > If i remove the file from /WEB-INF, then it works. > > Is this normal ? Why ? > > The reason why we also added the file under /WEB-INF is because we plan to migrate to Jonas 5.2 soon, and that's > apparently the way to do it with this version. > > Like I said, I have not fully tested these configurations, i will do it soon but i already want to ask if > this is normal behavior, if i am missing something etc. > > Thanks for helping. > > --0016364c7517a1ee2d04b0bc1470 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">2011/10/31 Celinio Fernandes <span dir= =3D"ltr"><<a href=3D"mailto:[email protected]">[email protected]</a>></= span><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde= r-left:1px #ccc solid;padding-left:1ex;"> <div><div style=3D"color:#000;background-color:#fff;font-family:times new r= oman, new york, times, serif;font-size:12pt"><div>Hi,</div><div>I have not = fully tested it yet so i am not 100% sure of the behavior that i am going t= o describe :</div> <div><br>I want my application to use some libraries (jar files) that are i= nside my application (EAR), instead of those that come with Jonas.</div><di= v>For instance hibernate.</div><div>In order to achieve that, i modified th= e file conf/classloader-default-filtering.xml and added a filter :</div> <div><br></div><pre><default-filters> <filter-name>org.apache.commons.digester.*</filter-name>= ;<br> <filter-name>org.hibernate.*</filter-name> =A0</default-filters><br><br><a href=3D"http://jonas.ow2.org/JONAS_5_= 1_1/doc/doc-en/html/j2eeprogrammerguide.html" target=3D"_blank">http://jona= s.ow2.org/JONAS_5_1_1/doc/doc-en/html/j2eeprogrammerguide.html</a></pre></d= iv> </div></blockquote><div><br></div><div>If you change this file, you filter = all the deployed applications in JOnAS in 1 shot.</div><div>=A0</div><block= quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc= solid;padding-left:1ex;"> <div><div style=3D"color:#000;background-color:#fff;font-family:times new r= oman, new york, times, serif;font-size:12pt"><pre><br><br>I also added the = file classloader-default-filtering.xml under WEB-INF/<br>That seems to cau= se problem. <br> </pre></div></div></blockquote><div><br></div><div>The filtering at the mod= ule level is only available starting from JOnAS 5.1.6</div><div>And the fil= e name is wrong: it should be WEB-INF/classloader-filtering.xml</div><div> <br></div><div>--G</div><div>=A0</div><blockquote class=3D"gmail_quote" sty= le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>= <div style=3D"color:#000;background-color:#fff;font-family:times new roman,= new york, times, serif;font-size:12pt"> <pre>There is no specific error, the reason why i'm filtering the hiber= nate library is because GWT 2.4 (latest version) <br>would not work with Jo= nas 5.1.5 otherwise (library conflict).<br>If i remove the file from /WEB-I= NF, then it works.<br> <br>Is this normal ? Why ?<br><br>The reason why we also added the file und= er /WEB-INF is because we plan to migrate to Jonas 5.2 soon, and that's= <br>apparently the way to do it with this version.<br><br>Like I said, I h= ave not fully tested these configurations, i will do it soon but i already = want to ask if<br> this is normal behavior, if i am missing something etc.<br><br>Thanks for h= elping.<br></pre></div></div></blockquote></div><br> --0016364c7517a1ee2d04b0bc1470--