Tapestry
  1. Tapestry
  2. TAPESTRY-2281

Update tutorial1 to correctly indicate how and why to replace Jetty 5 log4j.jar

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: 5.0.13
    • Component/s: t5-tutorial 1
    • Labels:
      None

      Description

      http://tapestry.apache.org/tapestry5/tutorial1/first.html

      When I tried to run Jetty from Eclipse, I got exception:

      [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: org.apache.log4j.Logger.isTraceEnabled()Z
      java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
      at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81)
      at org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:50)

      Google helped me to find the fix:

      > It is necessary that you upgrade the copy of log4j inside Jetty to version
      > 1.2.14. That adds the isTraceEnabled():boolean method that SL4J expects.

      Please add this 2 lines to the documentation, it will help people to save time.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Albert Tumanov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development