1 Reply Latest reply on Jan 17, 2006 2:29 PM by js8523

    From .jsp -> .xhtml

    rorschach

      I have a small Seam application completed and working using simple .jsps. There's no java code in the pages.

      I'm trying to convert to use the .xhtml extensions to move away from JSPs. I've made the changes in my config files and have it deploying successfully. I can navigate to my opening page, but when I click the commandbutton linked to my action method (all background code and markup on the page is identical from the .jsp) I get the following error:

      09:57:10,806 ERROR [[/seam-registration]] Error calling action method of component with id _tagId1:_tagId2
      javax.faces.FacesException: Error calling action method of component with id _tagId1:_tagId2
      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)
      at javax.faces.component.UICommand.broadcast(UICommand.java:106)
      at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:110)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:184)
      at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      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:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      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(Unknown Source)
      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component
      at org.jboss.seam.Component.newInstance(Component.java:607)
      at org.jboss.seam.Component.newInstance(Component.java:1087)
      at org.jboss.seam.Component.getInstance(Component.java:1038)
      at org.jboss.seam.Component.getInstance(Component.java:1021)
      at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
      at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:130)
      at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41)
      at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
      at com.sun.el.parser.AstValue.invoke(AstValue.java:126)
      at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
      at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
      at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
      ... 25 more
      Caused by: javax.naming.NameNotFoundException: RegistrationAction not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:252)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at org.jboss.seam.Component.instantiate(Component.java:645)


      I've looked extensively at the booking example and still do not understand what I've got configured incorrectly.

        • 1. Re: From .jsp -> .xhtml

           

          Caused by: javax.naming.NameNotFoundException: RegistrationAction not bound


          Probably the most sensible place to start is see that RegistrationAction is being scanned and deployed properly (I know this seams unrelated to the transformation to facelets but..). The best place to look is to compare the output of the jboss-seam booking example in the server log (in jboss-4.0.3SP1/server/default/log/server.log) to you application starting up.

          Hope this helps getting you started.

          Thanks,

          James.