0 Replies Latest reply on Sep 3, 2007 9:44 AM by Mikael Andersson

    Running 2.0.0 beta1 on jetty question

    Mikael Andersson Master

      Hi,
      can someone give me some advice on how to run seam 2.0.0 beta1 on Jetty.

      I'm currently trying to run it using the maven jetty plugin and get the following exception on each request:

      ERROR (org.jboss.seam.jsf.SeamPhaseListener) - swallowing exception
      java.lang.IllegalStateException: Could not start transaction
       at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:568)
       at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:307)
       at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:142)
       at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
       at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       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.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
       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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
       at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
       at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
       at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
       at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
       at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
       at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
       at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
       at org.mortbay.jetty.Server.handle(Server.java:285)
       at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
       at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
       at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
       at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
       at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368)
       at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
      Caused by: java.lang.UnsupportedOperationException: no transaction
       at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:23)
       at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:563)
       ... 37 more
      
      
      


      Found a wiki page [1] with details about getting seam running on tomcat, and I wonder if there are similar techniques for jetty.

      [1] http://wiki.jboss.org/wiki/Wiki.jsp?page=EmbeddedAndTomcat

      Many thanks,
      Mike