WARNING: JSF1091: the mime type was not found for the QcFormDean.jsp file, but wait for its jsf file

I just added jstl-1.2.jar, JSF api and impl jars to my library so that it can work in my jsf xhtml file.

<h:selectOneMenu value="#{qcFormBean.dliStickerValue}">
<f:selectItem itemValue="P" itemLabel="Pass or Not applicable" />
<f:selectItem itemValue="M" itemLabel="FAIL-Mechanical" />
<f:selectItem itemValue="E" itemLabel="FAIL-Electrical" />
<f:selectItem itemValue="C" itemLabel="FAIL-Cosmetic" />
<f:selectItem itemValue="S" itemLabel="FAIL-Software" />
<f:ajax event="change" execute="@this" render="perfbyDliSticker" />
</h:selectOneMenu>

<h:panelGroup id="perfbyDliSticker">
<h:selectOneMenu value="#{qcFormBean.performedByRoleID}"
             rendered="#{!qcFormBean.dliStickerValue eq  'P'}">
<f:selectItem itemValue="A" itemLabel="Always" />                
<f:selectItem itemValue="O" itemLabel="Often" />
<f:selectItem itemValue="S" itemLabel="Seldom" />                
</h:selectOneMenu>

Now, when I try to access the page in my IE, I get a 404 missed error, and I get the following error on Tomcat, and I'm not sure what to do at that moment the error mentions it as a jsp file, and I know I do it as a jsf file, so I'm not sure what to do.

Feb 05, 2014 3:05:50 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource WARNING: JSF1064: Unable to find or maintain resource, /preQcFormDean.xhtml.

Feb 05, 2014 3:05:50 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource : JSF1064: , /preQcFormDean.view.xml.

Feb 05, 2014 3:05:50 PM com.sun.faces.context.ExternalContextImpl getMimeType : JSF1091: /preQcFormDean.jsp mime. , mime web.xml.

web.xml.

        <?xml version="1.0" encoding="UTF-8"?>
   <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="http://java.sun.com/xml/ns/javaee"                       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee                                                  http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" 
   version="3.0">
  <servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<description>State saving method: 'client' or 'server' (default). See JSF   Specification section 2.5.2</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<welcome-file-list>
<welcome-file>index.jsf</welcome-file>
<welcome-file>welcome.jsf</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

jar lib

javax.faces.jar 
jsf-api.jar 
jstl-1.2.jar 
jsf-impl.jar
+4
2

jsf-api.jar jsf-impl.jar. javax.faces.jar. API JSF classpath runtime classpath, .

, JSF 1.x( JAR zip-, /META-INF/MANIFEST.MF ), JSP , , , JSP.

+3

web.xml

<mime-mapping>
    <extension>xhtml</extension>
    <mime-type>application/xml</mime-type>
</mime-mapping>
+6

Source: https://habr.com/ru/post/1525490/


All Articles