2 Replies Latest reply: Jan 7, 2013 9:38 AM by Milan Farkas RSS

Weld 2.0.0.Beta2 - Where is WeldPhaseListener?

Milan Farkas Newbie

Hello, I was trying to migrate from Weld 1.1 to 2.0 in a JSF2.0 app.

 

weld-servlet-core-2.0.0.Beta2.jar!/META-INF/faces-config.xml references org.jboss.weld.jsf.WeldPhaseListener, but it seems it had been removed from weld-core.jar.

 

Any suggestions? Is it a bug?

 

 

Jan 7, 2013 2:40:18 PM com.sun.faces.config.ConfigureListener contextInitialized

INFO: Initializing Mojarra 2.1.16 ( 20121210-2131 https://svn.java.net/svn/mojarra~svn/tags/2.1.16@11156) for context '/[APP_NAME]'

Jan 7, 2013 2:40:18 PM com.sun.faces.spi.InjectionProviderFactory createInstance

INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.

Jan 7, 2013 2:40:19 PM com.sun.faces.config.ConfigureListener contextInitialized

SEVERE: Critical error during deployment:

com.sun.faces.config.ConfigurationException:

  Source Document: jar:file:/[PATH]/WEB-INF/lib/weld-servlet-core-2.0.0.Beta2.jar!/META-INF/faces-config.xml

  Cause: Unable to find class 'org.jboss.weld.jsf.WeldPhaseListener'

    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:273)

    at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)

    at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)

    at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)

    at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)

    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361)

    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.ClassNotFoundException: org.jboss.weld.jsf.WeldPhaseListener

    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701)

    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:247)

    at com.sun.faces.util.Util.loadClass(Util.java:269)

    at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:311)

    at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:240)

    ... 16 more