Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Problem with ORM by Weblogic

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Thanks

Mark
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

http://edocs.bea.com/wls/docs100/jdbc_admin/jdbc_datasources.html#wp1167286

You may also find the following links usefull:

http://edocs.bea.com/wls/docs100/jdbc_admin/packagedjdbc.html

http://edocs.bea.com/wls/docs100/jdbc_admin/config.html

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

http://edocs.bea.com/wls/docs100/ejb30.html

regards.
 
Thomas Chang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem of connection to the database is solved.
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic