警告:JSF1091:找不到文件QcFormDean.jsp的mime类型,但请等待其jsf文件 [英] WARNING: JSF1091: No mime type could be found for file QcFormDean.jsp, but wait its a jsf file

查看:152
本文介绍了警告:JSF1091:找不到文件QcFormDean.jsp的mime类型,但请等待其jsf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将jstl-1.2.jar,JSF api和impl jar添加到了我的库中,以便可以在我的jsf xhtml文件中使用.

I just added jstl-1.2.jar, JSF api, and impl jars to my library so that this could work on 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>

现在,当我尝试访问IE上的页面时,我收到404缺失错误,并且在Tomcat上收到以下错误,我不知道该怎么办,该错误将其提到为jsp文件,我知道我将其作为jsf文件制作,所以我不确定该怎么办.

Now when i try to access the page on my IE i get a 404 missing error and i get the following error on Tomcat and i am not sure what to do at this point the error mentions it as a jsp file and i know i am making this as a jsf file so i am not sure what to do.

2014年2月5日下午3:05:50 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource 警告:JSF1064:无法找到或提供资源/preQcFormDean.xhtml.

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

2014年2月5日下午3:05:50 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource警告:JSF1064:无法找到或提供资源/preQcFormDean.view.xml.

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

2014年2月5日下午3:05:50 com.sun.faces.context.ExternalContextImpl getMimeType 警告:JSF1091:找不到文件/preQcFormDean.jsp的mime类型.要解决此问题,请将mime类型的映射添加到应用程序web.xml.

Feb 05, 2014 3:05:50 PM com.sun.faces.context.ExternalContextImpl getMimeType WARNING: JSF1091: No mime type could be found for file /preQcFormDean.jsp. To resolve this, add a mime-type mapping to the applications web.xml.

这是我的web.xml文件.

and this is my web.xml file.

        <?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>

这是lib文件夹中的jar文件

and here are the jar files in the lib folder

javax.faces.jar 
jsf-api.jar 
jstl-1.2.jar 
jsf-impl.jar

推荐答案

摆脱jsf-api.jarjsf-impl.jar.它们已经由单个javax.faces.jar表示.现在,您实际上已经有效地使用了两个不同的JSF API,并将它们包含在webapp的运行时类路径中,这只会导致所有颜色的类冲突.

Get rid of jsf-api.jar and jsf-impl.jar. They are already represented by the single javax.faces.jar. Right now you're effectively having two different JSF APIs and impls in webapp's runtime classpath which would only lead to class conflicts in all colors.

这些文件实际上是旧版JSF 1.x版本的可能性很大(您首先要使用zip工具提取JAR文件,然后阅读/META-INF/MANIFEST.MF文件以获取确切的版本详细信息),该文件使用了古老的JSP作为默认版本视图技术至少可以解释为什么默认情况下所有视图都被解释为JSP.

Big chance that those are actually of legacy JSF 1.x version (you'd first extract the JAR file with a zip tool and then read the /META-INF/MANIFEST.MF file for the exact version detail) which used the ancient JSP as default view technology which in turn at least explains why all your views were by default interpreted as JSP.

这篇关于警告:JSF1091:找不到文件QcFormDean.jsp的mime类型,但请等待其jsf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆