问题描述
通过从spring 3.0.0.RELEASE迁移到spring 3.1.0.RELEASE,我看到此错误:
o.s.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/mcbm-web-2.3.0-SNAPSHOT/mcbm/rpc/statistic.rpc] in DispatcherServlet with name 'rpc'.
我看不到可以进行哪些更改以使其正常工作。
我寻找了两个版本之间的不兼容之处,但没有发现太多。通常它们应该兼容。
我的web.xml:
<display-name>MCBM</display-name>
<welcome-file-list>
<welcome-file>indexRedirect.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>mcbm-web</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/com/airbus/mcbm/core/spring/applicationContext-dataSource.xml
classpath:/com/airbus/mcbm/core/spring/applicationContext.xml
classpath:/com/airbus/mcbm/core/spring/applicationContext-core.xml
classpath:/com/airbus/mcbm/web/server/applicationContext-dataSource.xml
classpath:/com/airbus/mcbm/web/server/applicationContext-server.xml
</param-value>
</context-param>
<listener>
<listener-class>com.airbus.mcbm.web.server.util.GwtServletContextListener</listener-class>
</listener>
<servlet>
<servlet-name>rpc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>rpc</servlet-name>
<url-pattern>*.rpc</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
预先感谢您的帮助
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)