-->
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.  [ 1 post ] 
Author Message
 Post subject: c3p0 log initilization problem
PostPosted: Fri Jan 13, 2006 8:18 am 
Newbie

Joined: Fri Nov 18, 2005 1:01 pm
Posts: 18
Location: Delft, the Netherlands
Hi,

I am using c3p0 for my connection pool with hibernate, but run into an initilization problem. Please see the stacktrace below. It seems as if there is a problem when the log is setup. After reading some apache bugs (bug1, bug2, bug3) I found this could be related to the classloader trying to load a directory. Or could it be that it is trying to load a file which is not found? In the later case I's expect a ClassNotFoundException.

If anyone has any clues to where the origine might lie for this exception, please point it out to me as I'm breaking my head over it for a week now ;-)

Thank you and have a great day.

PS: this is a more detailed question to the same problem as described in my earlier question

Hibernate version: 3.0.3

c3p0 version: 0.9.0.2

DBMS: MySQL 4.1.7-nt

Hibernate config:

<hibernate-configuration>
<hibernate.connection.driver_class>com.mysql.jdbc.Driver</hibernate.connection.driver_class>
<hibernate.connection.url>jdbc:mysql://localhost/jsportal_0000001?autoreconnect=true</hibernate.connection.url>
<hibernate.connection.username>root</hibernate.connection.username>
<hibernate.connection.password>****</hibernate.connection.password>
<hibernate.dialect>org.hibernate.dialect.MySQLInnoDBDialect</hibernate.dialect>
<hibernate.c3p0.min_size>1</hibernate.c3p0.min_size>
<hibernate.c3p0.max_size>5</hibernate.c3p0.max_size>
<hibernate.c3p0.timeout>120</hibernate.c3p0.timeout>
<hibernate.c3p0.max_statements>50</hibernate.c3p0.max_statements>
<hibernate.c3p0.idle_test_period>300</hibernate.c3p0.idle_test_period>
</hibernate-configuration>

Stack trace:

java.lang.ClassCastException: org.apache.naming.resources.FileDirContext
at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1585)
at org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.java:914)
at org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1111)
at java.lang.Class.getResourceAsStream(Class.java:1998)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.<init>(BasicMultiPropertiesConfig.java:48)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.<init>(BasicMultiPropertiesConfig.java:39)
at com.mchange.v2.cfg.MultiPropertiesConfig.read(MultiPropertiesConfig.java:64)
at com.mchange.v2.cfg.MultiPropertiesConfig.readVmConfig(MultiPropertiesConfig.java:73)
at com.mchange.v2.log.MLog.<clinit>(MLog.java:48)
... 34 more

_________________
Joost Schouten
JS Portal


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

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.