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

2009-11-27 Thread ad-rocha
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 :

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

2009-11-27 Thread ad-rocha
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

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

2009-11-26 Thread ad-rocha
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

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

2009-11-25 Thread ad-rocha
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

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

2009-11-24 Thread ad-rocha
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

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

2009-11-24 Thread ad-rocha
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

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

2009-11-23 Thread ad-rocha
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]

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

2009-11-23 Thread ad-rocha
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

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

2009-11-17 Thread ad-rocha
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

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

2009-11-17 Thread ad-rocha
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

[jboss-user] [JCA] - Re: RAR classloading inversion

2009-11-13 Thread ad-rocha
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 :

[jboss-user] [JCA] - Re: RAR classloading inversion

2009-11-13 Thread ad-rocha
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

[jboss-user] [JCA] - RAR classloading inversion

2009-11-09 Thread ad-rocha
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

[jboss-user] [Installation, Configuration Deployment] - slf4j configurarion

2009-10-30 Thread ad-rocha
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,

[jboss-user] [Javassist user questions] - CtMethod -- java.lang.reflect.Method

2009-06-15 Thread ad-rocha
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 :

[jboss-user] [Javassist user questions] - Re: Using Javassist inside Mojo [RESOLVED]

2009-06-05 Thread ad-rocha
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 =

[jboss-user] [Javassist user questions] - Re: Using Javassist inside Mojo

2009-06-04 Thread ad-rocha
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

[jboss-user] [Javassist user questions] - Re: Using Javassist inside Mojo

2009-06-04 Thread ad-rocha
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()): |

[jboss-user] [Javassist user questions] - Using Javassist inside Mojo

2009-06-02 Thread ad-rocha
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(); |

[jboss-user] [Security JAAS/JBoss] - Retrieving roles using ClientLoginModule

2009-01-09 Thread ad-rocha
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,

[jboss-user] [JCA/JBoss] - Loading a external file using getResourceAsStream()

2008-12-01 Thread ad-rocha
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 :

[jboss-user] [Javassist user questions] - Insert code just after catch

2008-10-21 Thread ad-rocha
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,

[jboss-user] [Javassist user questions] - Obtaining method's body

2008-10-21 Thread ad-rocha
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

[jboss-user] [Javassist user questions] - Method start-end line

2007-07-31 Thread ad-rocha
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 :