Hi, I have set up my data-sources.xml file correct (I think).  And I'm
able to get connections from the connection pool using reguler objects,
but when I try to deploy my Entity bean using cmp I get the following
error:

Auto-deploying orion-primer-ejb.jar... Error compiling
file:/D:/orion-primer/rel/orion-primer/orion-
primer-ejb.jar: No DataSource found at jdbc/DefaultEJBDS

I have everything spelled right.  Am I missing something?
data-sources.xml:

<?xml version="1.0" ?>
  <!DOCTYPE data-sources (View Source for full doctype...)>
- <data-sources>

  <data-source class="com.evermind.sql.ConnectionDataSource"
name="Default" location="jdbc/DefaultDS"
ejb-location="jdbc/DefaultEJBDS" pooled-location="jdbc/DefaultPooledDS"
xa-location="jdbc/xa/DefaultXADS"
url="jdbc:oracle:thin:@IPADDRESS:1521:ORCL"
connection-driver="oracle.jdbc.driver.OracleDriver" username="scott"
password="tiger" schema="database-schemas/oracle.xml" />
  </data-sources>

orion-ejb-jar.xml:

<?xml version="1.0" ?>
  <!DOCTYPE orion-ejb-jar (View Source for full doctype...)>
- <orion-ejb-jar deployment-version="1.0.3"
deployment-time="e1006d0b70">
- <enterprise-beans>
  <session-deployment name="hello.ejb.Hello" location="hello.ejb.Hello"
wrapper="SessionHomeWrapper1" timeout="1200"
persistence-filename="hello.ejb.Hello" />
- <entity-deployment name="hello.ejb.RickTest"
location="hello.ejb.RickTest" wrapper="RickTestHome_EntityHomeWrapper9"
table="RickTest1" data-source="jdbc/DefaultEJBDS">
- <primkey-mapping>
  <cmp-field-mapping name="id" persistence-name="id" />
  </primkey-mapping>
  <cmp-field-mapping name="name" persistence-name="name" />
  </entity-deployment>
  </enterprise-beans>
- <assembly-descriptor>
  <security-role-mapping name="users" />
- <default-method-access>
  <security-role-mapping impliesAll="true" />
  </default-method-access>
  </assembly-descriptor>
  </orion-ejb-jar>


Reply via email to