This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194647 - Hibernate cannot load com/mchange/v2/c3p0/DataSources
Summary: Hibernate cannot load com/mchange/v2/c3p0/DataSources
Status: RESOLVED DUPLICATE of bug 194198
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 11:59 UTC by ksmadhuri
Modified: 2011-04-25 12:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170235


Attachments
stacktrace (1.17 KB, text/plain)
2011-01-24 11:59 UTC, ksmadhuri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ksmadhuri 2011-01-24 11:59:45 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP

User Comments:
GUEST: Trying to run a simple HQL query on a pre-existing hibernate.cfg.xml and associated mapping files.

GUEST: running a hibernate query using HQL Query.... it seems stuck at 10% 'preparing'... selected query and chose 'Run HQL' (so - trying to run the query a second time - while first instance is 'stuck at 10%').

I don't care - but reporting for what it is worth




Stacktrace: 
java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/DataSources
   at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:154)
   at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
   at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
   at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
   at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
   at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
Comment 1 ksmadhuri 2011-01-24 11:59:49 UTC
Created attachment 105294 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-04-14 06:05:32 UTC
org.hibernate.connection.C3P0ConnectionProvider.configure cannot load some class.
Comment 3 Sergey Petrov 2011-04-14 10:48:59 UTC
It's good to know why hibernate would like to load this class, what db is used, can sample project or hibernate config be provided? It may be project/environment misconfiguration with only issue it may be good to show some message instead of exception report.
Comment 4 Exceptions Reporter 2011-04-14 12:54:47 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=170235
Comment 5 Sergey Petrov 2011-04-25 12:38:42 UTC
duplicate of 194198 with just a minor stacktrace change

*** This bug has been marked as a duplicate of bug 194198 ***