Get your CodeRanch badge!*
The moose likes Object Relational Mapping and the fly likes Problem in datasource with JPA in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problem in datasource with JPA in JBoss" Watch "Problem in datasource with JPA in JBoss" New topic
Author

Problem in datasource with JPA in JBoss

rukia rukita
Greenhorn

Joined: May 24, 2012
Posts: 2
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 ???

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in datasource with JPA in JBoss
 
Similar Threads
3 days stucked - NullPointer Persistent Unit no Caused By
Exception got in deployment of EJB3 .ear
How to Create Auto Schema
Hibernate EntityManager Batch insert and update
NameNotFoundExcption