aspose file tools*
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
JavaRanch » Java Forums » Products » Websphere
Bookmark "Resource Adapter Exception in Websphere 5.0" Watch "Resource Adapter Exception in Websphere 5.0" New topic
Author

Resource Adapter Exception in Websphere 5.0

mandar8
Greenhorn

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="http://www.bcsinc.com" target="_blank" rel="nofollow">www.bcsinc.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resource Adapter Exception in Websphere 5.0
 
Similar Threads
Problem in configuring jdbc driver with Websphere4.0
Weblogic pool connection Vs JDBC Connection
using DataSource in WebLogic to access DB2
Connecting to Oracle data source from EJB
Creating datasource in WAS 5