0 Replies Latest reply on Jan 20, 2010 8:39 AM by wearetherock ok

    Registration example error under Tomcat6

    wearetherock ok Newbie

      T have deployed Registration example in jboss-seam-2.2.0.GA using ant tomcat.deploy command.


      Then I enter http://localhost:8080/jboss-seam-registration/register.seam in web browser is work well, but when i try to click register button it alway throws following exception.


      What wrong in this case, I'm using tomcat-6.0.20 and embedded-jboss-beta3.SP10


      javax.naming.NameNotFoundException: Name jboss-seam-registration is not bound in this Context
           org.apache.naming.NamingContext.lookup(NamingContext.java:770)
           org.apache.naming.NamingContext.lookup(NamingContext.java:153)
           org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
           javax.naming.InitialContext.lookup(InitialContext.java:392)
           org.jboss.seam.Component.instantiateSessionBean(Component.java:1400)
           org.jboss.seam.Component.instantiate(Component.java:1364)
           org.jboss.seam.Component.newInstance(Component.java:2122)
           org.jboss.seam.Component.getInstance(Component.java:2021)
           org.jboss.seam.Component.getInstance(Component.java:1983)
           org.jboss.seam.Component.getInstance(Component.java:1977)
           org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
           org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
           org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148)
           org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51)
           javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
           com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
           org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
           org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
           org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
           org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
           com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
           javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
           com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
           javax.faces.component.UICommand.broadcast(UICommand.java:387)
           javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
           javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
           com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)