struts+hibernate遇到的问题

来源:互联网 发布:通讯测试软件 编辑:程序博客网 时间:2024/05/02 18:50

(1)org.apache.jasper.JasperException: Unable to compile class for JSP  

解决办法:myeclipse:
windows -> preference ->JDK -> jvm settings -> classpath 中加入你的JAVA_HOME/lib/tools.jar就可以了.

(2)信息: Parsing configuration file [struts.xml]
2011-8-15 0:11:23 org.apache.struts2.config.Settings getLocale

警告: Settings: Could not parse struts.locale setting, substituting default VM locale
解决办法:在项目src/struts.properties(如果没有就新建一个struts.properties文件)内容如下:

struts.locale=en_GB

(3)今天很纠结,手工配置struts+hibernate出现的问题很多,不是包版本冲突就是莫名奇妙的错误伴随,不过终于搞定了,下面是包的结构:

a.src目录的结构


b.项目外部包的结构