首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >视图-处理程序对"com.sun.facelets.FaceletViewHandler“的引用,它不实现接口javax.faces.application.ViewHandler。

视图-处理程序对"com.sun.facelets.FaceletViewHandler“的引用,它不实现接口javax.faces.application.ViewHandler。
EN

Stack Overflow用户
提问于 2013-02-11 21:34:56
回答 1查看 2K关注 0票数 0

我正在将正常的项目转换为maven项目,所以我对配置有问题。

Maven 3 Seam 2.2 Richfac3.3jsf1.2JBOSS 6

警告-日食信息:

视图-处理程序对"com.sun.facelets.FaceletViewHandler“的引用,它不实现接口javax.faces.application.ViewHandler。

我添加了jsf-facelets和jsf-impl。

faces-config.xml .

com.sun.facelets.FaceletViewHandler MessageResource_de_DE MessageResource_en_US ErrorMessageResource_de_DE de_DE en_US -> en_US ...

pom.xml

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <parent>
        <groupId>de.openmind</groupId>
        <artifactId>openmind</artifactId>
        <version>1.0-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>openmind-war</artifactId>
    <packaging>war</packaging>
    <name>${project.artifactId} : ${project.version} WAR</name>

    ....
    ....

    <dependencies>
        <dependency>
            <groupId>de.openmind</groupId>
            <artifactId>openmind-ejb</artifactId>
            <type>ejb</type>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <artifactId>jxl</artifactId>
                    <groupId>net.sourceforge.jexcelapi</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>de.openmind</groupId>
            <artifactId>openmind-datamodel</artifactId>
            <scope>provided</scope>
        </dependency> 

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam</artifactId>
            <scope>provided</scope>
            <type>ejb</type>
        </dependency>

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam-ui</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>commons-beanutils</groupId>
                    <artifactId>commons-beanutils</artifactId>
                </exclusion>
                <exclusion>
                    <artifactId>jboss-seam-jul</artifactId>
                    <groupId>org.jboss.seam</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam-mail</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam-debug</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam-pdf</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam-remoting</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam-excel</artifactId>
            <exclusions>
                <exclusion>
                    <artifactId>jxl</artifactId>
                    <groupId>net.sourceforge.jexcelapi</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.sun.facelets</groupId>
            <artifactId>jsf-facelets</artifactId>
        </dependency>

        <dependency>
            <groupId>org.richfaces.ui</groupId>
            <artifactId>richfaces-ui</artifactId>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <artifactId>richfaces-api</artifactId>
                    <groupId>org.richfaces.framework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>commons-beanutils</artifactId>
                    <groupId>commons-beanutils</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>${app.context}</groupId>
            <artifactId>richfaces-impl</artifactId>
            <version>3.3.3.Final_FIXED</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.richfaces.framework</groupId>
                    <artifactId>richfaces-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>commons-beanutils</groupId>
                    <artifactId>commons-beanutils</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>${app.context}</groupId>
            <artifactId>tomahawk12</artifactId>
            <version>1.1.10FIXED</version>
        </dependency>

        <dependency>
            <groupId>apache-oro</groupId>
            <artifactId>jakarta-oro</artifactId>
            <version>2.0.8</version>
        </dependency>
        <dependency>
            <groupId>commons-digester</groupId>
            <artifactId>commons-digester</artifactId>
            <version>2.1</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <artifactId>commons-beanutils</artifactId>
                    <groupId>commons-beanutils</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-02-11 21:42:16

尝试在faces-config.xml中添加以下内容:

代码语言:javascript
复制
<application> 
  <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> 
</application>

下面是应用程序的web.xml:

代码语言:javascript
复制
<context-param> 
  <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 
  <param-value>.xhtml</param-value> 
</context-param>

您必须使用".xthml“后缀访问您的网页。如果您仍然有问题,请检查链接!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14821279

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档