Seems to be a classloader problem. If I use the built-in CDI/WELD module it works.
I get a similar exception when I try to bundle the JSF implementation (Mojarra 2.2) in my WAR.
java.lang.NoClassDefFoundError: javax/faces/application/ApplicationFactory [...]
As soon as I remove it from my WAR file and put it directly into the server's lib directory it starts working. I'm not very familiar with classloading. Shouldn't it be possible to ship a WAR file with WELD and/or JSF included?
|