File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Problem with ORM by Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Problem with ORM by Weblogic" Watch "Problem with ORM by Weblogic" New topic

Problem with ORM by Weblogic

Thomas Chang
Ranch Hand

Joined: May 13, 2008
Posts: 61
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:

My "persistence.xml" looks as follow:

My question: where should I locate the datasource descriptor which contains the OracleDS and the username and password?
[ May 13, 2008: Message edited by: Thomas Chang ]
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Basically you need to create a Datasource in Weblogic. Since, how you do that is Weblogic specific, I am going to move this thread to the Weblogic forum



Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Mark is correct. You need to create a weblogic DataSource and then you may check in JNDI tree if the DS is correct available.
You will find information on how to create a DS at:

You may also find the following links usefull:

And you can find information on ejb 3.0 for weblogic at:

Thomas Chang
Ranch Hand

Joined: May 13, 2008
Posts: 61

I did create a DataSource via AdminConsole in Weblogic. I gave the DataSource a Name "dwSpring2Jpa". Then I gave the "JNDI Name" a value of "OracleDS". My database name is XE.

In the "persistence.xml" I have:

I am somewhat confused if I set the values correct or not.
Thomas Chang
Ranch Hand

Joined: May 13, 2008
Posts: 61
The problem of connection to the database is solved.
I agree. Here's the link:
subject: Problem with ORM by Weblogic
It's not a secret anymore!