2 Replies Latest reply on Dec 19, 2007 5:06 PM by maxandersen

    First steps with Seam using JBoss tools

      Hi all,

      I've got Eclipse 3.3 with WTP 2.0 and JBoss Tools 2.0.0.GA installed on my 32-bit Ubuntu 7.04 machine. I've also set up jboss 4.0.5 with the jems installer using the non-clustered ejb3 profile and jboss-seam-1.2.1.GA.

      I used seam-gen to validate the jboss runtime by creating a project with 'seam setup', then 'seam new-project' and finally 'seam explode'. I get the sample application running with absolutely no problems.

      Now, I want to use Eclipse and JBoss Tools to work on the generated sample. I tried the following:

      1) Importing the project into Eclipse with "File-> Import -> General -> Existing Projects into Workspace".

      This seems to work, but it does not add/detect the "Seam Web Project" nature. As a result, I can only use the Ant view to compile/explode the project and can not use "Add and Remove Projects..." to add the project to the JBoss Server instance I have in the IDE. Of course, the project is deployed by the ant script and I can run it, but I want to use the full integration.

      2) Create the sample from scratch, from within Eclipse with "File -> New -> Seam Web Project".

      I use the same 4.0 server runtime which I know that works, and the "Dynamic Web Project with Seam 1.2" configuration (with no modifications). I change nothing in the defaults of the wizard, except create an HSQL database connection profile (otherwise the wizard will not complete).

      When I try to access the application URL, I get an endless loop of:

      12:34:40,604 ERROR [ExceptionFilter] uncaught exception
      javax.servlet.ServletException: javax/el/ELException
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)

      Doesn't JBoss Tools uses seam-gen behind the scenes? Why does the generated application not work?

        • 1. Re: First steps with Seam using JBoss tools
          amitev

          What is the root cause. Is it

          java.lang.NoClassDefFoundError: javax/el/ELException
           com.sun.facelets.tag.AbstractTagLibrary.addTagHandler(AbstractTagLibrary.java:469)
           com.sun.facelets.tag.jstl.core.JstlCoreLibrary.<init>(JstlCoreLibrary.java:32)
           com.sun.facelets.tag.jstl.core.JstlCoreLibrary.<clinit>(JstlCoreLibrary.java:27)


          ?

          • 2. Re: First steps with Seam using JBoss tools
            maxandersen

            What is the underlying exception ? The original cause ?

            note: we had to fix bugs in seam-gen for 1.2.1 to have it work correctly not sure if this is one of them; those bugfixes are in the 1.2.1_AP branch of seam.