我在特立尼达使用MyFaces。以下SEVERE消息一直在启动:
SEVERE: Both MyFaces and the RI are on your classpath.
Please make sure to use only one of the two JSF-implementations.
我的glassfish-web.xml
中有以下内容:
<glassfish-web-app error-url="">
<class-loader delegate="false"/>
<property name="useMyFaces" value="true"/>
</glassfish-web-app>
以下类路径中的JAR:
antlr-2.7.6.jar* hibernate3.jar*
cglib-2.2.2.jar javassist-3.9.0.GA.jar*
commons-beanutils-1.8.3.jar jta-1.1.jar*
commons-collections-3.1.jar* junit-4.9.jar
commons-collections-3.2.jar myfaces-api-2.1.2.jar
commons-digester-1.8.jar myfaces-commons-utils20-1.0.1.jar
commons-digester3-3.0.jar myfaces-components20-1.0.1.jar
commons-logging-1.1.1.jar myfaces-converters20-1.0.1.jar
commons-validator-1.3.1.jar myfaces-impl-2.1.2.jar
cssparser-0.9.5.jar myfaces-validators20-1.0.1.jar
dom4j-1.6.1.jar* mysql-connector-java-5.0.8-bin.jar
ejb3-persistence.jar* slf4j-api-1.5.10.jar*
hibernate-annotations.jar* slf4j-ext-1.5.10.jar*
hibernate-commons-annotations.jar* slf4j-simple-1.5.10.jar*
hibernate-entitymanager.jar trinidad-api-2.0.0.jar
hibernate-jpa-2.0-api-1.0.0.Final.jar trinidad-build-2.0.0-sources.jar
hibernate-validator-4.2.0.Final.jar trinidad-impl-2.0.0.jar
我不太确定如何根据我已经完成的配置消除SEVERE消息,任何想法都将不胜感激!