1 2 Previous Next 18 Replies Latest reply on Oct 31, 2006 9:27 AM by Ben Kyrlach

    Seam + Ajax4Jsf == Exception?

    Ben Kyrlach Newbie

      I'm trying to get a simple example app that uses ajax4jsf and seam together, but I'm getting a rather odd exception. Here's my xhtml snippet...

      <h:form>
      <h:inputText value="#{schoolListBean.name}">
      <a:support event="onkeyup" reRender="rep"/>
      </h:inputText>
      <a:outputPanel id="rep">
      #{schoolListBean.name}
      </a:outputPanel>
      </h:form>

      Here's the bean...

      @Stateful
      @Name("schoolListBean")
      @Scope(ScopeType.SESSION)
      @Interceptors(SeamInterceptor.class)
      public class SchoolListBeanImpl implements SchoolListBean, Serializable
      {
      @PersistenceContext(unitName="schoolDatabase")
      EntityManager em;

      private String name;

      public List getSchools()
      {
      return em.createNativeQuery("SELECT * FROM WEBFRONT.COLLEGE_SEARCH_ENTITY WHERE COLLEGE_NAME LIKE '?%'").setParameter(1, name).getResultList();
      }

      public void setName(String name)
      {
      System.out.println("Setting name: " + name);
      this.name = name;
      }
      public String getName()
      {
      System.out.println("Getting name: " + this.name);
      return this.name;
      }

      @Remove @Destroy
      public void remove()
      {

      }
      }

      Everything works, but after every ajax request, the following is thrown to the console...

      09:54:04,390 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
      java.lang.IllegalStateException: No active application context
      at org.jboss.seam.core.Pages.instance(Pages.java:298)
      at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:47)
      at org.ajax4jsf.framework.ajax.AjaxStateManager.saveSerializedView(AjaxStateManager.java:83)
      at org.ajax4jsf.framework.ajax.AjaxContext.saveViewState(AjaxContext.java:417)
      at org.ajax4jsf.framework.renderer.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:103)
      at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:390)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)

      I'm completly at a loss. Anyone have any ideas?

        • 1. Re: Seam + Ajax4Jsf == Exception?
          Gavin King Master

          You need to use the 1.0.3 release of Ajax4JSF, the version that ships in the booking demo app in Seam 1.1.

          • 2. Re: Seam + Ajax4Jsf == Exception?
            Ben Kyrlach Newbie

            I'll try the version that comes with the nightly build of seam1.1 that I downloaded. The version I'm using now is 1.0.3 from the ajax4jsf website.

            • 3. Re: Seam + Ajax4Jsf == Exception?
              Ben Kyrlach Newbie

              Changin the jars from ajax4jsf 1.0.3 to the ones in the booking example in the jboss-seam-CVS.20061023 version of seam results in the following exceptions...

              10:40:48,771 ERROR [PhaseListenerManager] Exception in PhaseListener RESTORE_VIEW(1) afterPhase
              java.lang.NullPointerException
              at org.jboss.seam.core.Manager.destroyNestedContexts(Manager.java:419)
              at org.jboss.seam.core.Manager.removeCurrentConversationAndDestroyNestedContexts(Manager.java:412)
              at org.jboss.seam.core.Manager.discardTemporaryConversation(Manager.java:391)
              at org.jboss.seam.core.Manager.storeConversation(Manager.java:320)
              at org.jboss.seam.jsf.AbstractSeamPhaseListener.storeAnyConversationContext(AbstractSeamPhaseListener.java:74)
              at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:108)
              at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
              at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:180)
              at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:65)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
              at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)
              10:40:53,804 INFO [STDOUT] Getting name: null
              10:40:53,804 INFO [STDOUT] Getting name: null
              10:40:53,820 ERROR [STDERR] Oct 27, 2006 10:40:53 AM com.sun.facelets.FaceletViewHandler handleRenderException
              SEVERE: Error Rendering View[/schools/school_list.xhtml]
              java.lang.NullPointerException
              at org.jboss.seam.core.Manager.destroyNestedContexts(Manager.java:419)
              at org.jboss.seam.core.Manager.removeCurrentConversationAndDestroyNestedContexts(Manager.java:412)
              at org.jboss.seam.core.Manager.discardTemporaryConversation(Manager.java:391)
              at org.jboss.seam.core.Manager.storeConversation(Manager.java:320)
              at org.jboss.seam.jsf.AbstractSeamPhaseListener.storeAnyConversationContext(AbstractSeamPhaseListener.java:74)
              at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:48)
              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:601)
              at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
              at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:383)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
              at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)
              10:40:53,836 INFO [STDOUT] Getting name: null
              10:40:53,851 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
              java.lang.NullPointerException
              at org.jboss.seam.core.Manager.destroyNestedContexts(Manager.java:419)
              at org.jboss.seam.core.Manager.removeCurrentConversationAndDestroyNestedContexts(Manager.java:412)
              at org.jboss.seam.core.Manager.discardTemporaryConversation(Manager.java:391)
              at org.jboss.seam.core.Manager.storeConversation(Manager.java:320)
              at org.jboss.seam.jsf.AbstractSeamPhaseListener.storeAnyConversationContext(AbstractSeamPhaseListener.java:74)
              at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:89)
              at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
              at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:390)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
              at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)

              • 4. Re: Seam + Ajax4Jsf == Exception?
                Ben Kyrlach Newbie

                Also, the ajax stuff no longer works. When I enter something into the h:inputText, an alert comes up saying that the view state could not be restored and asks me if I wish to refresh the page. :(

                • 5. Re: Seam + Ajax4Jsf == Exception?
                  Gavin King Master

                  How about, instead of haphazardly messing about with random nightly builds of things, you try downloading Seam 1.1.BETA1, and looking at the booking example, which shows you exactly how to use Ajax4JSF with Seam.

                  • 6. Re: Seam + Ajax4Jsf == Exception?
                    Ben Kyrlach Newbie

                    Gavin, I apologize if I've done something wrong. I've proceeded to follow your advice and download the beta version of seam from the downloads page. I've already analyzed the booking example and I'm trying to get something simple that I can understand set up.

                    After changing all the jars in my project to use the ones from the beta I just downloaded, I get the original exception I posted.

                    11:16:31,240 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
                    java.lang.IllegalStateException: No active application context
                    at org.jboss.seam.core.Pages.instance(Pages.java:298)
                    at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:47)
                    at org.ajax4jsf.framework.ajax.AjaxStateManager.saveSerializedView(AjaxStateManager.java:83)
                    at org.ajax4jsf.framework.ajax.AjaxContext.saveViewState(AjaxContext.java:417)
                    at org.ajax4jsf.framework.renderer.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:103)
                    at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
                    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:390)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
                    at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                    at java.lang.Thread.run(Thread.java:595)

                    If you don't have time to look at this, that's okay. I'm just trying to learn how to integrate the two technologies together.

                    Thanks,

                    Ben.

                    • 7. Re: Seam + Ajax4Jsf == Exception?
                      Gavin King Master

                      And have you run the booking example and checked that it works in your environment, and then adjusted all your configuration to exactly match the booking example, and then if the problem didn't go away, did you try to reproduce the problem by making a small change to the booking example?

                      If not, then ... ?

                      • 8. Re: Seam + Ajax4Jsf == Exception?
                        Ben Kyrlach Newbie

                        I installed JBoss 4.0.5.GA with the EJB3 profile selected, updated the build.properties in the root folder for the JBoss SEAM 1.1.0.beta to point to the JBoss folder, and then ran "ant deploy" in the /examples/booking folder with JBoss started up. When it deployes, it throws the following exception... (please keep in mind this is all clean installs of everything)

                        11:12:06,431 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=jboss-seam-booking.ejb3
                        java.lang.TypeNotPresentException: Type javax.ejb.Interceptor not present
                        at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98)
                        at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)
                        at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
                        at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:351)
                        at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:175)
                        at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
                        at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
                        at java.lang.Class.initAnnotationsIfNecessary(Class.java:2998)
                        at java.lang.Class.getAnnotation(Class.java:2958)
                        at org.jboss.aop.annotation.AnnotationElement.getVisibleAnnotation(AnnotationElement.java:88)
                        at org.jboss.aop.Advisor.resolveAnnotation(Advisor.java:318)
                        at org.jboss.ejb3.ProxyDeployer.initializeRemoteBindingMetadata(ProxyDeployer.java:125)
                        at org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:109)
                        at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:415)
                        at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:397)
                        at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:378)
                        at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
                        at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
                        at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
                        at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
                        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
                        at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                        at $Proxy0.create(Unknown Source)
                        at org.jboss.system.ServiceController.create(ServiceController.java:330)
                        at org.jboss.system.ServiceController.create(ServiceController.java:273)
                        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                        at $Proxy37.create(Unknown Source)
                        at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:429)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                        at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                        at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                        at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:74)
                        at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
                        at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
                        at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                        at $Proxy38.create(Unknown Source)
                        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                        at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                        at $Proxy6.deploy(Unknown Source)
                        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                        at $Proxy0.start(Unknown Source)
                        at org.jboss.system.ServiceController.start(ServiceController.java:417)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                        at $Proxy4.start(Unknown Source)
                        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:585)
                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                        at $Proxy5.deploy(Unknown Source)
                        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                        at org.jboss.Main.boot(Main.java:200)
                        at org.jboss.Main$1.run(Main.java:490)
                        at java.lang.Thread.run(Thread.java:595)
                        Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: javax.ejb.Interceptor
                        at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
                        at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
                        at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
                        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
                        at java.lang.Class.forName0(Native Method)
                        at java.lang.Class.forName(Class.java:242)
                        at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)
                        ... 133 more

                        This issue seems to be related to the specification change for EJB3 that deprecates the "@Interceptor" annotation for "@Interceptors". However, I can't really be certain, as the booking example seems to configure it's interceptors via "ejb-jar.xml". How would you like me to proceed?

                        • 9. Re: Seam + Ajax4Jsf == Exception?
                          Gavin King Master

                          I think you are not really using 1.1.0.BETA. More likely you got an old version of the seam jar from somewhere.

                          • 10. Re: Seam + Ajax4Jsf == Exception?
                            Samuel Mendenhall Apprentice

                            I was under the impression that using the "JBoss 4.0.5.GA with the EJB3 profile" will still NOT work with SEAM. In fact, the JBoss download area says that to use SEAM you still must install JBoss using the xxxx-installer.jar.

                            I couldn't find the newest installer right off hand, but there definitely is a beta 3 jems installer for 4.0.5. The beta 2 is for 4.0.4. I have the newest JEMS installer and 4.0.5 with SEAM working beautifully over here.

                            • 11. Re: Seam + Ajax4Jsf == Exception?
                              Gavin King Master

                               

                              I was under the impression that using the "JBoss 4.0.5.GA with the EJB3 profile" will still NOT work with SEAM.


                              It works fine.

                              In fact, the JBoss download area says that to use SEAM you still must install JBoss using the xxxx-installer.jar.


                              Right, the "ejb3 profile" only exists in the installer. Nowhere else.


                              I couldn't find the newest installer right off hand, but there definitely is a beta 3 jems installer for 4.0.5.


                              This is the thing to use. That is the only installer for 4.0.5.

                              • 12. Re: Seam + Ajax4Jsf == Exception?
                                Ben Kyrlach Newbie

                                Doh! That's what I get for having the seam 1.0.1 beta _and_ the seam 1.1.0 beta on my machine at the same time. My bad.

                                However, after succesfully deploying the correct booking application on JBoss 4.0.5.GA I was able to reproduce my error in the booking application with one caveat. Both apps (mine and the booking) will only throw the exception when STATE_SAVING_METHOD is set to server.

                                Sorry for the earlier confusion. Any ideas?

                                • 13. Re: Seam + Ajax4Jsf == Exception?
                                  Ben Kyrlach Newbie

                                  The relavent stack trace (get's thrown from both apps with state_saving_method = server)

                                  15:54:41,914 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
                                  java.lang.IllegalStateException: No active application context
                                  at org.jboss.seam.core.Pages.instance(Pages.java:298)
                                  at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:47)
                                  at org.ajax4jsf.framework.ajax.AjaxStateManager.saveSerializedView(AjaxStateManager.java:83)
                                  at org.ajax4jsf.framework.ajax.AjaxContext.saveViewState(AjaxContext.java:417)
                                  at org.ajax4jsf.framework.renderer.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:103)
                                  at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
                                  at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
                                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                  at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                  at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                  at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
                                  at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                                  at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                                  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                                  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                                  at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                                  at java.lang.Thread.run(Thread.java:595)

                                  • 14. Re: Seam + Ajax4Jsf == Exception?
                                    Gavin King Master

                                    I've reproduced this in the booking app.

                                    However, we STRONGLY recommend the use of client-side JSF state saving with Seam.

                                    1 2 Previous Next