org.jboss.weld.resources.spi.ResourceLoadingException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if the version of resteasy is using is the same JBoss is using. To find it out, search for resteasy-jaxrs* in JBoss/Wildfly directory and at your pom.xml.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • IoC 容器冲突
    via GitHub by redhatlinux10
    ,
    • org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class com.liferay.cdi.portlet.bridge.CDIBeanManagerUtil at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:167)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.bootstrap.BeanDeployer.loadWeldClass(BeanDeployer.java:116)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:79)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:135)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:184)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:63)[jboss-as-weld-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_40] at java.lang.Thread.run(Thread.java:724)[rt.jar:1.7.0_40] Caused by: java.lang.NoClassDefFoundError: javax/enterprise/context/spi/Contextual at java.lang.Class.getDeclaredFields0(Native Method)[rt.jar:1.7.0_40] at java.lang.Class.privateGetDeclaredFields(Class.java:2387)[rt.jar:1.7.0_40] at java.lang.Class.getDeclaredFields(Class.java:1796)[rt.jar:1.7.0_40] at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:105)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:102)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.util.reflection.SecureReflectionAccess.runAndWrap(SecureReflectionAccess.java:63)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.util.reflection.SecureReflections.getDeclaredFields(SecureReflections.java:102)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:155)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:121)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:59)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:358) at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184) at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153) at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69) at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:396) at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:163)[weld-core-1.1.10.Final.jar:2012-10-12 10:00] ... 11 more Caused by: java.lang.ClassNotFoundException: javax.enterprise.context.spi.Contextual from [Module "deployment.jsf2-cdi-portlet.war:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196)[jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)[jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)[jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)[jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)[jboss-modules.jar:1.2.0.Final-redhat-1] ... 29 more

    Users with the same issue

    andyglick
    7 times, last one,
    Andreas Häber
    1 times, last one,
    MoYapro
    2 times, last one,
    Reich
    8 times, last one,
    Unknown visitor1 times, last one,
    81 more bugmates