3 Replies Latest reply on Nov 23, 2006 3:38 PM by gavin.king

    Debug Seam using the "jboss-seam-debug.jar"

    toni

      Hi,

      I would like to debug my seam application and have a look inside the contexts etc.

      For that I have added the "jboss-seam-debug.jar" to the "/WEB-INF/lib/" directory of the WAR and inserted the following lines into the "web.xml" descriptor:

      <context-param>
      <param-name>org.jboss.seam.core.init.debug</param-name>
      <param-value>true</param-value>
      </context-param>

      However, as soon as I try to access the webapplicaton the following exception gets thrown:

      Servlet.service() for servlet Faces Servlet threw exception
      java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!

      What do I have to change to make it working?

        • 1. Re: Debug Seam using the
          toni

          For anybody who has the same problem. Actually it says in the documentation that one should include the jar "along with the Facelets", which consist of the following jars: el-api.jar el-ri.jar jsf-facelets.jar

          I think would be good to mention them by name in the docs.

          Anyway, I have a new problem now: I can access the debug.seam page, but the content/type, which is returned is "text/plain" and I don't know how to change it to "html/plain". I added a mime type into the web.xml, but it does not work.

          • 2. Re: Debug Seam using the
            toni

            Well a workaround is creating a file "debugFixed.jsp", which contains two lines:

            <%@page contentType="text/html"%>
            <jsp:forward page="/debug.seam"/>

            • 3. Re: Debug Seam using the
              gavin.king

              This was already fixed in the latest release of Seam.