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 :
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
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
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
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
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]
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
Hi all,
I've be struggling with jboss-classloading.xml for about one week and really
don't know even if it is possible. There is my problem (JBoss 5.1):
1) I have a RAR that contains a lot of jars that must be exposed to other
applications. Everything is working fine and after deploy I can
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
Hi Vicky,
Thank you for your reply.
I'm using JBoss 5 :-) Where can I find more details about this approach?
Regards,
Andre
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265427#4265427
Reply to the post :
I found some tips here:
http://java.dzone.com/articles/jboss-microcontainer-classloading, but I still
don't know how to use jboss-classloading.xml in RAR files...
Any idea?
Thanks again,
Andre
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265476#4265476
Hi all,
I know that I can use jboss-web.xml in WAR applications and jboss-app.xml in
EAR in order to configure classoading.
But how about RAR files? is that a way to do this?
Thanks,
Andre
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4264635#4264635
Reply
Hello,
Now that slf4j is used in Hibernate and placed in JBoss commons lib, how do I
configure slf4j/logback properly in my application?
I've tried to pack the libs and logback.xml in my EAR, but nothing happens. The
application uses JBoss slf4j configuration.
Any ideas?
Thanks in advance,
Hi All,
Is there a direct way to convert from CtMethod to java.lang.reflect.Method?
Thanks in advance,
Andre
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4237735#4237735
Reply to the post :
Youôre righit Chiba. The code below did the trick. Thank you very much for
your help!
| ClassWorld world = new ClassWorld();
|
| ClassRealm realm = world.newRealm(org.codecompany.jeha.plugin,
|Thread.currentThread().getContextClassLoader());
|
| ClassRealm runRealm =
Thanks for your reply Chiba.
I added this chek just before calling getAnnotations() and the class was found:
| try {
|CtClass c =
method.getDeclaringClass().getClassPool().get(org.testng.annotations.BeforeMethod);
|System.out.println(FOUND: + c);
| } catch
Chiba,
It seems that testng-5.8-jdk15.jar is already in classpath. Look at this:
Thread.currentThread().getContextClassLoader() and
classPool.getClass().getClassLoader() are the same:
System.out.println(Thread.currentThread().getContextClassLoader()):
|
Hi all,
Iôm trying to use Javassist inside a Mojo. The code is very simple, but the
program fails with a java.lang.ClassNotFoundException.
First I collect all dependencies of Maven project:
| // maven dependencies
| ListString classpath = new ArrayListString();
|
Hello all,
In my standalone application I need to retrieve all user roles (in LDAP). I
don't use EJBs, just POJOs.
I've searched a lot but didn't found any information releated to this (only
authorization of EJB methods).
Is there a way to do this using ClientLoginModule?
Thanks in advance,
Hello all,
I'd like to load a file located outside my RAR using getResourceAsStream(). Is
it possible?
If not, is there a way to a access the file?
Thanks,
Andre
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4193533#4193533
Reply to the post :
Hi all,
I've been trying (without success) insert code in specific places on method's
body. I need to handle all exceptions using a specific class.
Something like it:
| method (param1, param2) {
|try {
| ...
|} catch (IOException e) {
| Myhandler.handler(e,
Hi all,
Is there a way to obtain the string code in an existing method's body?
Thanks,
Andre
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4183501#4183501
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4183501
Hi all,
Supposing debug information is available, is there a way to print start-end
lines of all methos of a class? somethig like this:
method1(): from 3 to 10
| method2(int): from 15 to 33
| method3(String,String): from 45 to 49
Thanks,
André
View the original post :
24 matches
Mail list logo