6 Replies Latest reply on Jan 26, 2011 10:59 AM by Sitrarasu J

    Need help,about the example registration

    Lin Chen Newbie

      I created a seam web project with jboss developer studio 1.0
      ,jboss 4.2.0 and seam 1.2.AP.
      I copy the source code,jspx files and other xml files into the project folder.
      when i run this project,throw exceptions:



      type Exception report
      
      
      message 
      
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      
      exception 
      
      
      javax.servlet.ServletException: Could not instantiate Seam component: register
      
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
      
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      
      
      root cause 
      
      
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
      
           org.jboss.seam.Component.newInstance(Component.java:1740)
      
           org.jboss.seam.Component.getInstance(Component.java:1643)
      
           org.jboss.seam.Component.getInstance(Component.java:1610)
      
           org.jboss.seam.Component.getInstance(Component.java:1604)
      
           org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
      
           javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
      
           com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
      
           org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
      
           org.apache.el.parser.AstValue.getTarget(AstValue.java:42)
      
           org.apache.el.parser.AstValue.invoke(AstValue.java:127)
      
           org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
      
           org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
      
           javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
      
           com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
      
           javax.faces.component.UICommand.broadcast(UICommand.java:383)
      
           org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
      
           org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
      
           org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329)
      
           com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
      
           com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      
           com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      
      
      root cause 
      
      
      javax.naming.NameNotFoundException: RegisterAction not bound
      
           org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      
           org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
      
           org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      
           org.jnp.server.NamingServer.lookup(NamingServer.java:267)
      
           org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      
           org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
      
           javax.naming.InitialContext.lookup(Unknown Source)
      
           org.jboss.seam.Component.instantiateSessionBean(Component.java:1107)
      
           org.jboss.seam.Component.instantiate(Component.java:1093)
      
           org.jboss.seam.Component.newInstance(Component.java:1736)
      
           org.jboss.seam.Component.getInstance(Component.java:1643)
      
           org.jboss.seam.Component.getInstance(Component.java:1610)
      
           org.jboss.seam.Component.getInstance(Component.java:1604)
      
           org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
      
           javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
      
           com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
      
           org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
      
           org.apache.el.parser.AstValue.getTarget(AstValue.java:42)
      
           org.apache.el.parser.AstValue.invoke(AstValue.java:127)
      
           org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
      
           org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
      
           javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
      
           com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
      
           javax.faces.component.UICommand.broadcast(UICommand.java:383)
      
           org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
      
           org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
      
           org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329)
      
           com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
      
           com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      
           com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      
           org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      
      
      note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA_CP01 logs.
      
      



      Who can help me? thanks very much.