Jonas 5.1.5 and classloader-default-filtering.xml
Celinio Fernandes <[email protected]> Mon, 31 Oct 2011 13:33:35 -0700 (PDT)
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
---874068440-1277295156-1320093215=:39693 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0AI have not fully tested it yet so i am not 100% sure of the behavior = that i am going to describe :=0A=0AI want my application to use some librar= ies (jar files) that are inside my application (EAR), instead of those that= come with Jonas.=0AFor instance hibernate.=0AIn order to achieve that, i m= odified the file conf/classloader-default-filtering.xml and added a filter = :=0A=0A<default-filters> <filter-name>org.apache.commons.digester.*</filter= -name>=0A<filter-name>org.hibernate.*</filter-name>=0A=A0</default-filters>= =0A=0Ahttp://jonas.ow2.org/JONAS_5_1_1/doc/doc-en/html/j2eeprogrammerguide.= html=0A=0AI also added the file classloader-default-filtering.xml under WE= B-INF/=0AThat seems to cause problem. =0AThere is no specific error, the re= ason why i'm filtering the hibernate library is because GWT 2.4 (latest ver= sion) =0Awould not work with Jonas 5.1.5 otherwise (library conflict).=0AIf= i remove the file from /WEB-INF, then it works.=0A=0AIs this normal ? Why = ?=0A=0AThe reason why we also added the file under /WEB-INF is because we p= lan to migrate to Jonas 5.2 soon, and that's =0Aapparently the way to do it= with this version.=0A=0ALike I said, I have not fully tested these configu= rations, i will do it soon but i already want to ask if=0Athis is normal be= havior, if i am missing something etc.=0A=0AThanks for helping.=0A ---874068440-1277295156-1320093215=:39693 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, 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 a= m going to describe :</div><div><br>I want my application to use some libra= ries (jar files) that are inside my application (EAR), instead of those tha= t come with Jonas.</div><div>For instance hibernate.</div><div>In order to = achieve that, i modified the file conf/classloader-default-filtering.xml an= d added a filter :</div><div><br></div><pre class=3D"programlisting"><de= fault-filters>=0A <filter-name>org.apache.commons.digester.= *</filter-name><br> <filter-name>org.hibernate.*</fil= ter-name>=0A </default-filters><br><br>http://jonas.ow2.org/J= ONAS_5_1_1/doc/doc-en/html/j2eeprogrammerguide.html<br><br>I also added the= file classloader-default-filtering.xml under WEB-INF/<br>That seems to ca= use problem. <br>There is no specific error, the reason why i'm filtering t= he hibernate library is because GWT 2.4 (latest version) <br>would not work= with Jonas 5.1.5 otherwise (library conflict).<br>If i remove the file fro= m /WEB-INF, then it works.<br><br>Is this normal ? Why ?<br><br>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 <br>apparently the way to do it with this versio= n.<br><br>Like I said, I have not fully tested these configurations, i will= do it soon but i already want to ask if<br>this is normal behavior, if i a= m missing something etc.<br><br>Thanks for helping.<br></pre></div></body><= /html> ---874068440-1277295156-1320093215=:39693--