Hi there,

Background:
We want to deploy all (non third party) libs in the ear file. Some MBeans (also 
deployed in the ear file) need jars from the ear on their classpaths.

For MBeans the classpath can be defined via the classpath xml tag in the 
*-service.xml file. It's attribute codebase takes an URL as value and JBoss 
uses URLListers as handlers for these protocols.

But then we noticed that there are only handlers for the protocols file:, 
http:, https:

But no handler (or URLLister) is registered for the jar: protocol. After 
looking at the code we found there is a njar: lister, but it is not beeing 
registered:

org.jboss.net.protocol.URLListerFactory

  | public class URLListerFactory {
  |    private static HashMap defaultClasses = new HashMap();
  |    static {
  |       defaultClasses.put("file", 
"org.jboss.net.protocol.file.FileURLLister");
  |       defaultClasses.put("http", 
"org.jboss.net.protocol.http.DavURLLister");
  |       defaultClasses.put("https", 
"org.jboss.net.protocol.http.DavURLLister");
  |    }
  | 
  |    private HashMap classes;
  | 
  |    /**
  |     * Create a URLLister with default listers defined for file and http
  |     * protocols.
  |     */
  |    public URLListerFactory() {
  |       classes = (HashMap) defaultClasses.clone();
  |    }
  |    
  |    [...]
  | }
  | 

As I see it, it is not possible to create a classpath containing libraries that 
reside in an ear file. Was that intended?

OS: Linux
JBoss-Version:  jboss-4.0.3SP1

Any ideas/ solutions/ workarounds are welcome.

Thanks in advance,
Martin

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to