部署到FireFly的JSF异常,标记为inputFile的标记为null的处理程序类 [英] JSF exception deploying to FireFly, tag named inputFile null handler-class

查看:148
本文介绍了部署到FireFly的JSF异常,标记为inputFile的标记为null的处理程序类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习JSF,并且在部署任何项目时遇到问题.我已经安装了以下内容:

I am trying to learn JSF and am having a problem deploying any project. I have installed the following:

Eclipse Kepler版本2
Eclipse的JBoss工具
WildFly 8
Maven 3.2.1
Java JDK 8
mojarra 2.2.6

Eclipse Kepler release 2
JBoss tools for eclipse
WildFly 8
Maven 3.2.1
Java JDK 8
mojarra 2.2.6

我在创建和下载示例项目的JSF项目中遇到了这个问题.当我在Eclipse中将项目部署到WildFly时,它将引发异常:

I am having this problem with JSF projects I create and downloaded sample project. When I deploy the project to WildFly in eclipse it throws the exception:

JBAS014777:   Services which failed to start: service jboss.undertow.deployment.default-server.default-host./Test: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./Test: Failed to start service

WildFly部署文件夹中的Test.war.failed文件具有以下内容:

The Test.war.failed file in the deployment folder of WildFly has the following:

"{\"JBAS014671: Failed services\" => {\"jboss.undertow.deployment.default-server.default-host./Test\" => \"org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./Test: Failed to start service
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: The tag named inputFile from namespace http://xmlns.jcp.org/jsf/html has a null handler-class defined
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: The tag named inputFile from namespace http://xmlns.jcp.org/jsf/html has a null handler-class defined
Caused by: com.sun.faces.config.ConfigurationException: The tag named inputFile from namespace http://xmlns.jcp.org/jsf/html has a null handler-class defined\"}}"

此外,我不知道这是否相关,但是当我在eclipse中打开faces-config.xml文件时,它不会显示包含许多Web示例所显示的所有选项卡的页面.它只有用于图",树"和源"的选项卡.这是因为示例是JSF 2.0,而我正在使用JSF 2.2.6?

Also, I don't know if this is related, but when I open the faces-config.xml file in eclipse it doesn't show the page with all the tabs that the many web examples show. It only has tabs for Diagram, Tree, and Source. Is this because the examples are JSF 2.0 and I am using JSF 2.2.6?

推荐答案

请从依赖项中删除Mojarra. WildFly已经附带了JSF实施,如果您在应用中部署一个,则会遇到此类问题.

Please remove Mojarra from the dependencies. WildFly already ships with an JSF implementation and if you deploy one with your app, you run into such problems.

这篇关于部署到FireFly的JSF异常,标记为inputFile的标记为null的处理程序类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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