Hi
All,
I'm trying to configure dynamically,i.e. with the [b]Configuration :[/b]Class. But it is giving the following error :
[color=red]16:19:44,140 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
Exception in thread "main" java.lang.UnsupportedOperationException: The user must supply a JDBC connection
at org.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:30)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:421)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119)
at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57):[/color]
how to solve ??
|