-->
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.  [ 4 posts ] 
Author Message
 Post subject: problem in runnig tutorial
PostPosted: Mon Mar 26, 2007 7:58 pm 
Newbie

Joined: Mon Mar 26, 2007 5:24 pm
Posts: 2
Hi,

I just downloaded Hibernate 3.2 and trying the tutorial. I tried to use MS SQL database with weblogic driver. The build.xml file is the same. I put the weblogic.jar under <development dir>/lib. When I run "ant run -Daction=store" I got exception:
[java] 14:07:04,594 FATAL DriverManagerConnectionProvider:65 - JDBC Driver class not found: weblogic.jdbc.sqlserver.SQLServerDriver
[java] java.lang.ClassNotFoundException: weblogic.jdbc.sqlserver.SQLServerDriver
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:164)
[java] at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
[java] Initial SessionFactory creation failed.org.hibernate.HibernateException: JDBC Driver class not found: weblogic.jdbc.sqlserver.SQLServerDriver

How to fix it? Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 26, 2007 11:54 pm 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi hibertest,

include these jars in your classpath

wlbase, wlutil, wlsqlserver, and weblogic jars
That might help you

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject: problem in runnig tutorial
PostPosted: Tue Mar 27, 2007 2:26 pm 
Newbie

Joined: Mon Mar 26, 2007 5:24 pm
Posts: 2
Thanks. That helped.

Where can I get the documents about the hibernate settings, like all the dialect options for different database, different generator class, etc.? I took me quite a lot of time to search the forum to find the right dialect for MS SQL and change the generator class to be "increment" to fix another exception to make the tutorial work.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 27, 2007 11:34 pm 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi hibertest,


have a reference
http://hibernate.org/214.html

and for more help see in Hibernate in Action

_________________
Dharmendra Pandey


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