2 Replies Latest reply on Jan 22, 2009 4:47 PM by gholmer

    can't get debugger page to come up

    gholmer
      Hi, new Seam user here.  Our environment is NetBeans and GlassFish under
      Java 6; not using seam-gen.

      I've been able to get a simple app to come up with ICEfaces and Facelets
      working correctly, but the one thing I can't seem to get is the debug
      page.  I've set the following things:

      The app is packaged as an EAR; jboss-seam-debug.jar is in WEB-INF/lib of
      the deployed web app.

      WEB-INF contains a components.xml containing this line:

      <core:init jndi-pattern="java:comp/env/phoenix/#{ejbName}/local"            
      debug="true"/>

      WEB-INF/web.xml contains a context parameter setting
      "facelets.DEVELOPMENT" to "true".

      The Seam filter is in place with a URL pattern of "*.jsp" (I am
      accessing my test page as "/shop/mainContentHero.jsp").

      Have I missed something?  When I try to access "/shop/debug.jsp", my
      browser tells me "Firefox has detected that the server is redirecting
      the request for this address in a way that will never complete", and the
      log says "Problem in renderResponse: /debug.xhtml Not Found in
      ExternalContext as a Resource".
        • 1. Re: can't get debugger page to come up
          norman

          I don't know if it will help, but here's something related in the icefaces forums.

          • 2. Re: can't get debugger page to come up
            gholmer
            In case this helps someone else, it looks like there were two things we were missing:

            1) In web.xml, we added this context param (we see the debug page at "debug.jsp"):

            <context-param>
              <param-name>com.icesoft.faces.actionURLSuffix</param-name>
              <param-value>.jsp</param-value>
            </context-param>

            2) In faces-config.xml, make sure to use ICEfaces' D2DSeamFaceletViewHandler (not D2DFaceletViewHandler).