1 Reply Latest reply on Dec 30, 2010 1:25 PM by rakeshsagar

    Error in using the Translator Properties

    rakeshsagar

      Hi all,

       

      I am creating a custom translator and I have some properties which I had defined them as the translator properties.

      Both the translator properties are required so I did not mention any default values.

       

      In the vdb I had defined them as follows

       

       

          <model name="SecurityStoredProc">
              <!--
                  Each source represents a translator and data source. There are
                  pre-defined translators, or you can create one. ConnectionFactories
                  or DataSources in JBoss AS they are typically defined using "xxx-ds.xml" files.
              -->
              <source name="DB2StroredProc" translator-name="db2-security" connection-jndi-name="java:chorus-cia-jdbc"/>
          </model>
      <translator name="db2-security" type="db2-security">
      <property name="userName" value="sagra02" />
      <property name="password" value="asd456" />
          </translator>

          <model name="SecurityStoredProc">

              <!--

                  Each source represents a translator and data source. There are

                  pre-defined translators, or you can create one. ConnectionFactories

                  or DataSources in JBoss AS they are typically defined using "xxx-ds.xml" files.

              -->

              <source name="DB2StroredProc" translator-name="security" connection-jndi-name="javajdbc"/>

          </model>

       

      <translator name="security" type="security">

      <property name="userName" value="test" />

      <property name="password" value="test" />

          </translator>

       

       

      When I am deploying the translator into JBoss I am getting the following error

       

      org.jboss.deployers.spi.DeploymentException: Required property "username" has no value. Deployment is incomplete.

              at org.teiid.deployers.TranslatorUtil.injectProperties(TranslatorUtil.java:120)

              at org.teiid.deployers.TranslatorUtil.buildExecutionFactory(TranslatorUtil.java:96)

              at org.teiid.deployers.VDBDeployer.createConnectorManagers(VDBDeployer.java:190)

              at org.teiid.deployers.VDBDeployer.deploy(VDBDeployer.java:113)

              at org.teiid.deployers.VDBDeployer.deploy(VDBDeployer.java:60)

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

       

       

      Please help me in solving this problem.

      Its very urgent.

       

      Thanks

      Rakesh