• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss Oracle DataSource Configuration

 
Nick Potter
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im no expert, but you may have to specify the resource name as java:OracleDS

@Resource(name="java:OracleDS")
 
Nick Potter
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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:

 
Nick Potter
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, mappedName worked, thanks. Is there a catch though? Why some servers need name and others mappedName?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic