[jboss-user] [JBoss Microcontainer] - Re: Custom ClassLoader

Irfan Basha do-not-reply at jboss.com
Tue Mar 26 06:36:09 EDT 2013


Irfan Basha [https://community.jboss.org/people/irbash] created the discussion

"Re: Custom ClassLoader"

To view the discussion, visit: https://community.jboss.org/message/804797#804797

--------------------------------------------------------------
Hi Ales, 

Thanks for the reply.

Do you mean my jboss-beans.xml should be: 

<deployment xmlns="urn:jboss:bean-deployer:2.0">
            <classloader name="custom-classloader" xmlns="urn:jboss:classloader:1.0"
                              export-all="NON_EMPTY" import-all="true" />
          <bean name="CustomCL" class="com.beans.CustomClassLoader">
                         <constructor>
                                        <parameter>
                                                       <inject bean="custom-classloader:0.0.0" />
                                        </parameter>
                         </constructor>  
          </bean>
          <bean name="CB1" class="com.Sample">
                         <classloader>
                                        <inject bean="CustomCL" />
                         </classloader>
    </bean>
</deployment>

I still get ClassNotFound Exception...
--------------------------------------------------------------

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

Start a new discussion in JBoss Microcontainer at Community
[https://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/20130326/b5c43c02/attachment.html 


More information about the jboss-user mailing list