Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-296

In production mode, IOExceptions occurred in JSPs aren't registered in the server log.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • None
    • Hide

      To test it, one only needs to follow these steps:

      unzip wildfly-8.1.0.Final.zip
      cd wildfly-8.1.0.Final/standalone/deployments/
      mkdir -p test.war/WEB-INF/
      vim test.war/index.jsp
      (Write a JSP that throws an IOException)
      ../../bin/standalone.sh

      Then, in the browser, you have to go to "http://localhost:8080/test". The page output shows the stack trace, but it isn't written in the log file.

      Enable the JSP development mode, in the file wildfly-8.1.0.Final/standalone/configuration.xml:

      <jsp-config development="true"/>

      Try "http://localhost:8080/test" again. Now the exception's stack trace is logged.

      Show
      To test it, one only needs to follow these steps: unzip wildfly-8.1.0.Final.zip cd wildfly-8.1.0.Final/standalone/deployments/ mkdir -p test.war/WEB-INF/ vim test.war/index.jsp (Write a JSP that throws an IOException) ../../bin/standalone.sh Then, in the browser, you have to go to "http://localhost:8080/test". The page output shows the stack trace, but it isn't written in the log file. Enable the JSP development mode, in the file wildfly-8.1.0.Final/standalone/configuration.xml: <jsp-config development="true"/> Try "http://localhost:8080/test" again. Now the exception's stack trace is logged.

    Description

      In you set the JSP configuration to production mode, exceptions of class java.io.IOException and those that inherit from it seem not be registered neither in the server's main log file nor the console.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            negora negora negora
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: