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.