2 Replies Latest reply on Jun 8, 2004 8:47 AM by itchyoinker

    DataSource--malformed key/value pair???

    itchyoinker

      Hi,

      When starting JBoss, the sapdb-ds.xml file causes a malformed key/value pair exception. Could someone please tell me how to configure this correctly?

      Thanks to anyone who helps or tries to help!
      Itchy

      Here are the details:

      The sapdb-ds.xml file:

      <datasources>
       <local-tx-datasource>
       <jndi-name>java:/jdbc/jZUDIDS</jndi-name>
       <connection-url>jdbc:sapdb://KEMA220102/jZUDI</connection-url>
       <driver-class>com.sap.dbtech.jdbc.DriverSapDB</driver-class>
       <user-name>Developer</user-name>
       <password>Developer</password>
       </local-tx-datasource>
      </datasources>


      The mBean:
      <server>
       <mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
       <depends>jboss.jca:service=RARDeployer</depends>
       <attribute name="MapResources">
      com/kemaiev/jzudi/hibernate/CompanyHibernateImpl.hbm.xml
       </attribute>
       <attribute name="JndiName">java:/jZUDIConnectionFactory</attribute>
       <attribute name="Datasource">java:/jdbc/jZUDIDS</attribute>
       <attribute name="Dialect">net.sf.hibernate.dialect.SAPDBDialect</attribute>
       <attribute name="UseOuterJoin">true</attribute>
       <attribute name="ShowSql">false</attribute>
       <attribute name="UserTransactionName">UserTransaction</attribute>
       <attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
       <attribute name="TransactionManagerLookupStrategy">
      net.sf.hibernate.transaction.JBossTransactionManagerLookup
       </attribute>
       </mbean>
      </server>




      The error printout:
      11:32:10,068 INFO [MainDeployer] Starting deployment of package: file:/F:/JBoss
      323/server/default/deploy/sapdb-ds.xml
      11:32:10,138 WARN [NestedThrowable] Duplicate throwable nesting of same base ty
      pe: class org.jboss.deployment.DeploymentException is assignable from: class org
      .jboss.deployment.DeploymentException
      11:32:10,148 ERROR [MainDeployer] could not create deployment: file:/F:/JBoss323
      /server/default/deploy/sapdb-ds.xml
      org.jboss.deployment.DeploymentException: create operation failed for package fi
      le:/F:/JBoss323/server/default/deploy/sapdb-ds.xml; - nested throwable: (org.jbo
      ss.deployment.DeploymentException: malformed key/value pair: name=java:/jdbc/jZUDIDS
      ; - nested throwable: (javax.management.MalformedObjectNameException: malformed
      key/value pair: name=java:/jZUDI_DS))
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)