4 Replies Latest reply on Nov 12, 2006 9:52 AM by Martin Ekstrom

    Invalid invocation of local interface - seam registration ex

    Martin Ekstrom Newbie

      Hi

      I'm getting an exception when trying to access a jsp-page (test.seam), its the code from the seam message example.

      The exception is:
      javax.faces.el.EvaluationException: Cannot get value for expression '#{messageList.rowCount==0}'

      Caused by: javax.naming.NamingException: Could not dereference object : Invalid invocation of local interface]
      ..
      Caused by: java.lang.ClassCastException: org.jboss.ejb3.stateful.StatefulLocalProxyFactory

      I have followed the seam registration/message example in order to configure my enviroment.

      I have a MyEarApp.ear, a busniess.jar and a web-war.war.

      My component gets registred:
      Component: messageManager, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: se.smhi.voyage.ejb.MessageManagerBean, JNDI: RattenApp/MessageManagerBean/local

      My component is slightly different from the seam example:
      MyEarApp/#{ejbName}/local



      My JBoss installation should contain EJB3 (4.0.5 GA)

      How do I configure the jboss-app.xml that resides in myEarApp/meta-inf?
      If I put in something like: seam.jboss.org:loader=MyEarApp , I would receieve an error upon JBOSS startupp...


      Whats might be missing?
      Thanks in advance!


        • 1. Re: Invalid invocation of local interface - seam registratio
          Martin Ekstrom Newbie

          A typo:

          The name of the ear is RattenApp, not MyEarApp.

          • 2. Re: Invalid invocation of local interface - seam registratio
            Pete Muir Master

            Did you install JBoss from the installer and select the ejb3 profile. When you post stacktrace please post the whole thing and use the [ code ] tags. This makes it much easier to help you :)

            • 3. Re: Invalid invocation of local interface - seam registratio
              Martin Ekstrom Newbie

              I think I choose default instead of ejb3. I'm gonna reinstall with all option...

              • 4. Re: Invalid invocation of local interface - seam registratio
                Martin Ekstrom Newbie

                I have now re-installed JBoss using the installer and selected ejb3-profile. But the error still appears.

                [2006-11-12 15:46:45,828 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
                javax.faces.el.EvaluationException: Cannot get value for expression '#{messageList.rowCount==0}'
                at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
                at org.jboss.seam.actionparam.ActionParamValueBinding.getValue(ActionParamValueBinding.java:83)
                at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
                at javax.faces.webapp.UIComponentTag.isSuppressed(UIComponentTag.java:884)
                at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313)
                at org.apache.jsp.test_jsp._jspx_meth_h_outputText_0(test_jsp.java:174)
                at org.apache.jsp.test_jsp._jspx_meth_f_view_0(test_jsp.java:132)
                at org.apache.jsp.test_jsp._jspService(test_jsp.java:96)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
                at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
                at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
                at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
                at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
                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.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
                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)
                Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: messageManager
                at org.jboss.seam.Component.newInstance(Component.java:1578)
                at org.jboss.seam.Component.getInstance(Component.java:1492)
                at org.jboss.seam.Component.getInstance(Component.java:1466)
                at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1538)
                at org.jboss.seam.Component.getInstance(Component.java:1482)
                at org.jboss.seam.Component.getInstance(Component.java:1466)
                at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
                at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
                at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:574)
                at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
                at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)
                at org.apache.commons.el.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:154)
                at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
                ... 46 more
                Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.ejb.EJBException: Invalid invocation of local interface]
                at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150)
                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                at javax.naming.InitialContext.lookup(InitialContext.java:351)
                at org.jboss.seam.Component.instantiateSessionBean(Component.java:911)
                at org.jboss.seam.Component.instantiate(Component.java:898)
                at org.jboss.seam.Component.newInstance(Component.java:1574)
                ... 58 more
                Caused by: javax.ejb.EJBException: Invalid invocation of local interface
                at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:60)
                at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
                at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
                at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
                ... 64 more
                Caused by: java.lang.ClassCastException: org.jboss.ejb3.stateful.StatefulLocalProxyFactory
                at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:51)
                ... 67 more]