Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with ORM by Weblogic

Status
Not open for further replies.

thomas2004ch

Programmer
May 13, 2008
1
DE
Hi all,

I create an EJB-Project which runs quite well in JBoss. Now I am going to deploy it by Weblogic Express 10g. But I have problem by deploying. I got Exception as follow:

Error processing persitence unit dwSpring2Jpa of module TestBEAEJB3Beans.jar: Error looking up a DataSource for PersistenceUnit dwSpring2Jpa: javax.naming.NameNotFoundException: Unable to resolve 'OracleDS'. Resolved ''; remaining name 'OracleDS'

My "persistence.xml" looks as follow:

<?xml version="1.0"?>
<persistence xmlns="xmlns:xsi="xsi:schemaLocation="version="1.0">
<persistence-unit name="dwSpring2Jpa">
<jta-data-source>OracleDS</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
</properties>
</persistence-unit>
</persistence>


My question: where should I locate the datasource descriptor which contains the OracleDS and the username and password?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top