-->
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.  [ 2 posts ] 
Author Message
 Post subject: fails on buildSessionFactory, please help!
PostPosted: Thu May 19, 2005 3:46 pm 
Beginner
Beginner

Joined: Mon Apr 18, 2005 10:25 am
Posts: 38
Location: Maryland
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0

Name and version of the database you are using:
Sybase ASE 12.5


Debug level Hibernate log excerpt:
Debug


I have a hibernate.cfg.xml that I am using:
<hibernate-configuration>
<session-factory name="java:SybaseDS">
<property name="connection.url">hibernate.connection.url jdbc:sybase:Tds:server:port/dbname?JCONNECT_VERSION=5>/property>
<property name="connection.driver_class">com.sybase.jdbc2.jdbc.SybDataSource</property>
<property name="userName">sa</property>
<property name="password">sa</property>
<property name="show_sql">true</property>
<property name="dialect">net.sf.hibernate.dialect.Sybase</property>
<property name="transaction.factory_class">net.sf.hibernate.transaction.JDBCTransacationFactory</property>
<property name="transacation.manager_lookup_class">net.sf.hiberante.transaction.JBossTransactionManagerLookup</property>
Then mapping file resources
/>

I can get the configuration b/c I pass in the file name in my util class. Then I call cfg.buildSessionFactory() and it throws an exception. The log statements indicate that it read the .cfg.xml file but then says that no dialect was set, no user supplied JDBC connection was identified, my use scrollable which is set to true is false. Where is it reading alternate values from? I have the jndi name set in sybase-ds.xml which is under the jboss/server/default/lib as well as the jboss/server/default/deploy/META-INF as well I have a web.xml and a jboss-web.xml which are both under the project WEB-INF. I can see that the datasource is correct in the jmx console. Any ideas on what is not correct here? I am stumped and been round for hours on this. I thought JNDI was not setup correctly but it is. Oh, I also have a jndi.properties file that is in the META-INF directory of the project.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 1:47 am 
Newbie

Joined: Mon Apr 11, 2005 2:08 pm
Posts: 8
perhaps you have the same problem as http://forum.hibernate.org/viewtopic.php?t=942665


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