Maven : Strange ClassNotFoundException of Primefaces library on deploy
大家好!
上面的链接主要描述了我的问题,但是由于它还没有解决,我有点被这个问题所困扰。因此,问题在于在部署应用程序时出现的大量警告消息。我使用的是Glassfish 3.1.2、Maven 2.2.1和PrimeFaces3.4。就像上面提到的文章一样,应用程序的功能没有问题,所以这除了我的神经没有任何影响:)我认为这些消息是完全没有必要的,我真的很想摆脱它们。
下面是加载素数面依赖项的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组件设置日志级别,但没有任何结果。
非常感谢您提前!
发布于 2013-05-15 07:15:10
好的,我找到了这个问题的解决方案(或解决办法)。您必须将Glassfish中的javax.enterprise.system.container.web记录器设置为严重级别,这样才不会出现警告。
https://stackoverflow.com/questions/16483487
复制相似问题