cmp-cd-Example with sapdb
matthias Oct 30, 2001 12:12 PMHi
i have Problems with the cd-Example from JBoss.
I try to connect it to sapdb.
I have changed the file jboss.jcml as follows:
------------
org.hsqldb.jdbcDriver,com.sap.dbtech.jdbc.DriverSapDB
DefaultDS
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
jdbc:sapdb://localhost/tst
DOMAIN
DOMAIN
------------
and i have copied the file sapdbc.jar to lib\ext
When i copy cd.jar to the deploy-directory i see the following message reported by JBoss:
-------------------------------------------------
[Verifier] Verifying file:/D:/JBoss/JBoss-2.4.3/tmp/deploy/Default/cd.jar/ejb1001.jar
[Container factory] Deploying CDBean
[Container factory] Deploying CDCollectionBean
[Container factory] com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: No Catalogs in SAP DBTech
[Container factory] at com.sap.dbtech.jdbc.ConnectionSapDB.getCatalog(ConnectionSapDB.java:354)
[Container factory] at org.jboss.pool.jdbc.xa.wrapper.XAClientConnection.getCatalog(XAClientConnection.java:307)
[Container factory] at org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java:102)
[Container factory] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManager.java:103)
[Container factory] at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:110)
[Container factory] at org.jboss.ejb.EntityContainer.init(EntityContainer.java:291)
[Container factory] at org.jboss.ejb.Application.init(Application.java:202)
[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
...
-------------------------------------------------
Which catalogs are missing, do i have to change more ?
Another question is, when i change name and Pool-Name from DefaultDS to SapDB i see the message:
-------------------------------------------------
[Verifier] Verifying file:/D:/JBoss/JBoss-2.4.3/tmp/deploy/Default/cd.jar/ejb1001.jar
[Container factory] Deploying CDBean
[Container factory] Deploying CDCollectionBean
[Container factory] org.jboss.ejb.DeploymentException: DefaultDS not bound
[Container factory] at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.init(JawsApplicationMetaData.java:120)
[Container factory] at org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFileLoader.java:75)
[Container factory] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.(JDBCCommandFactory.java:133)
-------------------------------------------------
Where is the reference to DefaultDS defined ?
Many thx in Advance
Matthias