Two things.  First, you are using opentools.minerva.   These classes have been superceded by jbosspool counterparts.  As long as you are just getting started, get a version of JBoss >= 2.4.3, and use the jbosspool variant.  Second, make sure your code and deployment descriptors refer to OracleDB and not DefaultDS.  Finally (did I say two?), you don't mention what your EJB does, but I think if it uses jaws or cmp (neither of which I use), the default target for these is DefaultDS.  You'll have to fix that.
 
----- Original Message -----
From: Alice Ad
Sent: Wednesday, December 19, 2001 9:57 PM
Subject: [JBoss-user] DeploymentException when using oracle

Hello,

I want to use Oracle instead of hypersonic/instantdb. This is what i did in jboss.jcml:

1. org.jboss.jdbc.JdbcProvider mbean contains ONLY oracle driver

2. org.jboss.jdbc.HypersonicDatabase mbean and org.jboss.jdbc.XADataSourceLoader mbeans for InstantDN and DefaultDS removed

3. org.jboss.jdbc.XADataSourceLoader mbean for oracle added:

  <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=OracleDB">
    <attribute name="PoolName">OracleDB</attribute>
    <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="URL">jdbc:oracle:thin:@localhost:1521:oracle</attribute>
    <attribute name="JDBCUser">scott</attribute>
    <attribute name="Password">tiger</attribute>
  </mbean>

I get this error:

Deploying CDBean

oracle.jboss.ejb.DeploymentException: DefaultDS not bound

When I use all drivers in org.jboss.jdbc.JdbcProvider mbean and keep all org.jboss.jdbc.XADataSourceLoader mbeans for defaults,

I do not get any error but all the data gets loaded in Hypersonic instead of Oracle.

Please help.

Thanks very much.

(I am using JBoss2.2_Tomcat3.2.2 with WIn2k)

 

 

 

 



Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of your holiday gifts!

Reply via email to