2 Replies Latest reply on Feb 4, 2007 1:15 AM by comegree

    org.jboss.deployment.DeploymentException: No Attribute

    besttiger

      Hi,
      I 'm using jboss4 and trying to deploy a jca example.
      I have deplyed the rar file successfully, but when I
      deploy the hellkingjca-service.xml, it always have the
      error "org.jboss.deployment.DeploymentException: No
      Attribute found with name: JndiName "
      Does JBoss4 still use the jca configure file like this
      to deploy NoTxConnection jca?

      Thanx in advance...

      ra.xml

      <?xml version= "1.0 " encoding= "UTF-8 "? >
      <!DOCTYPE connector PUBLIC '-//Sun Microsystems,
      Inc.//DTD Connector 1.0//EN '
      'http://java.sun.com/dtd/connector_1_0.dtd ' >
      
      <connector >
      <display-name >DemoRA </display-name >
      <vendor-name >HELLKING </vendor-name >
      <spec-version >1.0 </spec-version >
      <eis-type >NO TRANS </eis-type >
      <version >1.2 </version >
      <resourceadapter >
      
      <managedconnectionfactory-class >com.hellking.jca.DemoManagedConnectionFactory </managedconnectionfactory-class >
      
      <connectionfactory-interface >javax.resource.cci.ConnectionFactory </connectionfactory-interface >
      
      <connectionfactory-impl-class >com.hellking.jca.DemoConnectionFactoryImpl </connectionfactory-impl-class >
      
      <connection-interface >com.hellking.jca.DemoConnection </connection-interface >
      
      <connection-impl-class >com.hellking.jca.DemoConnectionImpl </connection-impl-class >
      
      <transaction-support >NoTransaction </transaction-support >
      <config-property >
      
      <config-property-name >Server </config-property-name >
      
      <config-property-type >java.lang.String </config-property-type >
      
      <config-property-value >localhost </config-property-value >
      </config-property >
      <config-property >
      
      <config-property-name >Port </config-property-name >
      
      <config-property-type >java.lang.Integer </config-property-type >
      
      <config-property-value >2008 </config-property-value >
      </config-property >
      
      <reauthentication-support >false </reauthentication-support >
      </resourceadapter >
      </connector >
      





      Here is my service.xml file:
      <server >
       <mbean
      code= "org.jboss.resource.connectionmanager.NoTxConnectionManager "
      name= "jboss.jca:service=NoTxCM,name=DemoRA " >
       <depends
      optional-attribute-name= "ManagedConnectionFactoryName " >
       <mbean
      code= "org.jboss.resource.connectionmanager.RARDeployment "
      name= "jboss.jca:service=NoTxDemo,name=DemoRA " >
       <attribute name= "JndiName " >NoTransDemo </attribute >
       <depends
      optional-attribute-name= "OldRarDeployment " >
      
      jboss.jca:service=RARDeployment,name=DemoRA
      </depends >
       </mbean >
       </depends >
      
       <depends
      optional-attribute-name= "ManagedConnectionPool " >
       <mbean
      code= "org.jboss.resource.connectionmanager.JBossManagedConnectionPool "
      name= "jboss.jca:service=NoTxPool,name=DemoRA " >
       <attribute name= "MinSize " >0 </attribute >
       <attribute name= "MaxSize " >50 </attribute >
       <attribute
      name= "BlockingTimeoutMillis " >5000 </attribute >
       <attribute
      name= "IdleTimeoutMinutes " >15 </attribute >
       <attribute name= "Criteria " >ByContainer </attribute >
       </mbean >
       </depends >
       <depends
      optional-attribute-name= "CachedConnectionManager " >
      jboss.jca:service=CachedConnectionManager
      </depends >
       <depends
      optional-attribute-name= "JaasSecurityManagerService " >
      jboss.security:service=JaasSecurityManager
      </depends >
      <depends >
       jboss.jca:service=RARDeployer
      </depends >
       </mbean >
      </server >
      



      The error message:

      2004-12-22 07:36:52,828 ERROR
      [org.jboss.deployment.scanner.URLDeploymentScanner]
      Incomplete Deployment listing:
      MBeans waiting for other MBeans:
      ObjectName: jboss.jca:name=DemoRA,service=NoTxCM
      state: FAILED
      I Depend On: jboss.jca:name=DemoRA,service=NoTxDemo

      Depends On Me:
      org.jboss.deployment.DeploymentException: Exception
      setting attribute javax.management.Attribute:
      name=ManagedConnectionFactoryName
      value=jboss.jca:name=DemoRA,service=NoTxDemo on mbean
      jboss.jca:name=DemoRA,service=NoTxCM; - nested
      throwable:
      (javax.management.AttributeNotFoundException: not
      found: ManagedConnectionFactoryName)
      ObjectName: jboss.jca:name=DemoRA,service=NoTxDemo
      state: FAILED
      I Depend On:
      Depends On Me: jboss.jca:name=DemoRA,service=NoTxCM
      org.jboss.deployment.DeploymentException: No Attribute
      found with name: JndiName
      ObjectName: jboss:service=CorbaTransaction
      state: FAILED
      I Depend On: jboss:service=TransactionManager
      jboss:service=CorbaORB
      jboss:service=CorbaNaming

      Depends On Me: java.lang.Exception: Cannot bind
      transaction factory in CORBA naming service:
      org.omg.CORBA.TRANSIENT: Retries exceeded, couldn 't
      reconnect to 0.1.0.6:3528 vmcid: 0x0 minor code: 0
      completed: No

      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss:service=CorbaTransaction
      state: FAILED
      I Depend On: jboss:service=TransactionManager
      jboss:service=CorbaORB
      jboss:service=CorbaNaming

      Depends On Me: java.lang.Exception: Cannot bind
      transaction factory in CORBA naming service:
      org.omg.CORBA.TRANSIENT: Retries exceeded, couldn 't
      reconnect to 0.1.0.6:3528 vmcid: 0x0 minor code: 0
      completed: No
      ObjectName: jboss.jca:name=DemoRA,service=NoTxDemo
      state: FAILED
      I Depend On:
      Depends On Me: jboss.jca:name=DemoRA,service=NoTxCM
      org.jboss.deployment.DeploymentException: No Attribute
      found with name: JndiName