Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Problem in datasource with JPA in JBoss

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Actuallly i have the same problem, i spent a week trying to make it work but no way!!

I need to define a new oracle datasource, i am using Oracle 11g , Jboss 5.1

My oracle-ds.xml


My persistence.xml


when i deploy my ejb project on jboss i get these errors,

2012-05-24 15:37:07,908 INFO [org.jboss.jpa.deployment.PersistenceUnitDeployment] (main) Starting persistence unit persistence.unit:unitName=#TEST
2012-05-24 15:37:07,908 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=persistence.unit:unitName=#TESTstate=Create
javax.naming.NameNotFoundException: OracleDS not bound


Hello,

Actuallly i have the same problem, i spent a week trying to make it work but no way!!

I need to define a new oracle datasource, i am using Oracle 11g , Jboss 5.1

My oracle-ds.xml


My persistence.xml


when i deploy my ejb project on jboss i get these errors,

2012-05-24 15:37:07,908 INFO [org.jboss.jpa.deployment.PersistenceUnitDeployment] (main) Starting persistence unit persistence.unit:unitName=#Test
2012-05-24 15:37:07,908 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=persistence.unit:unitName=#Teststate=Create
javax.naming.NameNotFoundException: OracleDS not bound



DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:jar=Testing.jar,name=TotoBean,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:jar=Testing.jar,name=TotoBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#Test' **")

DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN jboss.j2ee:jar=Testing.jar,name=TotoBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#Test' **
Deployment "persistence.unit:unitName=#Test" is in error due to the following reason(s): javax.naming.NameNotFoundException: OracleDS not bound



but in the JMX console i can see my beans!

Please can anyone help me, i really need it :s ???

 
This tiny ad is suggesting that maybe she should go play in traffic.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic