我一直在考虑将应用程序部署到Payara 4.1.1.171的问题。
部署会一直进行到出现异常而失败。
堆栈跟踪如下:
Exception while loading the app : CDI deployment failure:Exception List with 2 exceptions:
Exception 0 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type IterableProvider<ComponentInvocationHandler> with qualifiers @Default
at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject private org.glassfish.api.invocation.InvocationManagerImpl(@Optional IterableProvider<ComponentInvocationHandler>)
at org.glassfish.api.invocation.InvocationManagerImpl.<init>(InvocationManagerImpl.java:91)在轨迹上往下走。
Exception 1 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Logger with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject org.glassfish.api.admin.AdminCommandLock.logger
at org.glassfish.api.admin.AdminCommandLock.logger(AdminCommandLock.java:0)我已经阅读了CDI上的分配和可能的问题解决方案,但目前还没有解决这个问题。
应用程序当前部署在运行它的另一台服务器上,但由于某种奇怪的原因,它不会部署到这台服务器上。我也升级了服务器,也降级了服务器,但都有完全相同的问题。
发布于 2017-05-04 14:24:00
我设法解决了这个问题。这是由我之前打包的自定义线程池执行器服务引起的。此打包包包含glassfish-api库,在类加载过程中导致冲突,删除该库解决了问题。
https://stackoverflow.com/questions/43759948
复制相似问题