aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss Oracle DataSource Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss Oracle DataSource Configuration" Watch "JBoss Oracle DataSource Configuration" New topic
Author

JBoss Oracle DataSource Configuration

Nick Potter
Ranch Hand

Joined: May 07, 2008
Posts: 126
Hello.
I'm getting this error: mapped-name is required for OracleDS of deployment UserOperationBean when i'm starting the server and an EJB application needs to be deployed

This is my oracle10g-ds.xml:



I'm injecting this datasource in an EJB with @Resource(name="OracleDS").

Anyone has an idea about what I'm missing? Thanks
Sumit King
Greenhorn

Joined: Nov 03, 2009
Posts: 7
Im no expert, but you may have to specify the resource name as java:OracleDS

@Resource(name="java:OracleDS")
Nick Potter
Ranch Hand

Joined: May 07, 2008
Posts: 126
Done that, together with defining a jbosscmp-jdbc.xml in the application's META-INF folder that looks like this:


Still no luck...
Sumit King
Greenhorn

Joined: Nov 03, 2009
Posts: 7
I dont have any entries in jbosscmp-jdbc.xml
Maybe you can try removing your entry and accessing your resource as java:OracleDS
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10290
    
168


I'm getting this error: mapped-name is required for OracleDS of deployment UserOperationBean
...
I'm injecting this datasource in an EJB with @Resource(name="OracleDS")


You should use:



[My Blog] [JavaRanch Journal]
Nick Potter
Ranch Hand

Joined: May 07, 2008
Posts: 126
Yep, mappedName worked, thanks. Is there a catch though? Why some servers need name and others mappedName?
 
Don't get me started about those stupid light bulbs.
 
subject: JBoss Oracle DataSource Configuration