6 Replies Latest reply on Jun 12, 2013 2:34 PM by devin pinkston

    Translator Deployment - FileExecutionFactory

    devin pinkston Newbie

      When deploying my delegating translator, which doesn't have much in it, more of a POC for now, I receive an error while deploying on 8.4:

       

       

      10:05:40,036 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 44)  JBAS014612: Operation ("add") failed - address: ([

          ("subsystem" => "teiid"),

          ("translator" => "CleaningDelegatingTranslator")

      ]): java.util.ServiceConfigurationError: org.teiid.translator.ExecutionFactory: Provider org.teiid.translator.FileExecutionFactory not found

          at java.util.ServiceLoader.fail(ServiceLoader.java:214) [rt.jar:1.6.0_43]

          at java.util.ServiceLoader.access$300(ServiceLoader.java:164) [rt.jar:1.6.0_43]

          at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:348) [rt.jar:1.6.0_43]

          at java.util.ServiceLoader$1.next(ServiceLoader.java:428) [rt.jar:1.6.0_43]

          at org.teiid.jboss.TranslatorAdd.performRuntime(TranslatorAdd.java:87)

          at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:440) [jboss-as-controller-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:322) [jboss-as-controller-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:229) [jboss-as-controller-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:224) [jboss-as-controller-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:322) [jboss-as-controller-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]

       

      I have the services ExecutionFactory in my Meta-inf, i'm not sure what to do about the FileExecutionFactory.  I attached my Jar in case that helps at all.  I am deploying this as a module currently, so I attached my module.xml as well.

       

      Thank you

        • 1. Re: Translator Deployment - FileExecutionFactory
          devin pinkston Newbie

          I had the services definition incorrect which threw the FileExecutionFactory error.

           

          If I modify the services definition to:

           

          org.teiid.translator.BaseDelegatingExecutionFactory

           

          I receive:

           

          11:20:44,606 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 44)  JBAS014613: Operation ("add") failed - address: ([

              ("subsystem" => "teiid"),

              ("translator" => "CleaningDelegatingTranslator")

          ]) - failure description: "TEIID50009 Translator \"CleaningDelegatingTranslator\" not found in the module \"org.jboss.teiid.translator.cleaner\" "

           

          I had also tried:

           

          org.teiid.translator.cleaner.CleaningDelegatingTranslator, and I received the same error.

           

          Is my services definition incorrect?

           

          Thank you

          • 2. Re: Translator Deployment - FileExecutionFactory
            Ramesh Reddy Master

            Did you see https://docs.jboss.org/author/display/TEIID/Delegating+Translators ?

             

            Your JAR seems to include lot more than your class, it has all the translator API classes, remove them. One you have the jar correctly build, place it along with your module.xml file. Then edit the standalone-teiid.xml file and add

             

            {code}

            <translator name="cleaner" module="org.jboss.teiid.translator.cleaner"/>

            {code}

             

            then use this translator name in the VDB.xml as shown in above link. BTW, the above error is saying that it can not find the module where you deployed your jar, make sure you created correct file directories etc.

             

            Ramesh..

            1 of 1 people found this helpful
            • 3. Re: Translator Deployment - FileExecutionFactory
              devin pinkston Newbie

              Thank you Ramesh, I actually did not see the Delegating section under the reference documentation, I only read about it under the developer documentation.

               

              I stripped out the jar, placed with my module.xml, and have the configuration modified in my standalone-teiid.xml, however I am still receiving a module not found error:

               

              13:40:19,293 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 44)  JBAS014613: Operation ("add") failed - address: ([

                  ("subsystem" => "teiid"),

                  ("translator" => "cleaner")

              ]) - failure description: "TEIID50009 Translator \"cleaner\" not found in the module \"org.jboss.teiid.translator.cleaner\" "

               

              I attached the jar, module, and config.  I really can't seem to find where the error lies, however I feel its looking right at me.

               

              I placed the module.xml and jar in the directory: /jboss-eap-6.1/modules/system/layers/base/org/jboss/teiid/translator/cleaner/main/CleaningDelegatingTranslator.jar

              • 4. Re: Translator Deployment - FileExecutionFactory
                devin pinkston Newbie

                After taking some more time to look at it, and a couple other posts I found on the forums, I seem to have corrected the module not found error but am still not able to successfully deploy the delegating translator.

                 

                I have been receiving this "failed to load module" error.

                11:42:58,997 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 44)  JBAS014613: Operation ("add") failed - address: ([

                    ("subsystem" => "teiid"),

                    ("translator" => "cleaner")

                ]) - failure description: "TEIID50007 Failed to load module org.jboss.teiid.translator.cleaner for translator cleaner"

                 

                I updated the attachments with my module and jar.  I tried to stay as close to identical as i could with the developer documentation.

                 

                Thank you

                • 5. Re: Translator Deployment - FileExecutionFactory
                  Ramesh Reddy Master

                  Devin,

                   

                  1) In the META-INF/Services directory you have listed as file name as "org.teiid.translator.BaseDelegatingExecutionFactory", this should be "org.teiid.translator.ExecutionFactory"

                  2) the contents the above file should be "org.jboss.teiid.translator.cleaner.cleaner"

                   

                  Now, what directory under you copied the above jar file and module.xml file?

                   

                  Ramesh..