-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: DataSource Configuration
PostPosted: Mon Jun 07, 2004 11:06 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 12:45 pm
Posts: 45
Hi,

I'm attempting to deploy a Hibernate application on JBoss, using MBean. However, when starting JBoss, my sapdb-ds.xml file causes a malformed key/value pair exception. Could someone please tell me what causes this and how to configure it correctly?

Thanks to anyone who helps or tries to help!
Itchy

Here are the details:

The sapdb-ds.xml file:


Code:
<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:
Code:
<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)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 07, 2004 3:39 pm 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
Make the following change in the sapdb-ds.xml

Code:
<jndi-name>jdbc/jZUDIDS</jndi-name>


Sherman


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 8:28 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 12:45 pm
Posts: 45
Thanks again for your help Sherman. I obviously misinterpreted the docs. It works fine now that I changed it.

Best Wishes


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.