-->
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: Problem with SQL Server
PostPosted: Thu Mar 17, 2005 4:00 pm 
Newbie

Joined: Tue Mar 08, 2005 6:53 pm
Posts: 8
Hi, I'm having the following problem:

Hibernate version: 2

Code that creates session factory:

Code:
sessionFactory = new Configuration().configure(url).buildSessionFactory();


Full stack trace of any exception that occurs:

    WARN [14:00:34] (SettingsFactory.java:buildSettings:107) - Could not obtain connection metadata
    java.sql.SQLException: This JDBC 2.0 method is not implemented
    at weblogic.jdbc.mssqlserver4.TdsDatabaseMetaData.supportsResultSetType(TdsDatabaseMetaData.java:3198)
    at weblogic.jdbc.wrapper.DatabaseMetaData_weblogic_jdbc_mssqlserver4_MicrosoftDatabaseMetaData.supportsResultSetType(Unknown Source)
    at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:87)
    at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1172)
    at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:803)

Name and version of the database you are using: SQL Server 2000

I'm working with weblogic server 8.1 and this configuration works fine with Oracle. When I translate to SQL Server it throws the exception when I try to get the session factory.

My hibernate.cfg.xml is:

Code:
<hibernate-configuration>

   <!-- a SessionFactory instance listed as /jndi/name -->
   <session-factory>

      <!-- properties -->
      <property name="connection.datasource">tellarian.jdbc.datasource</property>
      <property name="dialect">net.sf.hibernate.dialect.SQLServerDialect</property>
      <property name="show_sql">false</property>
      <property name="use_outer_join">false</property>
      <property name="transaction.manager_lookup_class">net.sf.hibernate.transaction.WeblogicTransactionManagerLookup</property>
         <property name="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property>

      <!-- mapping files -->
      <mapping resource="com/acmgrp/tellarian/valuation/record/HibernateConsumptionRecord.hbm.xml"/>
   </session-factory>

</hibernate-configuration>


Please! I would really appreciate any help.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 17, 2005 5:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that is just a warning because of a limited driver - doesnt everything else work fine ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 17, 2005 7:57 pm 
Newbie

Joined: Tue Mar 08, 2005 6:53 pm
Posts: 8
Yes you're right. I'm so sorry. Thanks so much for taking the time to respond even if it was that obvious. I truly appreciate your kindness.


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.