6 Replies Latest reply on Nov 29, 2015 4:50 PM by Ramesh Reddy

    JCA connector project from template doesn't build

    Ja kub Novice

      I create project as described in:

      TEIID/Archetype+Template+Connector+Project

      on mvn clean install I get:

      [ERROR] Failed to execute goal on project connector-myType:
      Could not resolve dependencies for project org.jboss.teiid.connectors:connector-myType:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.jboss.teiid:teiid-api:jar:8.7.0.Final:
      Failed to read artifact descriptor for org.jboss.teiid:teiid-api:jar:8.7.0.Final:
      Failure to find org.jboss.integration-platform:jboss-integration-platform-bom:pom:6.0.0-SNAPSHOT
      in http:
      //snapshots.jboss.org/maven2 was cached in the local repository,
      resolution will
      not be reattempted until the update interval of jboss has elapsed or updates are forced -> [Help 1]

      I added into my pom.xml:

      <repositories>
      <repository>
        
      <id>jboss</id>
        
      <name>jboss</name>
        
      <url>http://snapshots.jboss.org/maven2</url>
        I also tried with https://repository.jboss.org/nexus/content/repositories/snapshots/
      </repository>
      </repositories>

       

      but it din't help, although both

      http://snapshots.jboss.org/maven2/org/jboss/integration-platform/jboss-integration-platform-bom/6.0.0-SNAPSHOT/ and

      http://snapshots.jboss.org/maven2/org/jboss/integration-platform/jboss-integration-platform-bom/6.0.0-SNAPSHOT/ exist !

      whats wrong with it ?

        • 2. Re: JCA connector project from template doesn't build
          Ja kub Novice

          Thx for help.

          Now I get

           

          17:09:56,494 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.module.service."deployment.connector-myType-0.0.1-SNAPSHOT.rar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.connector-myType-0.0.1-SNAPSHOT.rar".main: JBAS018759: Failed to load module: deployment.connector-myType-0.0.1-SNAPSHOT.rar:main

              at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_65]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_65]

              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_65]

          Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.teiid.common-core:main

              at org.jboss.modules.Module.addPaths(Module.java:1030) [jboss-modules.jar:1.3.0.Final]

              at org.jboss.modules.Module.link(Module.java:1386) [jboss-modules.jar:1.3.0.Final]

              at org.jboss.modules.Module.relinkIfNecessary(Module.java:1414) [jboss-modules.jar:1.3.0.Final]

              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:242) [jboss-modules.jar:1.3.0.Final]

              at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [wildfly-server-8.0.0.Final.jar:8.0.0.Final]

              ... 5 more

           

          17:09:56,498 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"JBAS014671: Failed services" => {"jboss.module.service.\"deployment.connector-myType-0.0.1-SNAPSHOT.rar\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.connector-myType-0.0.1-SNAPSHOT.rar\".main: JBAS018759: Failed to load module: deployment.connector-myType-0.0.1-SNAPSHOT.rar:main

              Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.teiid.common-core:main"}}

           

          Should I add this jars (from MANIFEST.MF :  Dependencies: org.jboss.teiid.common-core,org.jboss.teiid.api,javax.api) in similar way like eg mysql driver ?

          Isn't teeid already in wildfly ?

           

          BR

          Jakub

          • 3. Re: JCA connector project from template doesn't build
            Van Halbert Master

            Regarding Wildfly, Teiid 8.13.x is the version that will support wildfly.

             

            As to the MANIFEST.MF,  you are right, somewhere that file got left out.  So create the MANIFEST.MF file under main/src/rar/META-INF  directory and add:

             

            Dependencies: org.jboss.teiid.common-core,org.jboss.teiid.api,javax.api,org.jboss.teiid.translator.{translator-type}

             

            I"ll be pushing an updated version of the archetype to fix that.

            • 4. Re: JCA connector project from template doesn't build
              Ja kub Novice
              1. Should I add Teiid specific jars to Wildfly (into modules/system/layers/base) ? (guess yes, but want to assure so as not to start useless battle in case they were already in Wildfly)
              2. Is Teiid used internally by Wildfly ? (guess no)
              3. Is Teiid a replacement for IronJacamar ? (guess no)
              • 5. Re: JCA connector project from template doesn't build
                Van Halbert Master

                You will need to use Teiid 8.13.x branch for wildly.    I'm not sure about if the archetypes are compatible with wildly, as they are based on EAP 6.4.

                 

                as to #2 and #3, you are right, no.    IronJacamar is the JCA framework that Teiid integrates with for accessing data sources.

                • 6. Re: JCA connector project from template doesn't build
                  Ramesh Reddy Master

                  Jakab,

                   

                  WildFly is JEE application server, it does NOT contain Teiid, nor WildFly depends on it.

                   

                  However, in the next version of Teiid 8.13, we are working towards a platform such that Teiid is deployed inside the WildFly. Look for Alpha version early next week.

                   

                  IronJacmar is a JCA system inside a JEE server, where it provides access to your Enterprise Information systems (EIS). Where as Teiid is a Data Virtualization system that access data in your EIS or otherwise (files, web services)  and provide a combined view. So, if you are trying to integrate data from a system to which Teiid do not already have a translator and resource-adapter (JCA Connector) then you should be using above arch types to generate templates for translator and resource-adapter.

                   

                  whatever you develop should work inside the WildFly +Teiid with minimal changes, but you need wait for Teiid 8.13.

                   

                  Ramesh..

                  1 of 1 people found this helpful