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.