-->
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: How to set Hibirnate with sqlserver&jtds driver in Netbeans
PostPosted: Sat Aug 20, 2011 1:53 pm 
Newbie

Joined: Sat Aug 20, 2011 1:50 pm
Posts: 5
I have sqlserver 2008, no username or password.

I want to setup hibirnate.

This is hibernate.cfg:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
  <session-factory>
    <property name="hibernate.show_sql">true</property>
    <property name="hibernate.current_session_context_class">thread</property>
    <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
    <property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
    <property name="hibernate.connection.url">jdbc:jtds:sqlserver://localhost:2545/MyDB</property>
  </session-factory>
</hibernate-configuration>


When I try to setup Hibernate reverse engineering file with Hibernate reverse engineering wizard, I get the following error:

Quote:
Unable to connect. Cannot establish a connection to jdbc:jtds:sqlserver://localhost:2545/MyDB using net.sourceforge.jtds.jdbc.Driver (I/O Error: SSO Failed: Native SSPI library not loaded. Check the java.library.path system property.).


Top
 Profile  
 
 Post subject: Re: How to set Hibirnate with sqlserver&jtds driver in Netbeans
PostPosted: Thu Aug 25, 2011 3:54 pm 
Newbie

Joined: Sat Aug 20, 2011 1:50 pm
Posts: 5
bump


Top
 Profile  
 
 Post subject: Re: How to set Hibirnate with sqlserver&jtds driver in Netbeans
PostPosted: Tue Sep 06, 2011 9:32 am 
Newbie

Joined: Sat Aug 20, 2011 1:50 pm
Posts: 5
anyone?


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.