This week's book giveaway is in the Testing forum.
We're giving away four copies of Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples and have Jeremy Kubica on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Oracle 11g Datasource exception when tried to testconnection

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


Iam using websphere 7. Tried to configure datasource.

But i have put the required jar in configured path.
Iam getting the following exception.


2/17/11 11:20:24:539 SGT] 00000014 DataSourceCon E DSRA8040I: Failed to connect to the DataSource. Encountered "": java.lang.ClassNotFoundException: oracle.jdbc.xa.client.OracleXADataSource
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.ibm.ws.rsadapter.DSConfigurationHelper.loadDataSourceClass(DSConfigurationHelper.java:2247)
at com.ibm.ws.rsadapter.DSConfigurationHelper$8.run(DSConfigurationHelper.java:3318)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at
 
Greenhorn
Posts: 18
Python C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the classpath of the jdbc driver. WebSphere can't find jar file containing OracleXADataSource class or jar file doesn't contain it.

Also you need to restart node after new data source was created. try to do it if not did yet.
 
KasiMurugan Ramasamy
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sergey,

Thanks for your reply.
When I configured database provider, I expilictly mentioned full path(including, like /apps/WebSphere/AppServer7/oracle/lib/ojdbc5.jar) of the jar, where the ojdbc.jar is available.

But its not taking the jar.
 
Sergey Baranov
Greenhorn
Posts: 18
Python C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried to restart a Node?
 
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
TestConnection feature works on the node agent process instead of the app server. So you will have to re-start the node everytime you want to test it via that button.

But you are getting class not found exception.

If you are not using any WAS variables and are pointing to the jar directly then check if WAS Unix user can see the jar file.
 
KasiMurugan Ramasamy
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The issue is resolved. The issue was the ocjdbc.jar. We uploaded the jar to Linux(appserver is running) from windows machine using some software.

That jar was corrupted. This is the reason.

Thank you guys for your response.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic