我试图在Payara(Forkfish)服务器上运行PrimeFaces Showcase。我希望它能在localhost:8080
中运行,但失败了。
以下是我遇到的错误:
Error occurred during deployment:
Exception while loading the app : CDI definition failure:
Exception List with 1 exceptions:
Exception 0 :
javax.enterprise.event.ObserverException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.jboss.weld.security.NewInstanceAction.run(NewInstanceAction.java:33)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)
at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:78)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:96)
at org.jboss.weld.injection.Method
....
msg.seeServerLog
另一方面,我在jetty服务器上运行它并且工作正常。 我使用了命令: mvn clean - 清除目标文件夹中的临时文件 mvn包 - 创建war文件(在目标目录下) mvn jetty:在本地运行showcase项目
环境/平台:
Ubuntu 16.04 LTS
Java Version "1.8.0_131"
Eclipse Version: Oxygen Release (4.7.0)
Payara 4.1.173