浏览 4322 次
锁定老帖子 主题:第一个例子还是不中啊!郁闷。。。
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2004-01-15
错误: 10:01:38,484 WARN UserSuppliedConnectionProvider:25 - No connection properties specified - the user must supply JDBC connections 10:01:38,484 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended); 10:01:38,484 INFO SettingsFactory:89 - Use scrollable result sets: false 10:01:38,484 INFO SettingsFactory:99 - Query language substitutions: {true=1, yes='Y', false=0, no='N'} 10:01:38,484 INFO SettingsFactory:110 - cache provider: net.sf.hibernate.cache.HashtableCacheProvider 10:01:38,500 INFO Configuration:1057 - instantiating and configuring caches 10:01:38,640 INFO SessionFactoryImpl:119 - building session factory 10:01:38,968 INFO SessionFactoryObjectFactory:82 - no JNDI name configured java.lang.UnsupportedOperationException: The user must supply a JDBC connection at net.sf.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:32); at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:257); at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3157); at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3140); at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40); at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19); at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2158); at com.javamodel.hibernate.Example.main(Example.java:49); Exception in thread "main" 我的数据库是sybase,我想应该是我的hibernate.properties设置不对,哪位高手给看看 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2004-01-16
"No connection properties specified"
|
|
返回顶楼 | |
发表时间:2004-01-16
看了那档案,发现您用的是Sybase,那这个driver您是否配置好了呢?
|
|
返回顶楼 | |
发表时间:2004-01-16
多谢kitleong兄的再次指点!
我的sybase数据库应该没问题(使用pb可以连上); 我使用的jconn2.jar包; 开始我也怀疑是我的数据库问题(我改用interbase成功),但我在jsp中直接使用jconn2.jar驱动连接sybase(用户、密码、连接串同properties文件中的),也能连接成功! "No connection properties specified" 到底是哪出问题了? |
|
返回顶楼 | |
发表时间:2004-01-25
你的hibernate.properties或者hibernate.cfg.xml文件放错了位置
|
|
返回顶楼 | |
发表时间:2004-01-29
那hibernate.properties应该放在什么地方?
我把hibernate.properties放在各个目录下都不行啊 |
|
返回顶楼 | |