aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Error with Orion Server: No DataSource found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error with Orion Server: No DataSource found" Watch "Error with Orion Server: No DataSource found" New topic
Author

Error with Orion Server: No DataSource found

Phani M
Greenhorn

Joined: Sep 02, 2004
Posts: 6
Dear All

I am new to Orion server. i tried to understand the Ejb deployment by trying to deploy the Example Addressbook given by the Orion team.
I followed all the steps and tried to deploy the ear Addressbook.ear
while deploying it to the orion server i found the Exception as follows:

Auto-deploying addressbook-ejb.jar (No previous deployment found)... Error compiling D:\syscontrolTest\addressbook\build\a
ddressbook/addressbook-ejb.jar: No default cmt-datasource and no source specified

Later I edited the /addressbook/orion-application.xml with the datasource info like

<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://www.orionserver.com/dtds/orion-application.dtd">

<orion-application deployment-version="2.0.2" default-data-source="jdbc/OracleCoreDS">
<ejb-module remote="false" path="addressbook-ejb.jar" />
<web-module id="addressbook-web" path="addressbook-web.war" />
<persistence path="persistence" />
<principals path="principals.xml" />
<user-manager class="com.evermind.sql.DataSourceUserManager">
<property name="table" value="ADDRESSBOOK_EJB_ADDRESSENTRY" />
<property name="dataSource" value="jdbc/OracleCoreDS" />
</user-manager>
<log>
<file path="application.log" />
</log>
<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="administrators" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>


and the datasource.xml in the /orion/config is as follows :

<?xml version="1.0"?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://www.orionserver.com/dtds/data-sources.dtd">
<data-sources>
<!--
<data-source
class="com.evermind.sql.DriverManagerDataSource"
max-connections="20"
min-connections="10"
name="Oracle"
location="jdbc/OracleCoreDS"
xa-location="jdbc/xa/OracleXADS"
ejb-location="jdbc/OracleDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
url="jdbc racle:thin:test/test@sysc7:1521:sysora8i"
inactivity-timeout="180"
schema="database-schemas/oracle.xml"
/>
</data-sources>

now the Error is shown upon the start of the Orion :


Auto-deploying addressbook-ejb.jar (No previous deployment found)... Error compiling D:\syscontrolTest\addressbook\build\a
ddressbook/addressbook-ejb.jar: No DataSource found at jdbc/OracleCoreDS
Error instantiating application 'addressbook' at file:/D:/syscontrolTest/addressbook/build/addressbook.ear: Error initializing userManager 'com.evermind.sql.DataSourceUserManager': NamingException: jdbc/OracleDS not found in addressbook

I dont know how to solve this problem.
can anybody help ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error with Orion Server: No DataSource found