讨论区 » AAS-V10企业版 »
v10部署报错,异常为org.jboss.weld.exceptions.DefinitionException
堆栈:
CDI definition failure:WELD-000071:Managed bean with a parameterized bean class must be @Dependent:class org.jclouds.compute.strategy.impl.AdaptingComputeServicestrategies
org.jboss.weld.exceptions.DefinitionException:WELD-000071:Managed bean with a parameterized bean class must be @Dependent:class org.jclouds.compute.strategy.impl.AdaptingComputeservicestrategies
at org.jboss.weld.bean.ManagedBean.checkType(ManagedBean.java:211)
at org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(AbstractBean.java:108)
at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:122)
at org.jboss.weld.bootstrap.BeanDeployer.doAfterBeanDiscovery(BeanDeployer.java:344)
at org.jboss.weld.bootstrap.BeanDeployment.afterBeanDiscovery(BeanDeployment.java:268)
at ora,iboss,weld,bootstrap.Weldstartup,deplovBeans(WeldStartup,iava:467)
解决方案:部署的时候取消勾选cdi或者在部署命令中添加参数:--properties "implicitCdiEnabled=false"