hibernate.properties not found

newloginname 2010-12-08 07:36:23
谁知道这是怎么回事。。 PS:我的hibernate.properties和hibernate.cfg.xml都放在了ear\lib\classes目录下了
hibernate.cfg.xml已经通过这样找到了

Configuration cfg =

new Configuration().configure(XXXXXX.class.getResource("/classes/hibernate.cfg.xml"));


18:45:12,765 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
18:45:12,765 INFO [STDOUT] org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available

我的ear\lib下面并没有用自己的hibernate jar包 因为用了之后会和jboss自己的jar包有冲突 我就把自己ear\lib下面的hibernate3.jar删了 信息就这么多了。。大家有想法没?
...全文
378 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
jxlysmxy 2010-12-17
  • 打赏
  • 举报
回复
看看方言设置了吗
ckstory 2010-12-09
  • 打赏
  • 举报
回复
好像跟你jar包没关系

the user must supply JDBC connections 你用hibernate 咋还有这玩意

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧