2

我试图仅将 gradle 用于 jar 依赖项,这意味着我从构建路径中获取了所有 jar 并像这样编写它:compile 'groupid:artifactid:version'.

现在,当我尝试运行服务器(tomcat 7.0.39)时,我得到了这个:

java.lang.IllegalStateException: Second notification for the same phase in the same request occurred. phaseId.ordinal: 1; phaseId = RESTORE_VIEW 1; More than one org.openfaces.component.validation.ValidatorPhaseListener is found to be registered (2). Check that only one JSF implementation is deployed with your application's classpath, and openfaces.jar is not duplicated in application's and server's libraries.

我不明白我应该做什么以及去哪里看。

有人可以阐明一下吗?

4

1 回答 1

1

您需要做的是运行gradle dependencies以查看依赖关系树。然后搜索有问题的包 - 它应该加倍。您需要排除其中一个冲突的包。是有关依赖项排除的文档。

于 2015-09-01T08:04:43.843 回答