重建 PrimeFaces jar 文件(缺少 PushServlet)
Rebuilding PrimeFaces jar file (missing PushServlet)
我已经从 primefaces github 下载了源代码,解压缩并在 Intellij
中打开了它的 pom.xml
修改了 class 并在 Lifecycle > package 中选择了 Run'primefaces[package]'
,因为它显然在目标文件夹中创建了 primefaces-6.3-SNAPSHOT.jar
。
日志显示构建过程成功,但是当我将 jar 文件添加为库时,我的项目的工件不会部署,但出现以下异常:
[2018-10-10 12:51:29,281] Artifact SERP2ANT: Error during artifact deployment. See server log for details.
[2018-10-10 12:51:29,282] Artifact SERP2ANT: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./SERP2.UndertowDeploymentInfoService" => "java.lang.ClassNotFoundException: org.primefaces.push.PushServlet from [Module \"deployment.SERP2ANT.war\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException: org.primefaces.push.PushServlet from [Module \"deployment.SERP2ANT.war\" from Service Module Loader]"},"WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available." => {"Services that were unable to start:" => ["jboss.undertow.deployment.default-server.default-host./SERP2"],"Services that may be the cause:" => ["jboss.clustering.web.route.default-server","jboss.iiop-openjdk.poa-service.rootpoa","jboss.txn.service.remote","jboss.undertow.deployment.default-server.default-host./SERP2","jboss.xts.handlers","org.wildfly.clustering.cache.default-service-provider-registry.ejb","org.wildfly.clustering.cache.default-service-provider-registry.web","org.wildfly.clustering.cache.group.ejb.passivation","org.wildfly.clustering.cache.group.hibernate.entity","org.wildfly.clustering.cache.group.hibernate.local-query","org.wildfly.clustering.cache.group.hibernate.timestamps","org.wildfly.clustering.cache.group.server.client-mappings","org.wildfly.clustering.cache.group.server.default","org.wildfly.clustering.cache.group.web.client-mappings","org.wildfly.clustering.cache.group.web.default-server","org.wildfly.clustering.cache.group.web.passivation","org.wildfly.clustering.cache.registry.ejb.passivation","org.wildfly.clustering.cache.registry.server.default","org.wildfly.clustering.cache.registry.web.passivation","org.wildfly.clustering.cache.registry-entry.ejb.passivation","org.wildfly.clustering.cache.registry-entry.hibernate.entity","org.wildfly.clustering.cache.registry-entry.hibernate.local-query","org.wildfly.clustering.cache.registry-entry.hibernate.timestamps","org.wildfly.clustering.cache.registry-entry.server.client-mappings","org.wildfly.clustering.cache.registry-entry.server.default","org.wildfly.clustering.cache.registry-entry.web.client-mappings","org.wildfly.clustering.cache.registry-entry.web.default-server","org.wildfly.clustering.cache.registry-entry.web.passivation","org.wildfly.clustering.cache.registry-factory.ejb.passivation","org.wildfly.clustering.cache.registry-factory.hibernate.entity","org.wildfly.clustering.cache.registry-factory.hibernate.local-query","org.wildfly.clustering.cache.registry-factory.hibernate.timestamps","org.wildfly.clustering.cache.registry-factory.server.client-mappings","org.wildfly.clustering.cache.registry-factory.server.default","org.wildfly.clustering.cache.registry-factory.web.client-mappings","org.wildfly.clustering.cache.registry-factory.web.default-server","org.wildfly.clustering.cache.registry-factory.web.passivation","org.wildfly.clustering.cache.service-provider-registry.ejb.client-mappings","org.wildfly.clustering.cache.service-provider-registry.ejb.passivation","org.wildfly.clustering.cache.service-provider-registry.hibernate.entity","org.wildfly.clustering.cache.service-provider-registry.hibernate.local-query","org.wildfly.clustering.cache.service-provider-registry.hibernate.timestamps","org.wildfly.clustering.cache.service-provider-registry.server.client-mappings","org.wildfly.clustering.cache.service-provider-registry.server.default","org.wildfly.clustering.cache.service-provider-registry.web.client-mappings","org.wildfly.clustering.cache.service-provider-registry.web.default-server","org.wildfly.clustering.cache.service-provider-registry.web.passivation","org.wildfly.clustering.command-dispatcher-factory.ejb","org.wildfly.clustering.command-dispatcher-factory.hibernate","org.wildfly.clustering.command-dispatcher-factory.local","org.wildfly.clustering.command-dispatcher-factory.server","org.wildfly.clustering.command-dispatcher-factory.web","org.wildfly.clustering.default-command-dispatcher-factory","org.wildfly.clustering.group.hibernate","org.wildfly.clustering.group.server","org.wildfly.clustering.group.web","org.wildfly.clustering.infinispan.cache.ejb.passivation","org.wildfly.clustering.infinispan.cache.hibernate.entity","org.wildfly.clustering.infinispan.cache.hibernate.local-query","org.wildfly.clustering.infinispan.cache.hibernate.timestamps","org.wildfly.clustering.infinispan.cache.server.client-mappings","org.wildfly.clustering.infinispan.cache.server.default","org.wildfly.clustering.infinispan.cache.store.hibernate.local-query","org.wildfly.clustering.infinispan.cache.store.hibernate.timestamps","org.wildfly.clustering.infinispan.cache.store.server.default","org.wildfly.clustering.infinispan.cache.store.web.passivation","org.wildfly.clustering.infinispan.cache.web.client-mappings","org.wildfly.clustering.infinispan.cache.web.default-server","org.wildfly.clustering.infinispan.cache.web.passivation","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query.expiration","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query.locking","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query.memory","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query.transaction","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps.expiration","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps.locking","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps.memory","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps.transaction","org.wildfly.clustering.infinispan.cache-configuration.server.client-mappings","org.wildfly.clustering.infinispan.cache-configuration.server.default","org.wildfly.clustering.infinispan.cache-configuration.server.default.expiration","org.wildfly.clustering.infinispan.cache-configuration.server.default.locking","org.wildfly.clustering.infinispan.cache-configuration.server.default.memory","org.wildfly.clustering.infinispan.cache-configuration.server.default.transaction","org.wildfly.clustering.infinispan.cache-configuration.web.client-mappings","org.wildfly.clustering.infinispan.cache-configuration.web.default-server","org.wildfly.clustering.infinispan.cache-configuration.web.passivation","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.expiration","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.locking","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.memory","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.transaction","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.write","org.wildfly.clustering.infinispan.cache-container.server","org.wildfly.clustering.infinispan.cache-container.web","org.wildfly.clustering.infinispan.cache-container-configuration.server","org.wildfly.clustering.infinispan.cache-container-configuration.server.transport","org.wildfly.clustering.infinispan.cache-container-configuration.web","org.wildfly.clustering.infinispan.cache-container-configuration.web.transport","org.wildfly.clustering.infinispan.default-cache.ejb","org.wildfly.clustering.infinispan.default-cache.web","org.wildfly.clustering.infinispan.default-cache-configuration.server","org.wildfly.clustering.infinispan.default-cache-configuration.web"]}}
我需要找到一长串依赖项吗?
我原来的回答被版主删了。我不喜欢我的答案是正确的并且被接受的答案。对于那些想知道答案是因为 Primefaces 在 6.3 版中删除了 Push 的人,这就是 OP 收到此错误的原因。他将其从 web.xml 中删除后,它再次起作用。
我已经从 primefaces github 下载了源代码,解压缩并在 Intellij
中打开了它的 pom.xml
修改了 class 并在 Lifecycle > package 中选择了 Run'primefaces[package]'
,因为它显然在目标文件夹中创建了 primefaces-6.3-SNAPSHOT.jar
。
日志显示构建过程成功,但是当我将 jar 文件添加为库时,我的项目的工件不会部署,但出现以下异常:
[2018-10-10 12:51:29,281] Artifact SERP2ANT: Error during artifact deployment. See server log for details.
[2018-10-10 12:51:29,282] Artifact SERP2ANT: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./SERP2.UndertowDeploymentInfoService" => "java.lang.ClassNotFoundException: org.primefaces.push.PushServlet from [Module \"deployment.SERP2ANT.war\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException: org.primefaces.push.PushServlet from [Module \"deployment.SERP2ANT.war\" from Service Module Loader]"},"WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available." => {"Services that were unable to start:" => ["jboss.undertow.deployment.default-server.default-host./SERP2"],"Services that may be the cause:" => ["jboss.clustering.web.route.default-server","jboss.iiop-openjdk.poa-service.rootpoa","jboss.txn.service.remote","jboss.undertow.deployment.default-server.default-host./SERP2","jboss.xts.handlers","org.wildfly.clustering.cache.default-service-provider-registry.ejb","org.wildfly.clustering.cache.default-service-provider-registry.web","org.wildfly.clustering.cache.group.ejb.passivation","org.wildfly.clustering.cache.group.hibernate.entity","org.wildfly.clustering.cache.group.hibernate.local-query","org.wildfly.clustering.cache.group.hibernate.timestamps","org.wildfly.clustering.cache.group.server.client-mappings","org.wildfly.clustering.cache.group.server.default","org.wildfly.clustering.cache.group.web.client-mappings","org.wildfly.clustering.cache.group.web.default-server","org.wildfly.clustering.cache.group.web.passivation","org.wildfly.clustering.cache.registry.ejb.passivation","org.wildfly.clustering.cache.registry.server.default","org.wildfly.clustering.cache.registry.web.passivation","org.wildfly.clustering.cache.registry-entry.ejb.passivation","org.wildfly.clustering.cache.registry-entry.hibernate.entity","org.wildfly.clustering.cache.registry-entry.hibernate.local-query","org.wildfly.clustering.cache.registry-entry.hibernate.timestamps","org.wildfly.clustering.cache.registry-entry.server.client-mappings","org.wildfly.clustering.cache.registry-entry.server.default","org.wildfly.clustering.cache.registry-entry.web.client-mappings","org.wildfly.clustering.cache.registry-entry.web.default-server","org.wildfly.clustering.cache.registry-entry.web.passivation","org.wildfly.clustering.cache.registry-factory.ejb.passivation","org.wildfly.clustering.cache.registry-factory.hibernate.entity","org.wildfly.clustering.cache.registry-factory.hibernate.local-query","org.wildfly.clustering.cache.registry-factory.hibernate.timestamps","org.wildfly.clustering.cache.registry-factory.server.client-mappings","org.wildfly.clustering.cache.registry-factory.server.default","org.wildfly.clustering.cache.registry-factory.web.client-mappings","org.wildfly.clustering.cache.registry-factory.web.default-server","org.wildfly.clustering.cache.registry-factory.web.passivation","org.wildfly.clustering.cache.service-provider-registry.ejb.client-mappings","org.wildfly.clustering.cache.service-provider-registry.ejb.passivation","org.wildfly.clustering.cache.service-provider-registry.hibernate.entity","org.wildfly.clustering.cache.service-provider-registry.hibernate.local-query","org.wildfly.clustering.cache.service-provider-registry.hibernate.timestamps","org.wildfly.clustering.cache.service-provider-registry.server.client-mappings","org.wildfly.clustering.cache.service-provider-registry.server.default","org.wildfly.clustering.cache.service-provider-registry.web.client-mappings","org.wildfly.clustering.cache.service-provider-registry.web.default-server","org.wildfly.clustering.cache.service-provider-registry.web.passivation","org.wildfly.clustering.command-dispatcher-factory.ejb","org.wildfly.clustering.command-dispatcher-factory.hibernate","org.wildfly.clustering.command-dispatcher-factory.local","org.wildfly.clustering.command-dispatcher-factory.server","org.wildfly.clustering.command-dispatcher-factory.web","org.wildfly.clustering.default-command-dispatcher-factory","org.wildfly.clustering.group.hibernate","org.wildfly.clustering.group.server","org.wildfly.clustering.group.web","org.wildfly.clustering.infinispan.cache.ejb.passivation","org.wildfly.clustering.infinispan.cache.hibernate.entity","org.wildfly.clustering.infinispan.cache.hibernate.local-query","org.wildfly.clustering.infinispan.cache.hibernate.timestamps","org.wildfly.clustering.infinispan.cache.server.client-mappings","org.wildfly.clustering.infinispan.cache.server.default","org.wildfly.clustering.infinispan.cache.store.hibernate.local-query","org.wildfly.clustering.infinispan.cache.store.hibernate.timestamps","org.wildfly.clustering.infinispan.cache.store.server.default","org.wildfly.clustering.infinispan.cache.store.web.passivation","org.wildfly.clustering.infinispan.cache.web.client-mappings","org.wildfly.clustering.infinispan.cache.web.default-server","org.wildfly.clustering.infinispan.cache.web.passivation","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query.expiration","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query.locking","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query.memory","org.wildfly.clustering.infinispan.cache-configuration.hibernate.local-query.transaction","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps.expiration","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps.locking","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps.memory","org.wildfly.clustering.infinispan.cache-configuration.hibernate.timestamps.transaction","org.wildfly.clustering.infinispan.cache-configuration.server.client-mappings","org.wildfly.clustering.infinispan.cache-configuration.server.default","org.wildfly.clustering.infinispan.cache-configuration.server.default.expiration","org.wildfly.clustering.infinispan.cache-configuration.server.default.locking","org.wildfly.clustering.infinispan.cache-configuration.server.default.memory","org.wildfly.clustering.infinispan.cache-configuration.server.default.transaction","org.wildfly.clustering.infinispan.cache-configuration.web.client-mappings","org.wildfly.clustering.infinispan.cache-configuration.web.default-server","org.wildfly.clustering.infinispan.cache-configuration.web.passivation","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.expiration","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.locking","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.memory","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.transaction","org.wildfly.clustering.infinispan.cache-configuration.web.passivation.write","org.wildfly.clustering.infinispan.cache-container.server","org.wildfly.clustering.infinispan.cache-container.web","org.wildfly.clustering.infinispan.cache-container-configuration.server","org.wildfly.clustering.infinispan.cache-container-configuration.server.transport","org.wildfly.clustering.infinispan.cache-container-configuration.web","org.wildfly.clustering.infinispan.cache-container-configuration.web.transport","org.wildfly.clustering.infinispan.default-cache.ejb","org.wildfly.clustering.infinispan.default-cache.web","org.wildfly.clustering.infinispan.default-cache-configuration.server","org.wildfly.clustering.infinispan.default-cache-configuration.web"]}}
我需要找到一长串依赖项吗?
我原来的回答被版主删了。我不喜欢我的答案是正确的并且被接受的答案。对于那些想知道答案是因为 Primefaces 在 6.3 版中删除了 Push 的人,这就是 OP 收到此错误的原因。他将其从 web.xml 中删除后,它再次起作用。