12 Replies Latest reply on Nov 18, 2013 4:52 PM by Anil Allewar

    Facing a weird issue while deploying my resource adapter as a module in Teiid8.4Final and JBossEAP6.1Alpha

    Amit Jahagirdar Newbie

      Hi Team,

      I am trying to deploy my existing rar file as a module by creating a jar,META-INF,MANIFEST.MF,ra.xml into a module say"mymodule" in the resource-adapter folder.

      Made respective changes to the standalone resource adapter subsystem as well like instead of using <archive> used <module> etc..

      The module gets detected and then Jboss throws an exception as follows:

       

      16:46:48,210 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.ra.deployment.openworks_1: org.jboss.msc.service.StartException in service jboss.ra.deployment.openworks_1: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [openworks]

        at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:131)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_05]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_05]

        at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_05]

      Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [openworks]

        at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:115)

        ... 5 more

      Caused by: org.jboss.jca.deployers.common.DeployException: IJ020063: Invalid connection factory implementation: com.lgc.ow.teiid.connect.OWTConnectionFactoryImpl

        at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1864)

        at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:183)

        at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:108)

        ... 5 more

      16:46:48,266 INFO  [org.teiid.RUNTIME] (ServerService Thread Pool -- 45) TEIID50006 Teiid translator "intersystems-cache" added.

       

      The class hierachy is as follows:

      -- public class OWTConnectionFactoryImpl extends BasicConnectionFactory implements OWTConnectionFactory

      -- public class OWTConnectionImpl extends BasicConnection implements OWTConnection

      Implementation of managed factory as follows:

      -- public class OWTManagedConnectionFactory extends BasicManagedConnectionFactory {

      @Override

        public BasicConnectionFactory createConnectionFactory() throws ResourceException {

                return new OWTConnectionFactoryImpl(user, password, sid, project);

      ........

      ....

        }

      }

      The same code works fine if deployed as a rar file in teiid 8.4 Final and previous versions of Teiid 8.3 as well.

      Would be great to have some expert guidance on this.

       

      (My observation : when compared with the adapters like mongodb or ldap,the jar had only classes extending BasicManagedConnectionFactory and  BasicConnection.

      Didnot see an impl for BasicConnectionFactory as done in my adapter).


      Thanks

      Amit

       

      .