[jboss-user] [JBoss Seam] - Caused by: javax.faces.el.EvaluationException: javax.ejb.EJB

dnewdawgs do-not-reply at jboss.com
Fri Oct 19 18:38:02 EDT 2007


@Stateful
@Name("registerNewMember")
public class RegisterNewMemberAction
    implements RegisterNewMember
{
    @PersistenceContext
    EntityManager em; 
    //@Resource
    //SessionContext ctx;
    @In
    Context sessionContext;
    @In(create=true)
    @Out
    NewMember newMember;
    
    @In
    FacesMessages facesMessages;
    
    @In Identity identity;

    @Begin(nested=true, pageflow="newuser") 
    public void startRegister() {
    }
}



@Entity
@Name("newMember")
@Table(name="tbluser")
public class NewMember implements Serializable
{
   @Id
    String birthday;

   
    public String getBirtday()
   {
      return birthday;
   }
   public void setBirthday(String birthday)
   {
      this.birthday = birthday;
   }
  
}


<pageflow-definition
	xmlns="http://jboss.com/products/seam/pageflow"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation=
	    "http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd"
 	name="newuser">
    <start-state name="start">
        
    </start-state>
    
    <page name="verifyAge" view-id="/newuser/verifyAge.xhtml">
        
        
    

    <page name="acceptRules" view-id="/newuser/acceptRules.xhtml"
          no-conversation-view-id="/newuser/verifyAge.xhtml">
        
        
        
    
  
    <page name="register" view-id="/newuser/register.xhtml"
          no-conversation-view-id="/newuser/acceptRules.xhtml">
        
        
        
            
        
     
   
    <page name="complete" view-id="/newuser/complete.xhtml"
          no-conversation-view-id="/newuser/verifyAge.xhtml">
        <end-conversation/>
        
    
    
</pageflow-definition>


 Don't have an account?  
                <h:commandLink action="#{registerNewMember.startRegister}">Create Account</h:commandLink>



I then get this error 




#{registerNewMember.startRegister}: javax.ejb.EJBTransactionRolledbackException
javax.faces.FacesException: #{registerNewMember.startRegister}: javax.ejb.EJBTransactionRolledbackException
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
        at javax.faces.component.UICommand.broadcast(UICommand.java:383)
        at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
        at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
        at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
        at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
        at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
        at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.faces.el.EvaluationException: javax.ejb.EJBTransactionRolledbackException
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
        ... 43 more


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097133#4097133

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097133



More information about the jboss-user mailing list