This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Websphere and the fly likes Resource Adapter Exception in Websphere 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Resource Adapter Exception in Websphere 5.0" Watch "Resource Adapter Exception in Websphere 5.0" New topic

Resource Adapter Exception in Websphere 5.0


Joined: Feb 11, 2003
Posts: 1
Hello All,
I am new to Websphere. I am trying to use CMP deployed in Websphere 5.0. I have created a datasource that accesses Oracle 9i database (using Oracle thin driver)
I could access the database in servlet and jsp using JNDI lookup to the datasource. But when I try to access the same database from a CMP entity bean it cannot get the connection from the pool and throws �ResourceAdapter Exception�.
** While creating datasource, I have selected the option �use the datasource in Container Managed Persistence'. While deploying, I mapped the CMP to this datasource.
I guess there is some problem in the settings while deploying the CMP bean but I am not able to figure it out.
Can anybody help me??
kwwong wong
Ranch Hand

Joined: Feb 15, 2002
Posts: 56
I also has the same problem. I follow the example in EJB2.0 Development with Websphere Studio
Application Developer Integration Edition V5 redbook using the Oracle 9i DB.
I have accepted the resourec adapter error when I testing the enterprise
bean (CMP) using Universal test client on page 424. When I invoke the
findByPrimaryKey method with the 100-1001, I receive the following error
message. I don't know how to solved the problem
Byron Estes
Ranch Hand

Joined: Feb 21, 2002
Posts: 313
Looks like your datasource is not correcltly configured on your server configuration. Check to see if you updated the server security. I think you'll find you need to create a user login definition in the server configuration which you use/ref in the datasource.

Byron Estes<br />Sun Certified Enterprise Architect<br />Senior Consulant<br />Blackwell Consulting Services<br />Chicago, IL<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Resource Adapter Exception in Websphere 5.0
It's not a secret anymore!