Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2281

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0.10
    • 5.0.13
    • t5-tutorial 1
    • 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.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            altumano Albert Tumanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: