我已经从primefaces github下载了源代码,提取了zip并在pom.xml
中打开了其Intellij
修改类并在Lifecycle>包中选择了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"]}}
是否有很长的依赖关系列表?
答案 0 :(得分:0)
我的原始答案已被主持人删除。我不喜欢我的答案正确且被接受的原因。对于那些想知道答案的人,是因为Primefaces已删除6.3版中的Push,这就是OP出现此错误的原因。他将其从web.xml中删除后,它又可以正常工作。