Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4573

Quarkus Native: Register web.xml and error pages

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3-next-M7, 4.0.0-RC5
    • 2.3-next-M8, 4.0.0
    • Extension Feature
    • None

    Description

      When running in Quarkus Native mode only:

      1. resources in /META-INF/resources are registered which means `META-INF/web.xml` is not included but needs to be.
      2. Resource registered in error pages must be registered with Reflection so things like OmniFacesExceptionHandler and PrimeExceptionHanlder can handle them and display them in EL  on pages.

       

          <error-page>
              <exception-type>java.lang.Throwable</exception-type>
              <location>/error.xhtml</location>
          </error-page>
          <error-page>
              <exception-type>javax.faces.application.ViewExpiredException</exception-type>
              <location>/viewExpired.xhtml</location>
          </error-page>
          <error-page>
              <error-code>404</error-code>
              <location>/error.xhtml</location>
          </error-page> 

       

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            melloware Melloware
            melloware Melloware
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment