0 Replies Latest reply on Nov 23, 2010 7:49 PM by Cloves Almeida

    Seam Faces not working with JBAS6 CR1

    Cloves Almeida Newbie
      The exception is thrown when accessing any JSF page.

      The environment:
        - JBoss AS 6.0.0.CR1
        - Weld 1.1.0.Beta2 (the one with de AS dist)
        - Weld Extensions 1.0.0-SNAPSHOT
        - Seam Persistence 3.0.0-SNAPSHOT

      The stack trace:

      exception

      javax.servlet.ServletException: object is not an instance of declaring class
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
           org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)

      root cause

      java.lang.IllegalArgumentException: object is not an instance of declaring class
           sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           java.lang.reflect.Method.invoke(Method.java:597)
           org.jboss.seam.persistence.PersistenceContextProxyHandler.invoke(PersistenceContextProxyHandler.java:68)
           org.jboss.seam.persistence.ManagedPersistenceContextProxyHandler.invoke(ManagedPersistenceContextProxyHandler.java:126)
           $Proxy745.getProvider(Unknown Source)
           sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           java.lang.reflect.Method.invoke(Method.java:597)
           org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
           org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:102)
           org.jboss.weld.proxies.SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-ville$lookbook$producers$PersistenceProducer$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$persistence$SeamManaged()]_$$_WeldClientProxy.getProvider(SMPC-org$jboss$seam$persistence$ManagedPersistenceContextExtension-ville$lookbook$producers$PersistenceProducer$producerField[@javax$enterprise$context$ConversationScoped()@javax$enterprise$inject$Produces()@javax$persistence$PersistenceUnit(name=,unitName=)@org$jboss$seam$persistence$SeamManaged()]_$$_WeldClientProxy.java)
           org.jboss.seam.persistence.PersistenceContextsImpl.beforeRender(PersistenceContextsImpl.java:131)
           org.jboss.seam.persistence.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$cjalmeida$opt$jboss-6$0$0$20101110-CR1$server$default$deploy$lookbook$war"-ManagedBean-class_org$jboss$seam$persistence$PersistenceContextsImpl_$$_WeldClientProxy.beforeRender(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$cjalmeida$opt$jboss-6$0$0$20101110-CR1$server$default$deploy$lookbook$war"-ManagedBean-class_org$jboss$seam$persistence$PersistenceContextsImpl_$$_WeldClientProxy.java)
           org.jboss.seam.faces.transaction.TransactionPhaseListener.handleTransactionsBeforePhase(TransactionPhaseListener.java:103)
           org.jboss.seam.faces.transaction.TransactionPhaseListener.beforePhase(TransactionPhaseListener.java:84)
           org.jboss.seam.faces.event.DelegatingPhaseListener.beforePhase(DelegatingPhaseListener.java:56)
           com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95)
           com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
           org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)