3 Replies Latest reply on Nov 14, 2009 4:16 AM by Arbi Sookazian

    SeamResourceServlet and SeamListener Problem

    Michael Strong Newbie

      I have read other posts that included references to these two classes; however, I was unable to find my situation (at least not recognize the similarity).

      I have a very simple, JBoss Tools wizard generated Seam Project (my first).  I have a simple Seam entity bean wizard generated bean, along with it's accompanying xhtml page and session bean.  I added a couple more fields to the entity and updated the corresponding xhtml.

      When I click publish and start in the JBoss Server tab, the deployment fails because these two classes cannot be found or loaded.

      15:28:24,984 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.jboss.seam.servlet.SeamResourceServlet
      15:28:24,998 INFO  [TomcatDeployment] deploy, ctxPath=/RaisedInAmerica
      15:28:25,048 ERROR [[/RaisedInAmerica]] Error configuring application listener of class org.jboss.seam.servlet.SeamListener
      java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamListener

      I do not want to bludgeon you with a bunch of context that you do NOT want.  So, please, let me know what else about my project you'd like to see to help me sleuth this.

      Again, searching all of Google and this forum have left me still stuck.

      Thank you, in advance, to any kind readers who want to give an old dog trying to learn new tricks a nudge.



        • 1. Re: SeamResourceServlet and SeamListener Problem
          Arbi Sookazian Master

          This question is more appropriate in the JBoss Tools Users forum (Max Andersen).

          If I were you, I'd seam-gen your project skeleton, revengr your db schema into JPA entities and run ant explode.  JBoss AS 4 or 5 is recommended as well.

          But the reason you're seeing this:

          java.lang.ClassNotFoundException: org.jboss.seam.servlet.SeamListener

          is most likely b/c you're missing the JAR which has SeamListener class in it.  so check your sever's classpath...

          The seam JARs should be in the EAR/WAR that's deployed to your EE 5 app server (or servlet container, in the case of Tomcat or Jetty).

          build and deploy the booking example for experimentation/learning purpose...

          • 2. Re: SeamResourceServlet and SeamListener Problem
            Michael Strong Newbie

            Thank you, very much, for the helpful reply.

            I would be happy to take the approach you are recommending.  Thank you.

            Most of the tutorials I'm finding each have their own happy path, and they're all a little different.  Most are also using some earlier revision of things, and it seems (no pun intended) that ever revision of Seam or JBoss changes the recommended approach.

            Is there, perhaps, a tutorial that you'd recommend that shows the sequence you're recommending?

            Thanks, again.


            • 3. Re: SeamResourceServlet and SeamListener Problem
              Arbi Sookazian Master

              Read the Dan Allen or Michael Yuan Seam books...