2 Replies Latest reply on Jan 22, 2007 12:33 PM by hstang

    can't find debug.xhtml

      For some reason, I cannot get debug.xhtml to work. Note, I had it working before, but after doing some tweaks to my application, it won't find it--gives a 404.

      The app runs fine. jboss-seam-debug.jar is definitely in WEB-INF/lib. I see this in my log:

      2007-01-22 12:12:39,447 INFO
      [org.apache.myfaces.config.FacesConfigurator] Reading config
      jar:file:/E:/Dev/jboss-4.0.5.GA/server/default/./deploy/sa.ear/sa.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
      


      When I enter the URL [http://localhost:8080/sa/debug.seam] it gives a 404, and with the following log:

      2007-01-22 12:22:50,015 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter] Filter start request processing at 1/22/07 12:22 PM for uri: /sa/debug.seam
      2007-01-22 12:22:50,015 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter] Filter request output to XML
      2007-01-22 12:22:50,015 DEBUG [org.ajax4jsf.framework.renderer.AjaxPhaseListener] Process before phase RESTORE_VIEW(1)
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] before phase: RESTORE_VIEW(1)
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] beginning transaction prior to phase: RESTORE_VIEW(1)
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.beforePhase
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] after phase: RESTORE_VIEW(1)
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.afterPhase
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.manager
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.facesPage
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.facesPage
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.facesPage
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.facesPage
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.facesPage
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.facesPage
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Manager] No stored conversation, or concurrent call to the stored conversation
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(7)
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] committing transaction after phase: RESTORE_VIEW(1)
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,015 DEBUG [org.ajax4jsf.framework.renderer.AjaxPhaseListener] Process after phase RESTORE_VIEW(1)
      2007-01-22 12:22:50,015 DEBUG [org.ajax4jsf.framework.renderer.AjaxPhaseListener] Process before phase RENDER_RESPONSE(6)
      2007-01-22 12:22:50,015 DEBUG [org.ajax4jsf.framework.renderer.AjaxPhaseListener] PhaseListener enter Before RenderView Phase with ViewId /debug.xhtml and RenderKitId HTML_BASIC
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] before phase: RENDER_RESPONSE(6)
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6)
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationList
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationList
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.switcher
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.switcher
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationStack
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationStack
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.facesMessages
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.facesMessages
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.facesMessages
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.facesMessages
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.facesMessages
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.facesMessages
      2007-01-22 12:22:50,015 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.conversation
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.conversation
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.conversation
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.conversation
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.conversation
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.conversation
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.beforePhase
      2007-01-22 12:22:50,025 DEBUG [org.ajax4jsf.framework.ajax.AjaxContext] Process component tree for collect used scripts and styles
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] after phase: RENDER_RESPONSE(6)
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.afterPhase
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] committing transaction after phase: RENDER_RESPONSE(6)
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 7
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.BUSINESS_PROCESS
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.BUSINESS_PROCESS
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.CONVERSATION
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.facesMessages
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.facesMessages
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.conversation
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.conversation
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.CONVERSATION
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.ajax4jsf.framework.HEADER_PROCESSED
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Contexts] destroying: jsf_sequence
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.done
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Contexts] destroying: ajaxContext
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Contexts] destroying: com.exade.vcp.Filter.ResponseWrapper
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
      2007-01-22 12:22:50,025 DEBUG [org.ajax4jsf.framework.renderer.AjaxPhaseListener] Process after phase RENDER_RESPONSE(6)
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      2007-01-22 12:22:50,025 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
      2007-01-22 12:22:50,025 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter] create HTML/XML parser for content type: null
      2007-01-22 12:22:50,025 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter] Parser not have support for the such content type, send response as-is
      2007-01-22 12:22:50,025 DEBUG [org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter] Finished request processing total time 10ms for uri: /sa/debug.seam
      


      I must be missing something.

        • 1. Re: can't find debug.xhtml
          mariuszs

          You need library for facelts included and debug enabled in config (seam.propertes for example).

          • 2. Re: can't find debug.xhtml

            Nice. Thanks mariuszs.

            Facelets was already installed. The tweak from before was made in components.xml:

            before

            <core:init jndi-pattern="@PROJECT.NAME@/#{ejbName}/local"/>
            


            after (now working)
            <core:init jndi-pattern="@PROJECT.NAME@/#{ejbName}/local" debug="true"/>