-->
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.  [ 3 posts ] 
Author Message
 Post subject: WARNING occured
PostPosted: Wed Oct 11, 2006 6:32 am 
Newbie

Joined: Tue Oct 10, 2006 3:27 am
Posts: 5
Location: Cochi, India
Please help,

I have extrated all jar files into my folder and compiled CDTest.java
At this time it asks to recompile with -Xlint
while doing so I got 6 Warning messages
Then I Continued to run the class file and the following messages were shon but the application was displayed but couldnot do any operation.

---------- java ----------
log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
net.sf.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver
at net.sf.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:63)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:65)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1155)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:789)
at CDTest.<init>(CDTest.java:29)
at CDTest.main(CDTest.java:201)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 7:01 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
Is your JDBC driver in your classpath

_________________
Please don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 7:02 am 
Regular
Regular

Joined: Wed Jul 27, 2005 2:33 am
Posts: 118
Quote:
net.sf.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver
at net.sf.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:63)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:65)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1155)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:789)
at CDTest.<init>(CDTest.java:29)
at CDTest.main(CDTest.java:201)


The jar containing the MySQL driver is not present in the classpath. Place that jar file in your classpath.

Quote:
log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.

The log4j.xml or log4j.properties is not present in the classpath. Place either of them in the classpath.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.