10 Replies Latest reply on Feb 21, 2005 10:13 AM by Luca Iacono

    JNDI ... Help please

    Luca Iacono Newbie

      Hi,

      Does anyone know what org.jboss.deployment.DeploymentException: No Attribute found with name: JndiName" mean ?
      I'm trying to register a new datasource but I've had no joy. Here is my sapdb-ds.xml. Can you tell me if there is anything wrong with it ?

      <?xml version="1.0" encoding="UTF-8" ?>
      - <server>
      - <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name="jboss.jca:service=LocalTxCM,name=SapdbDS">
       <!-- <attribute name="SecurityDomainJndiName">SapdbRealm</attribute> -->
      - <depends optional-attribute-name="ManagedConnectionFactoryName">
      - <mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=SapdbDS">
       <attribute name="JndiName">EnacDS</attribute>
      - <attribute name="ManagedConnectionFactoryProperties">
      - <properties>
       <config-property name="ConnectionURL" type="java.lang.String">jdbc:sapdb://10.0.0.173/GESTELDB</config-property>
       <config-property name="DriverClass" type="java.lang.String">com.sap.dbtech.jdbc.DriverSapDB</config-property>
      - <!-- set these only if you want only default logins, not through JAAS
       -->
       <config-property name="UserName" type="java.lang.String">ENACSA</config-property>
       <config-property name="Password" type="java.lang.String">ENACSA</config-property>
       </properties>
       </attribute>
      - <!-- Below here are advanced properties
       -->
      - <!-- hack
       -->
       <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>
       </mbean>
       </depends>
      - <depends optional-attribute-name="ManagedConnectionPool">
      - <!-- embedded mbean
       -->
      - <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=LocalTxPool,name=SapdbDS">
       <attribute name="MinSize">0</attribute>
       <attribute name="MaxSize">101</attribute>
       <attribute name="BlockingTimeoutMillis">5000</attribute>
       <attribute name="IdleTimeoutMinutes">5</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>
       <attribute name="TransactionManager">java:/TransactionManager</attribute>
      - <!-- make the rar deploy! hack till better deployment
       -->
       <depends>jboss.jca:service=RARDeployer</depends>
       </mbean>
       </server>

      This matter is rather urgent, so you're help will be very much appreciated.
      cheers
      luca