[jboss-user] [JBoss Microcontainer Users] - Re: Struggling with jboss-classloading.xml

alesj do-not-reply at jboss.com
Wed Nov 18 09:49:52 EST 2009


"ad-rocha" wrote : 
  | Anyway, I don't believe it is a ellegant approach and now I suppose I'm tied to JBoss SLF4J implementation :-(
  | 
That's as elegant as it gets. :-)
But I think you're not doing it right.

Try doing this.
Create new jar, which includes this contents

wrapper.jar
* lib
** slf4j.jar
* META-INF
** jboss-structure.xml
** jboss-classloading.xml

where jboss-structure.xml looks like

  | <structure>
  |     <context>
  |         <path name=""/>
  |         <metaDataPath>
  |          <path name="META-INF"/>
  |       </metaDataPath>
  |       <classpath>
  |             <path name="lib" suffixes=".jar"/>
  |         </classpath>
  |     </context>
  | </structure>
  | 

and jboss-classloading.xml like

  | <classloading xmlns="urn:jboss:classloading:1.0">
  |    <capabilities>
  |       <module name="slf4.jar" version="2.0"/>
  |    </capabilities>
  | </classloading>
  | 

then simply have this jboss-classloading.xml in your rar

  | <classloading xmlns="urn:jboss:classloading:1.0" export-all="NON_EMPTY">
  |    <requirements>
  |       <module name="slf4j.jar" from-inclusive="2.0"/>
  |    </requirements>
  | </classloading>
  | 

I might be missing some details, but let's see how far we get.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266312#4266312

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266312



More information about the jboss-user mailing list