-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Using C3P0 and Hibernate on OC4J
PostPosted: Wed Jul 06, 2005 8:02 pm 
Newbie

Joined: Wed Jul 06, 2005 7:37 pm
Posts: 4
I have managed to get a struts application using hibernate and C3P0 working on Tomcat 5. Im having trouble setting this up in OC4J 10.1.2 or OC4J 9.0.4 .

I get an exception in the OC4J's server.log:
05/07/06 16:25:20 Exception occured during Applications initialization: Unable to find DataSource of type com.mchange.v2.c3p0.ComboPooledDataSource

I have created a global datasource entry in OC4J. Here is my global data-sources.xml
<?xml version = '1.0' standalone = 'yes'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd">
<data-sources>
<data-source location="jdbc/employee_DS" class="com.mchange.v2.c3p0.ComboPooledDataSource" xa-location="jdbc/xa/employee_XADS" ejb-location="dbc/employeedb" connection-driver="oracle.jdbc.driver.OracleDriver" username="user" password="passwd1" url="jdbc:oracle:thin:@xserver:1521:db_test" inactivity-timeout="30" name="employee_DS"><description>Employee System Datasource</description></data-source>
</data-sources>

Can anyone shed light on how they used C3P0 and Hibernate to work on OC4J? Thanks.


Top
 Profile  
 
 Post subject: Re: Using C3P0 and Hibernate on OC4J
PostPosted: Wed Mar 23, 2011 9:19 am 
Newbie

Joined: Wed Mar 23, 2011 9:14 am
Posts: 1
Hi! Did you find any solution? I´ve the same problem :(

Oh my God! I didn´t see the date of the post...It´s soo old :)

Thanks!!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.