Извините за неопределенный заголовок, но трудно быть более конкретным.
Используемая платформа: Eclipse Helios, Tomcat 6, Maven 2.2.1
Предыстория / проблема: Я выполняю пилотный проект по переходу с JSF 1.2 на JSF2.Сервер запускается нормально и загружает преобразованную страницу входа в систему и при этом подключается к компоненту.Однако, когда форма входа в систему отправлена, она никогда не достигает bean-компонента и вместо этого идет 404 и не оставляет никаких следов.Страница, на которую он должен перейти, сама по себе не является вопросом о том, чтобы не перейти на другую страницу, вы можете просто нажать клавишу F5, и она возвращается с запросом имени пользователя и пароля.Я не могу понять, почему он идет 404.
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_5.xsd"
id="YourWebappID" version="2.5">
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>
/WEB-INF/faces-config-logic.xml,
/WEB-INF/ap-faces-config.xml,
/WEB-INF/bup-faces-config.xml,
/WEB-INF/bup-faces-config-logic.xml,
/WEB-INF/qt-faces-config.xml,
/WEB-INF/bs-faces-config.xml,
/WEB-INF/bs-faces-config-logic.xml,
/WEB-INF/fp/fp-faces-config-controller.xml,
/WEB-INF/fp/fp-faces-config-service.xml,
/WEB-INF/fp/fp-faces-config-dao.xml,
/WEB-INF/fp/fp-navigation-rules.xml,
/WEB-INF/pm/pm-faces-config-controller.xml,
/WEB-INF/pm/pm-faces-config-service.xml,
/WEB-INF/pm/pm-faces-config-dao.xml,
/WEB-INF/pm/pm-navigation-rules.xml,
/WEB-INF/rp/rp-faces-config-controller.xml,
/WEB-INF/rp/rp-faces-config-service.xml,
/WEB-INF/rp/rp-faces-config-dao.xml,
/WEB-INF/rp/rp-navigation-rules.xml,
/WEB-INF/ap/ap-faces-config-controller.xml,
/WEB-INF/ap/ap-faces-config-service.xml,
/WEB-INF/ap/ap-faces-config-dao.xml,
/WEB-INF/ap/ap-navigation-rules.xml
</param-value>
<description>
JSF config files beside faces-config.xml
</description>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
<description>
State saving method: "client" or "server" (= default)
See
JSF Specification 2.5.2
</description>
</context-param>
<context-param>
<param-name>org.apache.shale.view.VIEW_CONTROLLER_MAPPER</param-name>
<param-value>com.wmdata.raindance.ap.ui.RDViewControllerMapper</param-value>
</context-param>
<!-- Rest -->
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>true</param-value>
</context-param>
<!-- Rest -->
<context-param>
<param-name>resteasy.servlet.mapping.prefix</param-name>
<param-value>/resteasy</param-value>
</context-param>
<!-- Rest -->
<context-param>
<param-name>resteasy.resource.method-interceptors</param-name>
<param-value>
org.jboss.resteasy.core.ResourceMethodSecurityInterceptor
</param-value>
</context-param>
<!-- Resource location directory of Birt resources used to locate images -->
<context-param>
<param-name>BIRT_RESOURCE_PATH</param-name>
<param-value>image/default</param-value>
</context-param>
<!--filter> <filter-name>SessionFilter</filter-name> <filter-class>com.wmdata.raindance.portal.auth.SessionFilter</filter-class>
</filter -->
<listener>
<listener-class>com.wmdata.raindance.portal.config.InitApplication</listener-class>
</listener>
<listener>
<listener-class>com.wmdata.raindance.portal.menu.PGMenuFactory</listener-class>
</listener>
<listener>
<listener-class>com.wmdata.raindance.portal.config.InitAP</listener-class>
</listener>
<!-- Rest -->
<listener>
<listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
</listener>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Streamdoc</servlet-name>
<servlet-class>com.wmdata.raindance.servlets.Streamdoc</servlet-class>
</servlet>
<servlet>
<servlet-name>StreamAppendix</servlet-name>
<servlet-class>com.wmdata.raindance.servlets.StreamAppendix</servlet-class>
</servlet>
<servlet>
<servlet-name>Movedoc</servlet-name>
<servlet-class>com.wmdata.raindance.servlets.Movedoc</servlet-class>
</servlet>
<servlet>
<servlet-name>GetTicket</servlet-name>
<servlet-class>com.wmdata.raindance.portal.auth.GetTicket</servlet-class>
</servlet>
<servlet>
<servlet-name>ExtRepositoryReportRequest</servlet-name>
<servlet-class>com.wmdata.raindance.bup.servlets.ExtRepositoryReportRequest</servlet-class>
</servlet>
<servlet>
<servlet-name>PurchaseCommission</servlet-name>
<servlet-class>com.wmdata.raindance.servlets.PurchaseCommission</servlet-class>
</servlet>
<servlet>
<servlet-name>BirtResourceServlet</servlet-name>
<servlet-class>com.wmdata.raindance.bup.birt.BirtResourceServlet</servlet-class>
</servlet>
<!-- Rest -->
<servlet>
<servlet-name>Resteasy</servlet-name>
<servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
</servlet>
<!-- Use extensions mapping for Faces servlet -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<!-- Application servlets -->
<servlet-mapping>
<servlet-name>Streamdoc</servlet-name>
<url-pattern>/rdservlets/Streamdoc</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>StreamAppendix</servlet-name>
<url-pattern>/rdservlets/StreamAppendix</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Movedoc</servlet-name>
<url-pattern>/rdservlets/Movedoc</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>GetTicket</servlet-name>
<url-pattern>/rdservlets/GetTicket</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ExtRepositoryReportRequest</servlet-name>
<url-pattern>/rdservlets/ExtRepositoryReportRequest</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>PurchaseCommission</servlet-name>
<url-pattern>/rdservlets/PurchaseCommission</url-pattern>
</servlet-mapping>
<!-- Rest -->
<servlet-mapping>
<servlet-name>Resteasy</servlet-name>
<url-pattern>/resteasy/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>BirtResourceServlet</servlet-name>
<url-pattern>/rdservlets/BirtResourceServlet</url-pattern>
</servlet-mapping>
<session-config>
<!-- 30 minutes -->
<session-timeout>30</session-timeout>
</session-config>
<!-- Specifies which files the web app shall look for as default -->
<!-- when no file has been specified in the URL -->
<welcome-file-list id="default">
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
</welcome-file-list>
<!-- <error-page>
Handle all exceptions in the portal application
<exception-type>java.lang.Throwable</exception-type>
<location>/portal/noauth/showError.jsp</location>
</error-page> -->
<!-- JSP Component Tag library from Bording -->
<taglib>
<taglib-uri>http://java.agetor.com/jspc</taglib-uri>
<taglib-location>/WEB-INF/jspc.tld</taglib-location>
</taglib>
<!-- Agetor Tag library, may only be used in Anskaffningsportalen -->
<taglib>
<taglib-uri>http://java.agetor.com/agetor</taglib-uri>
<taglib-location>/WEB-INF/inside.tld</taglib-location>
</taglib>
<!-- Another mapping used by Agetor Control Center -->
<taglib>
<taglib-uri>/inside.tld</taglib-uri>
<taglib-location>/WEB-INF/inside.tld</taglib-location>
</taglib>
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>
/META-INF/elfunctions.taglib.xml
</param-value>
</context-param>
</web-app>