我把jb9中的struts升级到1.1版,然后在一个新建的项目中引用struts1.1,运行一个简单的例子,报入下错:StandardContext[/strutsRoot]: Servlet /strutsRoot threw load() exception: javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet
javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:895)
......
StandardWrapperValve[debugjsp]: Servlet.service() for servlet debugjsp threw exception
javax.servlet.ServletException: org/apache/commons/logging/LogFactory
javax.servlet.ServletException: org/apache/commons/logging/LogFactory
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.test$jsp._jspService(test$jsp.java:154)
......
这是什么问题,怎么解决阿?
------解决方法--------------------------------------------------------
先到Javawebstudio中用模板建立一个新的项目,编译通过再拿到JB中试,可检查出你的JB是否已成功升级到1.1版本。参见http://dev.csdn.net/user/kui
------解决方法--------------------------------------------------------
你用的是servlet2.4?
struts1.1应该不支持servlet2.4
如果不是的话,请按照struts1.1的安装说明来配置
------解决方法--------------------------------------------------------
jb9要打补丁的啊