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

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None
    • Operative system: Xubuntu 14.04, Kubuntu 14.04, Linux Mint 17 Mate, CentOS 6.5.
      JDK: 1.8.0 Update 5, 1.8.0 Update 11.
      Server: Wildfly 8.0.0, Wildfly 8.1.0.

    • 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.

      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.

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

                Created:
                Updated:
                Resolved: