aspose file tools*
The moose likes Object Relational Mapping and the fly likes error connecting to SQL Server 2005 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "error connecting to SQL Server 2005" Watch "error connecting to SQL Server 2005" New topic
Author

error connecting to SQL Server 2005

Thameem Aliyar
Ranch Hand

Joined: Oct 11, 2011
Posts: 42
When i connect using hibernate.cfg.xml. I found the following error. Can anybody tell me the Solution........



Dec 13, 2011 5:17:14 PM org.hibernate.annotations.common.Version <clinit>
INFO: Hibernate Commons Annotations 3.2.0.Final
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.6.8.Final
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: hibernate.cfg.xml
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: hibernate.cfg.xml
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: com.objects.UserDetails
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity com.objects.UserDetails on table UserDetails
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.Configuration applyHibernateValidatorLegacyConstraintsOnDDL
INFO: Hibernate Validator not found: ignoring
Dec 13, 2011 5:17:14 PM org.hibernate.cfg.search.HibernateSearchEventListenerRegister enableHibernateSearch
INFO: Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
Dec 13, 2011 5:17:14 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
Dec 13, 2011 5:17:14 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 1
Dec 13, 2011 5:17:14 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
Dec 13, 2011 5:17:15 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: net.sourceforge.jtds.jdbc.Driver at URL: JDBC:jtds:sqlserver://localhost:1433/hibernateDB
Dec 13, 2011 5:17:15 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=jj, password=****}
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
WARNING: Could not obtain connection to query metadata
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:385)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:113)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
at com.actions.HibernateTest.main(HibernateTest.java:13)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:304)
at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:255)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:310)
... 10 more
Dec 13, 2011 5:17:16 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServer2005Dialect
Dec 13, 2011 5:17:16 PM org.hibernate.engine.jdbc.JdbcSupportLoader useContextualLobCreation
INFO: Disabling contextual LOB creation as connection was null
Dec 13, 2011 5:17:16 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
Dec 13, 2011 5:17:16 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Dec 13, 2011 5:17:16 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory createRegionFactory
INFO: Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
Dec 13, 2011 5:17:16 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Check Nullability in Core (should be disabled when Bean Validation is on): enabled
Dec 13, 2011 5:17:16 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@1c80b01
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [clob] overrides previous : org.hibernate.type.ClobType@4aa0ce
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@4aa0ce
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [blob] overrides previous : org.hibernate.type.BlobType@1833eca
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@1833eca
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@18f5824
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@1e3cd51
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@bc8e1e
Dec 13, 2011 5:17:16 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@11671b2
Dec 13, 2011 5:17:16 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
org.hibernate.exception.JDBCConnectionException: Cannot open connection
Dec 13, 2011 5:17:17 PM org.hibernate.util.JDBCExceptionReporter logExceptions
WARNING: SQL Error: 0, SQLState: 08S01
Dec 13, 2011 5:17:17 PM org.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: Network error IOException: Connection refused: connect



Thanking You in advance...
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Check your URL connection: WARNING: Could not obtain connection to query metadata
java.sql.SQLException: Network error IOException: Connection refused: connect


Maybe your URL is wrong.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Thameem Aliyar
Ranch Hand

Joined: Oct 11, 2011
Posts: 42
I corrected the error...... But i got new error as follows............ Kindly help me............



Dec 13, 2011 10:37:01 PM org.hibernate.annotations.common.Version <clinit>
INFO: Hibernate Commons Annotations 3.2.0.Final
Dec 13, 2011 10:37:01 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.6.8.Final
Dec 13, 2011 10:37:01 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Dec 13, 2011 10:37:01 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
Dec 13, 2011 10:37:01 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: hibernate.cfg.xml
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: hibernate.cfg.xml
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: com.objects.UserDetails
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity com.objects.UserDetails on table UserDetails
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.Configuration applyHibernateValidatorLegacyConstraintsOnDDL
INFO: Hibernate Validator not found: ignoring
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.search.HibernateSearchEventListenerRegister enableHibernateSearch
INFO: Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: sun.jdbc.odbc.JdbcOdbcDriver at URL: jdbcdbc:test
Dec 13, 2011 10:37:03 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=jj, password=****}
Dec 13, 2011 10:37:03 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServer2005Dialect
Dec 13, 2011 10:37:03 PM org.hibernate.engine.jdbc.JdbcSupportLoader useContextualLobCreation
INFO: Disabling contextual LOB creation as JDBC driver reported JDBC version [2] less than 4
Dec 13, 2011 10:37:03 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServer2005Dialect
Dec 13, 2011 10:37:03 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
Dec 13, 2011 10:37:03 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Dec 13, 2011 10:37:03 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory createRegionFactory
INFO: Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
Dec 13, 2011 10:37:03 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Check Nullability in Core (should be disabled when Bean Validation is on): enabled
Dec 13, 2011 10:37:03 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@d9660d
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [clob] overrides previous : org.hibernate.type.ClobType@bb0d0d
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@bb0d0d
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [blob] overrides previous : org.hibernate.type.BlobType@55e55f
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@55e55f
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@145c859
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@64883c
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@2c1e6b
Dec 13, 2011 10:37:03 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@811c88
Dec 13, 2011 10:37:04 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Dec 13, 2011 10:37:04 PM org.hibernate.util.JDBCExceptionReporter logExceptions
WARNING: SQL Error: 208, SQLState: S0002
Dec 13, 2011 10:37:04 PM org.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'UserDetails'.
Dec 13, 2011 10:37:04 PM org.hibernate.util.JDBCExceptionReporter logExceptions
WARNING: SQL Error: 8180, SQLState: 37000
Dec 13, 2011 10:37:04 PM org.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.
org.hibernate.exception.SQLGrammarException: could not insert: [com.objects.UserDetails]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18675
    
    8

Why did you change to using the JDBC-ODBC driver? It's quite likely that Hibernate can't work with that. You were using a JDBC driver before, just keep using the JDBC driver.
Thameem Aliyar
Ranch Hand

Joined: Oct 11, 2011
Posts: 42
Here,s my main method............


Here,s the hibernate.cfg,xml


.....
Here,s the output window....ther's no error....bt the output is not displayed.........

Dec 14, 2011 12:24:39 PM org.hibernate.annotations.common.Version <clinit>
INFO: Hibernate Commons Annotations 3.2.0.Final
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.6.8.Final
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: com.objects.UserDetails
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity com.objects.UserDetails on table UserDetails
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.Configuration applyHibernateValidatorLegacyConstraintsOnDDL
INFO: Hibernate Validator not found: ignoring
Dec 14, 2011 12:24:39 PM org.hibernate.cfg.search.HibernateSearchEventListenerRegister enableHibernateSearch
INFO: Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
Dec 14, 2011 12:24:39 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
Dec 14, 2011 12:24:39 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 1
Dec 14, 2011 12:24:39 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
Dec 14, 2011 12:24:39 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: sun.jdbc.odbc.JdbcOdbcDriver at URL: jdbcdbc:test
Dec 14, 2011 12:24:39 PM org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {}
Dec 14, 2011 12:24:40 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServer2005Dialect
Dec 14, 2011 12:24:40 PM org.hibernate.engine.jdbc.JdbcSupportLoader useContextualLobCreation
INFO: Disabling contextual LOB creation as JDBC driver reported JDBC version [2] less than 4
Dec 14, 2011 12:24:40 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServer2005Dialect
Dec 14, 2011 12:24:40 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
Dec 14, 2011 12:24:40 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Dec 14, 2011 12:24:40 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory createRegionFactory
INFO: Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Echoing all SQL to stdout
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
Dec 14, 2011 12:24:40 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Check Nullability in Core (should be disabled when Bean Validation is on): enabled
Dec 14, 2011 12:24:40 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [clob] overrides previous : org.hibernate.type.ClobType@da4b71
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@da4b71
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [blob] overrides previous : org.hibernate.type.BlobType@18f1d7e
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@18f1d7e
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@d9660d
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@bb0d0d
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@55e55f
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@145c859
Dec 14, 2011 12:24:40 PM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@64883c
Dec 14, 2011 12:24:40 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
In Connection.........


....Kindly reply me as soon as possible.........
Thanking you in advance............

[VK: Added code tags]
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

What output you expected and what you get now?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Thameem Aliyar
Ranch Hand

Joined: Oct 11, 2011
Posts: 42
It doesn't insert any values to the DB. Kindly tell me the solution...........
Thanking you in advance............
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

Can you provide the full stack trace now you get (after "Dec 14, 2011 12:24:40 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured " part)? You still seems to use JDBC-ODBC driver? Why not use JDBC driver?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: error connecting to SQL Server 2005