eclipse中的问题

帮忙看一下哪里出错log4j:WARNNoappenderscouldbefoundforlogger(org.hibernate.cfg.Environment).lo... 帮忙看一下哪里出错
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1376)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1310)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1296)
at ch03.hibernate.Test.main(Test.java:14)
Caused by: org.dom4j.DocumentException: Error on line 2 of document : The document type declaration for root element type "hibernate-configuration" must end with '>'. Nested exception: The document type declaration for root element type "hibernate-configuration" must end with '>'.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
... 3 more
展开
 我来答
codan
2007-09-13 · TA获得超过126个赞
知道小有建树答主
回答量:290
采纳率:0%
帮助的人:197万
展开全部
configuration" must end with '>'.
hbm.cfg.xml文件里出错了。没 配置对。少个 '>'.
henterji
2007-09-13 · TA获得超过2973个赞
知道大有可为答主
回答量:1835
采纳率:0%
帮助的人:1910万
展开全部
配置文件hibernate.cfg.xml出错了,仔细检查下吧
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式