Ales,
The only MBean tht I found was jboss.classloader:service=ClassLoaderSystem.
Unfortunately there is no such getClassLoaderForClass method.
Actually there is no method to invoke, only DomainNames and Domains attributes.
Andre
View the original post :
Ah, it's the ClassLoaderDomainMBean that has
|/**
| * Find the classloader for a class
| *
| * @param name the class name
| * @return the classloader or null if it is not loaded by a managed
classloader
| * @throws ClassNotFoundException when the class is
Result from
DefaultDomain.findClassLoaderForClass(org.jboss.resource.deployers.RARDeployment):
jboss.classloader:id=vfsfile:/C:/Java/jboss-5.1.0.GA/server/default/deployers/jboss-jca.deployer/
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4267823#4267823
Hi ales,
From JMX I could see this:
Regarding to RARDeployer service:
Domain jboss.deployment
type Component
id RARDeployer
Java Class org.jboss.deployers.structure.spi.helpers.ComponentDeploymentContext
Description Management Bean.
Regarding to connector:
Domain jboss.deployment
type
Go to ClassLoaderSystem(MBean) and invoke its getClassLoaderForClass for
RARDeployment class.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4267661#4267661
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4267661
Hi Ales,
It did not work either. Now, the problem is because of jboss-classloading.xml
inside RAR (error below).
Anyway, I don't think it will work, because JBoss already has a slf4j
implementation in commons lib (slf4j-jboss-logging.jar), so it will never
choose my log implementation
Weird, I would expect this class to be present in DefaultDomain,
which is also your domain:
| java.lang.ClassNotFoundException:
org.jboss.resource.deployers.RARDeployment from baseclassloa...@21
|
Hi Ales,
I splited the files and put both in deplor dir. Now I got this error:
| DEPLOYMENTS MISSING DEPENDENCIES:
| Deployment
jboss.jca:name=ra/rysys-connector,service=ConnectionFactoryBinding is missing
the following dependencies:
| Dependency
What are the contents of your jboss-classloading files?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4267248#4267248
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4267248
___
slf4j-1.5.6-wrapper.jar
| classloading xmlns=urn:jboss:classloading:1.0
|capabilities
| module name=slf4j-api-1.5.6.jar version=2.0/
|/capabilities
| /classloading
|
rysys-cobol-connector-1.1.5.rar
| classloading xmlns=urn:jboss:classloading:1.0 export-all=NON_EMPTY
slf4j-api-1.5.6.jar != slf4j-1.5.6-wrapper.jar ;-)
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4267263#4267263
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4267263
___
Hi Ales,
Thanks for your help, I just sow your answer. I followEd your instructions, but
I could not deploy my RAR (all jars of my RAR reside in root dir).
Stack trace is shown below.
Andre
| 2009-11-23 09:49:23,660 WARN
[org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder]
ad-rocha wrote :
|
| | [org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder] (main)
Error populating deployment
vfszip:/C:/Java/jboss-5.1.0.GA/server/default/deploy/rysys-cobol-connector-1.1.5.rar/
| | org.jboss.deployers.spi.DeploymentException: Unable to find class path
My structure is:
rysys-cobol-connector-1.1.5.rar
* META-INF
** jboss-classloading.xml (references slf4j-1.5.6-wrapper.jar)
* slf4j-1.5.6-wrapper.jar
** lib
*** slf4j-api-1.5.6.jar
** META-INF
*** jboss-structure.xml
*** jboss-classloading.xml (references slf4j-api-1.5.6.jar)
Thanks,
Andre
Ah, you shouldn't deploy it all in a single rar.
Split it in two - rar and wrapper.jar.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4267078#4267078
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4267078
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
**
ad-rocha wrote :
| My question is: is there a way to invert classloader in RAR and continue
seeing the classes?
|
Hmmm, you could try osgi rules.
Import more specific version of slf4j via rar's cl requirements.
But then you also need to properly osgi-ize your slf4j jar.
You can either
*
Hi Ales,
First of all, thank you for your reply.
Well, putting jboss-classloading.xml inside my slf4j didn´t work (I laso
removed jboss-classloading.xml from RAR because of classes visibility).
Anyway, I don't believe it is a ellegant approach and now I suppose I'm tied to
JBoss SLF4J
18 matches
Mail list logo