[jboss-dev-forums] [IronJacamar Development] - Re: IronJacamar RHQ plugin development

Lin Gao do-not-reply at jboss.com
Tue Jan 25 04:11:06 EST 2011


Lin Gao [http://community.jboss.org/people/gaol] created the discussion

"Re: IronJacamar RHQ plugin development"

To view the discussion, visit: http://community.jboss.org/message/582963#582963

--------------------------------------------------------------
Two questions:

  1.  When a .rar is deployed, both RADeployer and RAActivator will be used to deploy the file in turn, thus 2 managed connectors are registered to the ManagementRepository for the same .rar file.  And only the one registered by RAActivator has the ManagedConnectionFactory.

    Is it correct?


16:50:07,698 DEBUG [RADeployer] Deploying: file:/tmp/embeddedjca/localtransaction.rar
16:50:10,000 DEBUG [MetadataFactory] Total parse for /tmp/iron.jacamar/tmp/localtransaction.rar/META-INF/ra.xml took 2300 ms
16:50:10,006 DEBUG [RADeployer] Activated: file:/tmp/embeddedjca/localtransaction.rar
16:50:10,007 DEBUG [RAActivator] Deploying: file:/tmp/embeddedjca/localtransaction.rar
16:50:10,017 DEBUG [BaseManagedConnectionFactory] call setLogWriter
16:50:10,047 DEBUG [TestManagedConnectionFactory] call createConnectionFactory
16:50:10,070 DEBUG [SimpleJndiStrategy] Bound org.jboss.jca.test.deployers.spec.rars.BaseCciConnectionFactory under java:/eis/localtransaction
16:50:10,071 INFO  [RAActivator] Bound connection factory under: java:/eis/localtransaction
16:50:10,102 INFO  [RAActivator] Deployed: file:/tmp/embeddedjca/localtransaction.rar




  2.  The managedconnectionfactory-class will be defined in META-INF/ra.xml, and the class will be put on the jar file which will be put on the rar file. so shall we need the jar file in the classpath out side of the rar file? I copied the rar file generated by the Ra10dtdoutTestCase to the IronJacamar sjc/deploy directory, it complains ClassNotFoundException:


16:46:01,595 WARNING [Fungal] Deployment org.jboss.jca.test.deployers.spec.rars.ra10dtdout.TestManagedConnectionFactory failed: com.github.fungal.spi.deployers.DeployException: Deployment org.jboss.jca.test.deployers.spec.rars.ra10dtdout.TestManagedConnectionFactory failed
        at org.jboss.jca.deployers.fungal.RAActivator.deploy(RAActivator.java:284)
        at org.jboss.jca.deployers.fungal.RAActivator.postDeploy(RAActivator.java:159)
        at com.github.fungal.impl.KernelImpl.postDeploy(KernelImpl.java:1423)
        at com.github.fungal.impl.KernelImpl.startup(KernelImpl.java:554)
        at org.jboss.jca.sjc.Main.boot(Main.java:109)
        at org.jboss.jca.sjc.Main.main(Main.java:286)
Caused by: java.lang.ClassNotFoundException: org.jboss.jca.test.deployers.spec.rars.ra10dtdout.TestManagedConnectionFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
        at com.github.fungal.impl.classloader.ParentFirstClassLoader.loadClass(ParentFirstClassLoader.java:66)
        at com.github.fungal.impl.classloader.ParentFirstClassLoader.loadClass(ParentFirstClassLoader.java:66)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.jboss.jca.deployers.fungal.AbstractFungalRADeployer.initAndInject(AbstractFungalRADeployer.java:124)
        at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:841)
        at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:723)
        at org.jboss.jca.deployers.fungal.RAActivator.deploy(RAActivator.java:264)
        ... 5 more



I attached the rar file with name: localtransaction.rar
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/582963#582963]

Start a new discussion in IronJacamar Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2099]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110125/534ff951/attachment.html 


More information about the jboss-dev-forums mailing list