【求救】网上的代码报错 传智播客BBS

尘风记忆 2011-03-10 10:49:58
我新手,想学习一下,下的传智播客BBS的源码,可就是总报错

这个是部署说明

1,数据库连接:
1,创建相应的数据库
2,修改 hibernate.cfg.xml 中的数据库连接信息。
3,如果使用的不是MySQL数据,要添加相应的JDBC驱动的jar包
4,关闭自动建表与不显示sql语句
2,配置log4j.properties文件。并移走已存在的日志(如果有)
3,初始化系统:执行 /del/index.jsp。按列出的序列点点击超链接,作用是向数据库中插入相应的初始化数据
注意:运行完后,最好删除此目录,因为只需要执行一次就可以了。
4,登录管理员:用户名admin,密码itcast,进入后台,初始化数据。
1,分类与版面
2,普通会员的权限设置

那个关闭自动建表与不显示SQL是什么意思,在哪里弄?

下面这是错误信息

22:30:54,708 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Attachment]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,306 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Article]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,364 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Role]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,379 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.BlogLink]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,393 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.User]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,423 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Forum]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,445 [main] WARN CacheFactory : read-only cache configured for mutable class: cn.itcast.bbs.domain.SystemPrivilege ==> org.hibernate.cache.CacheFactory.createCache(CacheFactory.java:43)
22:30:55,452 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.SystemPrivilege]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,542 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Category]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,555 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.User.roles]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,579 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Role.systemPrivileges]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,584 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Article.attachments]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:55,589 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Category.forums]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:59,975 [main] WARN EhCacheProvider : Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:30:59,986 [main] WARN EhCacheProvider : Could not find configuration [org.hibernate.cache.StandardQueryCache]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
22:31:01,842 [main] WARN ModuleConfigImpl : Overriding ActionForm of name UserActionForm ==> org.apache.struts.config.impl.ModuleConfigImpl.addFormBeanConfig(ModuleConfigImpl.java:350)
22:31:01,951 [main] INFO InitSystemServlet : 已注册转换器:UtilDateConverter 与 new GenericEnumConverter(Gender.class) ==> cn.itcast.bbs.web.InitSystemServlet.init(InitSystemServlet.java:35)
22:31:01,951 [main] INFO DataDict : 正在初始化DataDict ==> cn.itcast.bbs.dd.DataDict.initialize(DataDict.java:43)
Hibernate: select this_.id_ as id1_2_0_, this_.name_ as name2_2_0_, this_.stringValue_ as stringVa3_2_0_, this_.valueType_ as valueType4_2_0_, this_.isHibernatePO_ as isHibern5_2_0_ from itcast_dataDictItem this_
22:31:02,137 [main] INFO DataDict : DataDict初始化完毕。共有最终数据 0 条,DataItem 0 条 ==> cn.itcast.bbs.dd.DataDict.initialize(DataDict.java:87)
2011-3-10 22:31:03 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
java.lang.IllegalStateException: 在数据字典中没有name=TOPIC_TYPE的数据项!
...全文
382 点赞 收藏 8
写回复
8 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
d4176269 2013-08-28
参照工程文件夹 doc下面的部署说明
回复
guochaobest 2013-08-04
这个问题解决了吗?是什么问题
回复
现在怎么样了?是什么原因啊?
回复
tian_4238 2012-04-26
你好,能联系下你吗?你那个BBS现在很跑起来了吗?可不可以请教下你!谢谢了
回复
dfdsgdsfghf 2012-04-06
我也是这个问题
回复
qishi1 2011-08-18
传智博客ITCASTBBS项目,哪位大侠帮我解决下,在这里先谢谢了28 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Article]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:19,937 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.User]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:19,968 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Forum]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:19,984 [main] WARN CacheFactory : read-only cache configured for mutable class: cn.itcast.bbs.domain.SystemPrivilege ==> org.hibernate.cache.CacheFactory.createCache(CacheFactory.java:43)
21:10:20,015 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.SystemPrivilege]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:20,046 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Attachment]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:20,078 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.BlogLink]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:20,078 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Role]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:20,109 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Category]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:20,187 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Role.systemPrivileges]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:20,234 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Category.forums]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:20,234 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.Article.attachments]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:20,250 [main] WARN EhCacheProvider : Could not find configuration [cn.itcast.bbs.domain.User.roles]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:21,140 [main] WARN EhCacheProvider : Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:21,156 [main] WARN EhCacheProvider : Could not find configuration [org.hibernate.cache.StandardQueryCache]; using defaults. ==> org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:86)
21:10:25,265 [main] WARN ModuleConfigImpl : Overriding ActionForm of name UserActionForm ==> org.apache.struts.config.impl.ModuleConfigImpl.addFormBeanConfig(ModuleConfigImpl.java:350)
31 [main] INFO net.fckeditor.handlers.PropertiesLoader - fckeditor.properties loaded successfully!
47 [main] INFO cn.itcast.bbs.fckeditor.ConnectorServlet - ConnectorServlet successfully initialized!
21:10:25,562 [main] INFO InitSystemServlet : 已注册转换器:UtilDateConverter 与 new GenericEnumConverter(Gender.class) ==> cn.itcast.bbs.web.InitSystemServlet.init(InitSystemServlet.java:35)
21:10:25,593 [main] INFO DataDict : 正在初始化DataDict ==> cn.itcast.bbs.dd.DataDict.initialize(DataDict.java:43)
Hibernate: select this_.id_ as id1_2_0_, this_.name_ as name2_2_0_, this_.stringValue_ as stringVa3_2_0_, this_.valueType_ as valueType4_2_0_, this_.isHibernatePO_ as isHibern5_2_0_ from itcast_dataDictItem this_
21:10:26,062 [main] INFO DataDict : DataDict初始化完毕。共有最终数据 0 条,DataItem 0 条 ==> cn.itcast.bbs.dd.DataDict.initialize(DataDict.java:87)
2011-8-18 21:10:29 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
java.lang.IllegalStateException: 在数据字典中没有name=TOPIC_TYPE的数据项!
回复
ITJava 2011-03-11
明显是少包少文件嘛…
回复
cheniqit1 2011-03-11
启动时候后好多配置文件没有找到
回复
相关推荐
综教楼后的那个坑用双向链表实现 描述   在 LIT 综教楼后有一个深坑,关于这个坑的来历,有很多种不同的说法。其中一种说法是,在很多年以前,这个坑就已经在那里了。这种说法也被大多数人认可,这是因为该坑有一种特别的结构,想要人工建造是有相当困难的。   从横截面图来看,坑底成阶梯状,由从左至右的 1..N 个的平面构成(其中 1 ≤ N ≤ 100,000),如图:    *            * :    *            * :    *            * 8    *    **      * 7    *    **      * 6    *    **      * 5    *    ********* 4 <- 高度    *    ********* 3    ************** 2    ************** 1 平面 |  1  |2|   3    | 每个平面 i 可以用两个数字来描述,即它的宽度 Wi 和高度 Hi,其中 1 ≤ Wi ≤ 1,000、1 ≤ Hi ≤ 1,000,000,而这个坑最特别的地方在于坑底每个平面的高度都是不同的。每到夏天,雨水会把坑填满,而在其它的季节,则需要通过人工灌水的方式把坑填满。灌水点设在坑底位置最低的那个平面,每分钟灌水量为一个单位(即高度和宽度均为 1)。随着水位的增长,水自然会向其它平面扩散,当水将某平面覆盖且水高达到一个单位时,就认为该平面被水覆盖了。   请你计算每个平面被水覆盖的时间。    灌水 水满后自动扩散 | | * | * * | * * * * V * * V * * * * * * .... * *~~~~~~~~~~~~* * ** * *~~~~** : * *~~~~**~~~~~~* * ** * *~~~~** : * *~~~~**~~~~~~* * ** * *~~~~**~~~~~~* *~~~~**~~~~~~* * ********* *~~~~********* *~~~~********* *~~~~********* *~~~~********* *~~~~********* ************** ************** ************** ************** ************** **************    4 分钟后    26 分钟后        50 分钟后    平面 1 被水覆盖     平面 3 被水覆盖    平面 2 被水覆盖输入   输入的第一行是一个整数 N,表示平面的数量。从第二行开始的 N 行上分别有两个整数,分别表示平面的宽度和高度。 输出   输出每个平面被水覆盖的时间。
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2011-03-10 10:49
社区公告
暂无公告