4 Replies Latest reply on Jan 21, 2009 7:42 PM by I need a real name

    Desabling debug page

    Marcos Sousa Newbie

      Hello Community,


      I want to desable Seam debug page, I tried to set debug to false but doesn't work:


      <core:init debug="false" />



      How to desable debug page?


      Thanks,

        • 1. Re: Desabling debug page
          di pas Newbie

          Hi Marcos


          in components.xml


          <core:init debug="true" jndi-pattern="myApp/#{ejbName}/local"/>



          and if you work with Facelets then configure for production mode in web.xml:


              <context-param>
                  <param-name>facelets.DEVELOPMENT</param-name>
                  <param-value>false</param-value>
              </context-param>



          and of course in pages.xml you have to define all Exceptions.


          see chapter 5.3.2 of reference guide.


               

          • 2. Re: Desabling debug page
            Pete Muir Master

            Remove jboss-seam-debug.jar from your deployed archive as well.

            • 3. Re: Desabling debug page
              Marcos Sousa Newbie

              Pete Muir wrote on Apr 05, 2008 05:34 PM:


              Remove jboss-seam-debug.jar from your deployed archive as well.


              I don't have this Jar in my classpath. I just have: jboss-seam.jar, jboss-seam-ioc.jar and jboss-seam-ui.jar integrated with Spring 2.5 and Hibernate.


              Is it possible to get the exception stack trace to send to my page using seam exception handers? Because I've page that give the option to the user to send a e-mail to support wich the exception's trace.



              <exception class="java.lang.Exception">
                    <end-conversation/>
                    <redirect view-id="/error.jsp">
                        <message>Database access failed</message>
                    </redirect>
              </exception>


              • 4. Re: Desabling debug page
                I need a  real name Newbie

                Hellow,


                i don't wanna desable seam debug page but i want change this page and put page that i created and throw exceptions on this page.


                Somebody know how to?