1 Reply Latest reply on Aug 8, 2013 1:12 AM by Arun Varadharajan

    "IJ010064: Unexpected attribute null at connection-definition" for IronJacamar

    Arun Varadharajan Newbie

      Hi,

       

      I trying to migrate a resource adapter from Jboss 4.2.3 to Jboss 7.1.1.

       

      I configured my Resource-Adapter in standalone-full-ha.xml as

       

      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

      <resource-adapter id="TL1PCConnection">

                                                        <archive>gem.ear#tl1pc.rar</archive>

                                              </resource-adapter>

                                    </resource-adapters>

      </subsystem>

       

      I have also place a ironjacmar.xml in my META-INF of the tl1pc.rar as below:

       

      <?xml version="1.0" encoding="utf-8"?>

      <ironjacamar>

                <transaction-support>NoTransaction</transaction-support>

                <connection-definitions>

                          <connection-definition class-name="javax.resource.cci.ConnectionFactory"

                          enabled="true" enlistment="true" jndi-name="java:jboss/eis/tl1ne" pool-name="eis/tl1ne"

                          sharable="true" use-ccm="true" use-java-context="true">

                                    <pool>

                                              <max-pool-size>100</max-pool-size>

                                              <prefill>false</prefill>

                                              <use-strict-min>false</use-strict-min>

                                              <flush-strategy>FailingConnectionOnly</flush-strategy>

                                    </pool>

                                    <security>

                                              <security-domain>gem_server</security-domain>

                                    </security>

                                    <timeout>

                                              <blocking-timeout-millis>300000</blocking-timeout-millis>

                                    </timeout>

                                    <validation>

                                              <background-validation>false</background-validation>

                                              <use-fast-fail>false</use-fast-fail>

                                    </validation>

                          </connection-definition>

                          <connection-definition class-name="com.alcatel.tl1pc.translation.TranslationDataManager"

                          enabled="true" enlistment="true" jndi-name="java:jboss/TL1PC/TranslationDataManager"

                          pool-name="TL1PC/TranslationDataManager" sharable="true" use-ccm="true" use-java-context="true">

                                    <pool>

                                              <prefill>false</prefill>

                                              <use-strict-min>false</use-strict-min>

                                              <flush-strategy>FailingConnectionOnly</flush-strategy>

                                    </pool>

                                    <security>

                                              <application />

                                    </security>

                                    <validation>

                                              <background-validation>false</background-validation>

                                              <use-fast-fail>false</use-fast-fail>

                                    </validation>

                          </connection-definition>

                </connection-definitions>

      </ironjacamar>

       

       

      When I start my Jboss server, I getting exception in the console as

       

       

      03:00:45,781 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."gem.ear"."tl1pc.rar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."gem.ear"."tl1pc.rar".PARSE: Failed to process phase PARSE of subdeployment "tl1pc.rar" of deployment "gem.ear"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

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

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

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]

      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS010443: Failed to parse service xml ["/D:/Upgrade/OFF2/export/home/application/zic/jboss-as-7.1.1.Final/standalone/deployments/gem.ear/tl1pc.rar/META-INF/ironjacamar.xml"]

      at org.jboss.as.connector.deployers.processors.IronJacamarDeploymentParsingProcessor.deploy(IronJacamarDeploymentParsingProcessor.java:90)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

      ... 5 more

      Caused by: org.jboss.jca.common.metadata.ParserException: IJ010064: Unexpected attribute null at connection-definition

      at org.jboss.jca.common.metadata.common.CommonIronJacamarParser.parseConnectionDefinitions(CommonIronJacamarParser.java:120)

      at org.jboss.jca.common.metadata.ironjacamar.IronJacamarParser.parseIronJacamar(IronJacamarParser.java:170)

      at org.jboss.jca.common.metadata.ironjacamar.IronJacamarParser.parse(IronJacamarParser.java:100)

      at org.jboss.jca.common.metadata.ironjacamar.IronJacamarParser.parse(IronJacamarParser.java:67)

      at org.jboss.as.connector.deployers.processors.IronJacamarDeploymentParsingProcessor.deploy(IronJacamarDeploymentParsingProcessor.java:83)

      ... 6 more

       

       

      Is anything wrong in my ironjacmar.xml.

       

      I created the connection-defenition using the converter command of ironjacmar.1.1.0.CR2, but my default ironjacmar in Jboss is 1.0.9.Final. Would this be an issue?

       

      Please guide.