Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error with Orion Server: No DataSource found

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic