dlog4j_3_0_b2部署出错,请大家帮忙看看。。。

qtm 发布于 2010/10/30 17:18
阅读 742
收藏 1

我本机环境是jdk5.0,comcat6.0,我直接把dlog4j中webapp目录下的文件拷贝到tomcat webapps\log目录下,然后启动tomcat,但是启动的时候报错,说是找不到hibernate配置文件,但是在指定的目录下明明有那个文件啊。。。

错误信息如下:

严重: Hibernate Initialize failed.

org.hibernate.HibernateException: could not find file: E:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\dlog4j_3_0_b2\WEB-INF\classes\hibernate.cfg.xml

at org.hibernate.cfg.Configuration.configure(Unknown Source)

at com.liusoft.util.db.Hibernate.<init>(Hibernate.java:63)

at com.liusoft.util.db.Hibernate.init(Hibernate.java:53)

at com.liusoft.dlog4j.db.HibernateUtils.<clinit>(HibernateUtils.java:46)

at java.lang.J9VMInternals.initializeImpl(Native Method)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)

at com.liusoft.dlog4j.dao._DAOBase.getSession(DAO.java:514)

at com.liusoft.dlog4j.dao.DAO.executeNamedQuery(DAO.java:361)

at com.liusoft.dlog4j.dao.DAO.findNamedAll(DAO.java:392)

at com.liusoft.dlog4j.dao.BBSTopicDAO.fetchAfter(BBSTopicDAO.java:385)

at com.liusoft.dlog4j.plugin.BuildIndexThread.run(SearchEnginePlugIn.java:228)

Caused by: java.io.FileNotFoundException: E:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\dlog4j_3_0_b2\WEB-INF\classes\hibernate.cfg.xml (系统找不到指定的路径。)

at java.io.FileInputStream.<init>(FileInputStream.java:135)

... 11 more

加载中
0
qtm
qtm

已解决,原来是tomcat安装路径中有空格,去掉就行了。。。。

返回顶部
顶部