Created attachment 892965 [details] Reproducer Description of problem: If a class which is used as type argument is missing from the deployment, an exception is thrown and the deployment fails. E.g., class Bar missing: public class FooBarProducer { public Foo<Bar> produceFooBar() { return new Foo<Bar>(); } } Result: ... Caused by: org.jboss.weld.exceptions.WeldException: WELD-000830 Unable to load the cache value for the key class reproducer.FooBarProducer at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:73) ... Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.TypeNotPresentException: Type reproducer.Bar not present at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2258) ... Caused by: java.lang.TypeNotPresentException: Type reproducer.Bar not present at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) [rt.jar:1.7.0_17] ... Caused by: java.lang.ClassNotFoundException: reproducer.Bar from [Module "deployment.0d036027-2297-41de-95ae-9d2d1dd562ca.jar:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final-redhat-1] ... Version-Release number of selected component (if applicable): EAP 6.3.0.ER3 How reproducible: Run mvn clean test in the attached reproducer. Actual results: Deployment failure. Expected results: Successful deployment (ignoring the broken class).
This affects WFK 2.6. It will be certified on EAP 6.3 and will contain DeltaSpike 0.7, which contains a component QuartzSchedulerProducer, which should be just ignored on deployment in case Quartz library is not bundled. This bug however causes a deployment failure for any deployment with bundled DeltaSpike Scheduler module. Failed DeltaSpike test: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-60-Weld-DeltaSpike-integration/86/jdk=ibm16,label=(RHEL5%20%7C%7C%20RHEL6)/testReport/org.apache.deltaspike.test.scheduler.custom/CustomSchedulerWarFileTest/org_apache_deltaspike_test_scheduler_custom_CustomSchedulerWarFileTest/
I believe this should have been ON_QA already.
Verified on ER7. Both, the reproducer and the DS tests pass.