Skip to main content

developerWorks >  WebSphere  >  Forums  >  WebSphere Application Server  >  developerWorks

Websphere 6.1 Datasource Problem with Oracle ODBC Driver    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 1 - Pages: 1 - Last Post: Nov 5, 2009 5:16 AM Last Post By: morsi
RutvijShah

Posts: 2
Registered: Aug 12, 2009 02:12:10 PM
Websphere 6.1 Datasource Problem with Oracle ODBC Driver
Posted: Nov 04, 2009 08:06:17 PM
 
Click to report abuse...   Click to reply to this thread Reply
Hi

We are facing strange problem with Webspher Application Server Data Source.

=======================
Environment :-
=======================
Websphere Application Server (6.1)
Linux
Liferay Portal (5.2)
Oracle 9i
Hibernate 3.0
==========================

We have datasource deployed in Application server referring ODBC14.jar

In Hibernate Configuration for Datasource :-

<property name="connection.datasource">jdbc/appDB</property>
<property name="jndi.class">com.ibm.websphere.naming.WsnInitialContextFactory</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="connection.autocommit">false</property>

===================

We are getting following excpetion :-

Caused by:
java.sql.SQLException: DSRA8101E: DataSource class cannot be used as one-phase: ClassCastException: oracle.jdbc.pool.OracleConnectionPoolDataSource incompatible with javax.sql.ConnectionPoolDataSource
at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java:1375)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:462)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:418)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at org.hibernate.jdbc.ConnectionManager.openConnection

We tried following workaround

====> Came to know classes12.jar is there in WEB-INF/lib
Which has ORACLEDriver which can cause Classloading conflict with Shared/apps/lib ODBC14.jar

sO removed classes12.jar from Webapplication Lib and redployed application and restarted.

But got same error again.

Any Idea folks ?

morsi

Posts: 4
Registered: Oct 29, 2009 09:22:56 AM
Re: Websphere 6.1 Datasource Problem with Oracle ODBC Driver
Posted: Nov 05, 2009 05:16:38 AM   in response to: RutvijShah in response to: RutvijShah's post
 
Click to report abuse...   Click to reply to this thread Reply
Hello,

I'm using ojdbc14.jar when working with oracle 10g without any problem.

why not working with oracle 10g :)
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums