【问题标题】:Unable to load class warning messages with glassfish3.1.2, primefaces 3.4, maven无法使用 glassfish3.1.2、primefaces 3.4、maven 加载类警告消息
【发布时间】:2013-05-10 13:30:48
【问题描述】:

Maven : Strange ClassNotFoundException of Primefaces library on deploy

大家好!

上面的链接主要描述了我的问题,但由于它没有解决,我有点坚持。所以问题是在我部署应用程序时出现的大量警告消息。我正在使用 Glassfish 3.1.2Maven 2.2.1Primefaces 3.4。就像在提到的帖子中一样,应用程序的功能没有问题,所以除了我的神经之外,这不会影响任何事情:) 我认为这些消息完全没有必要,我真的很想摆脱它们。

下面是加载primefaces依赖的pom.xml

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.2</version>
        </plugin>
    </plugins>
</build>

<dependencies>
    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-api</artifactId>
        <version>6.0</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>hu.mps.invito</groupId>
        <artifactId>invito-ejbs</artifactId>
        <type>ejb</type>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.primefaces</groupId>
        <artifactId>primefaces</artifactId>
        <version>3.4</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.primefaces.extensions</groupId>
        <artifactId>primefaces-extensions</artifactId>
        <version>0.5.1</version>
    </dependency>
    <dependency>
        <groupId>org.primefaces.themes</groupId>
        <artifactId>ui-lightness</artifactId>
        <version>1.0.4</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.1</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>1.3.2</version>
    </dependency>
    <dependency>
        <groupId>commons-fileupload</groupId>
        <artifactId>commons-fileupload</artifactId>
        <version>1.2.1</version>
    </dependency>
</dependencies>

作为一种解决方法,我尝试在 glassfish 管理控制台中为任何 jsf 组件设置日志级别,但没有成功。

非常感谢您!

【问题讨论】:

    标签: maven logging primefaces glassfish


    【解决方案1】:

    好的,我已经找到了此问题的解决方案(或解决方法)。您必须将 Glassfish 中的 javax.enterprise.system.container.web 记录器设置为 SEVERE 级别,这样警告不会出现。

    【讨论】:

      猜你喜欢
      • 2023-03-06
      • 1970-01-01
      • 2017-07-29
      • 2020-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-24
      相关资源
      最近更新 更多