[jboss-user] [JBoss Microcontainer] - Re: How to isolate ClassLoader in JBoss 6

swapnil narvekar do-not-reply at jboss.com
Thu Dec 8 07:55:41 EST 2011


swapnil narvekar [http://community.jboss.org/people/swapnil_narya] created the discussion

"Re: How to isolate ClassLoader in JBoss 6"

To view the discussion, visit: http://community.jboss.org/message/640556#640556

--------------------------------------------------------------
Hi Ales , 
Thanks fro a reply.

Actually I have made following changes in jboss-classloading.xml.
and it helped to got rid of this exception.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!--See  http://phytodata.wordpress.com/2010/10/21/demystifying-the-jboss5-jboss-classloading-xml-file-- http://phytodata.wordpress.com/2010/10/21/demystifying-the-jboss5-jboss-classloading-xml-file-->
<classloading xmlns="urn:jboss:classloading:1.0"
              name="test.war"    
              domain="test"
              parent-first="false"
              export-all="NON_EMPTY"
              import-all="true">
    <parent-policy>
      <before-filter>
       <javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.classloader.plugins.filter.NegatingClassFilter">
        <constructor>
         <parameter>
          <javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.classloader.spi.filter.PackageClassFilter">
           <constructor>
            <parameter>org.hibernate,org.apache.commons.collections,com.sun.mail.smtp</parameter>
           </constructor>
          </javabean>
         </parameter>
        </constructor>
       </javabean>
      </before-filter>
    </parent-policy>              
</classloading>

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

after making these changes my web application deployed successfully.
But when I tried to login into my web-application by login-form it gave an excpetion. *java.lang.LinkageError : LoaderConstraintException*
*
*
please refer the link where I mentioned the complete scenario.
  http://community.jboss.org/message/640547#640547#640547 http://community.jboss.org/message/640547#640547

I request you to read that scenario.


*
*
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/640556#640556]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111208/b13eddb3/attachment-0001.html 


More information about the jboss-user mailing list