我们正在从 Jboss4.2 迁移到 Jboss7.1.1。我们在 Web 应用程序中使用 Spring 2.5。在启动我们的应用程序时,我们收到类似 [org.springframework.web.servlet.PageNotFound] (http--0.0.0.0-8080-1) 在 DispatcherServlet 中找不到带有 URI [/jshome.htm] 的 HTTP 请求的映射命名为“普拉克萨”。
我们的 application-servlet.xml 包含以下代码
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd
http://www.directwebremoting.org/schema/spring-dwr-annotations
http://www.directwebremoting.org/schema/spring-dwr-annotations.xsd">
<!--
- The controllers are autodetected POJOs labeled with the @Controller
annotation.
-->
<context:component-scan base-package="com.bodhtree.nexus.controller"/>
<context:annotation-config />
<!-- <context:include-filter type="annotation"
expression="com.bodhtree.nexus.core.system.annotation.SpringBean" />
</context:component-scan> -->
<bean id="helloWorld" class="com.bodhtree.nexus.view.HelloWorld">
<property name="cacheSeconds" value="120" />
</bean>