tomcat启动报错。

言月秋 2015-06-15 02:51:56
Dispatcher initialization failed。
严重: Exception starting filter struts2
严重: Error filterStart
严重: Context [/S2SH2] startup failed due to previous errors
严重: Exception starting filter struts2
严重: Error filterStart
严重: Context [/wxy] startup failed due to previous errors。 这是项目中导入的包。
web.xml配置文件。
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext.xml</param-value>
</context-param>

<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>

</web-app>
...全文
185 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
言月秋 2015-06-16
  • 打赏
  • 举报
回复
引用 1 楼 longtian1213 的回复:
你看下tomcat目录中log目录下的localhost.XXXX-XX-XX.log文件有什么错误
现在改来改去就只有一个问题了。严重: Exception starting filter struts2 Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/C:/Users/yan-yueqiu/Workspaces/MyEclipse%208.5/.metadata/.me_tcat/webapps/wxy/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 。我有一点不是很理解,我引用的包的版本是struts-core-2.0.14,怎么会提示我.medadata下struts2-core-2.1.8.1?
S117 2015-06-15
  • 打赏
  • 举报
回复
你看下tomcat目录中log目录下的localhost.XXXX-XX-XX.log文件有什么错误

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧