Web项目未在Websphere 9中启动,BValInterceptor的CDI相关异常
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Web项目未在Websphere 9中启动,BValInterceptor的CDI相关异常相关的知识,希望对你有一定的参考价值。
我正在尝试在Websphere 9中启动Web项目,但是我获得了运行时异常CDI注意:该项目正在WAS 8.5中运行,但是在迁移到WAS 9之后,我遇到了这个问题。
我还使用了这些属性来禁用CDI。但是,我仍然无法启动Web应用程序。com.ibm.ws.cdi.enableImplicitBeanArchives =假和com.ibm.ws.cdi.enableCDI =假
任何建议或帮助将不胜感激。
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R com.ibm.ws.exception.RuntimeError: java.lang.RuntimeException: com.ibm.ws.cdi.CDIRuntimeException: com.ibm.ws.cdi.CDIDeploymentRuntimeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Validator with qualifiers @Default
at injection point [UnbackedAnnotatedField] @Inject private org.apache.bval.cdi.BValInterceptor.validator
at org.apache.bval.cdi.BValInterceptor.validator(BValInterceptor.java:0)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:809)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1421)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2232)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:654)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5398)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5614)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:668)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:612)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1311)
[1/27/20 12:28:24:827 EST] 000000eb SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at java.lang.reflect.Method.invoke(Method.java:508)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:83)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at java.lang.reflect.Method.invoke(Method.java:508)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1263)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at java.security.AccessController.doPrivileged(AccessController.java:666)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1257)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1096)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1350)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1243)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:246)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:608)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at org.apache.struts.action.RequestProcessor.process(Unknown Source)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at org.apache.struts.action.ActionServlet.process(Unknown Source)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1234)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:778)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:477)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
[1/27/20 12:28:24:828 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:78)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1386)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:195)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at org.apache.struts.action.RequestProcessor.doForward(Unknown Source)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown Source)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown Source)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown Source)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at org.apache.struts.action.RequestProcessor.process(Unknown Source)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at org.apache.struts.action.ActionServlet.process(Unknown Source)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1234)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:778)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:477)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:970)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:517)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:338)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:961)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:294)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
[1/27/20 12:28:24:829 EST] 000000eb SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R Caused by: java.lang.RuntimeException: com.ibm.ws.cdi.CDIRuntimeException: com.ibm.ws.cdi.CDIDeploymentRuntimeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Validator with qualifiers @Default
at injection point [UnbackedAnnotatedField] @Inject private org.apache.bval.cdi.BValInterceptor.validator
at org.apache.bval.cdi.BValInterceptor.validator(BValInterceptor.java:0)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1187)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:786)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R ... 89 more
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R Caused by: com.ibm.ws.cdi.CDIRuntimeException: com.ibm.ws.cdi.CDIDeploymentRuntimeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Validator with qualifiers @Default
at injection point [UnbackedAnnotatedField] @Inject private org.apache.bval.cdi.BValInterceptor.validator
at org.apache.bval.cdi.BValInterceptor.validator(BValInterceptor.java:0)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.ws.cdi.classic.CDIRuntimeImpl.start(CDIRuntimeImpl.java:404)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.ws.cdi.classic.CDIRuntimeImpl.stateChanged(CDIRuntimeImpl.java:488)
[1/27/20 12:28:24:830 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl$ComparableDeployedObjectListener.stateChanged(ApplicationMgrImpl.java:2551)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1164)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1497)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:310)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1087)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R ... 90 more
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R Caused by: com.ibm.ws.cdi.CDIDeploymentRuntimeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Validator with qualifiers @Default
at injection point [UnbackedAnnotatedField] @Inject private org.apache.bval.cdi.BValInterceptor.validator
at org.apache.bval.cdi.BValInterceptor.validator(BValInterceptor.java:0)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at com.ibm.ws.cdi.classic.CDIRuntimeImpl.applicationStarting(CDIRuntimeImpl.java:333)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at com.ibm.ws.cdi.classic.CDIRuntimeImpl.start(CDIRuntimeImpl.java:391)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R ... 96 more
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Validator with qualifiers @Default
at injection point [UnbackedAnnotatedField] @Inject private org.apache.bval.cdi.BValInterceptor.validator
at org.apache.bval.cdi.BValInterceptor.validator(BValInterceptor.java:0)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:359)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at org.jboss.weld.bootstrap.Validator.validateInterceptor(Validator.java:556)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at org.jboss.weld.bootstrap.ConcurrentValidator$2.doWork(ConcurrentValidator.java:85)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at org.jboss.weld.bootstrap.ConcurrentValidator$2.doWork(ConcurrentValidator.java:83)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at java.util.concurrent.FutureTask.run(FutureTask.java:277)
[1/27/20 12:28:24:831 EST] 000000eb SystemErr R at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
[1/27/20 12:28:24:832 EST] 000000eb SystemErr R at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[1/27/20 12:28:24:832 EST] 000000eb SystemErr R at java.lang.Thread.run(Thread.java:812)
我可以自己解决此问题。这是我使用的方法:
我的工作区中有以下项目:MyApp-Ear,MyApp-Web,MyApp-Jar。
我试图部署MyApp-Ear文件,但是我在MyApp-Web文件中添加了CDI配置。尽管CDI配置位于Web模块中,但Websphere仍无法识别它。因此,后来,我在耳模中添加了配置,然后像魔术一样工作。我在配置标记内的maven-ear-plugin中使用了Maven Manfiest条目。
<configuration>
--------------
<archive>
<manifestEntries>
<Enable-Implicit-Bean-Archive>false</Enable-Implicit-Bean-Archive>
<Enable-CDI>false</Enable-CDI>
</manifestEntries>
</archive>
</configuration>
以上是关于Web项目未在Websphere 9中启动,BValInterceptor的CDI相关异常的主要内容,如果未能解决你的问题,请参考以下文章
websphere启动报/WEB-INF/applicationContext-orm- hibernate.xml]: Could not resolve placeholder 'hibe
WebSphere 项目启动出错java.lang.ClassNotFoundException
所有 XAMPP 服务器均未在 Mac OS 10.9.2 上启动
Eclipse 远程调试 WebSphere Application Server (WAS)