Articles Tutorials Interview Questions & Answers Certifications Free Books & Sample Chapters Technical Discussions    Your Account | Advertise with us | Feedback
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Log inLog in   RegisterRegister 

Hibernate Setup Problem

 
Post new topic   Reply to topic     Forum Index -> Hibernate Forum
View previous topic :: View next topic  
Author Message
Sayyed



Joined: 10 Jun 2009
Posts: 1

PostPosted: Wed Jun 10, 2009 1:08 pm    Post subject: Hibernate Setup Problem Reply with quote

Hi,
I am trying to use Hibernate as a Standalone Java application ..I am getting following errors when I am executing main class .
10-Jun-2009 18:21:36 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.1
10-Jun-2009 18:21:36 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
10-Jun-2009 18:21:36 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
10-Jun-2009 18:21:36 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
10-Jun-2009 18:21:36 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
10-Jun-2009 18:21:36 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
10-Jun-2009 18:21:37 org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
10-Jun-2009 18:21:37 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
10-Jun-2009 18:21:37 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
10-Jun-2009 18:21:37 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
10-Jun-2009 18:21:37 org.hibernate.connection.DriverManagerConnectionProvider configure
SEVERE: JDBC Driver class not found: com.sybase.jdbc2.jdbc.SybDrive
java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDrive
at java.net.URLClassLoader.findClass(URLClassLoader.java:375)
at java.lang.ClassLoader.loadClass(ClassLoader.java:562)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442)
at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:61)
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:397)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2006)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1289)
at com.ibm.tutorial.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:24)
at com.ibm.tutorial.hibernate.Testing.main(Testing.java:21)
Exception is ----->JDBC Driver class not found: com.sybase.jdbc2.jdbc.SybDrive
Exception in thread "main" java.lang.NullPointerException
at com.ibm.tutorial.hibernate.Testing.main(Testing.java:21)
I've set the class path for Sybase Driver but still getting this ugly error ..

Can anyone please help me out ??? :o
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Hibernate Forum All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group