Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Setting up log4j functionality for a custom plugin isn't trivial. If you meet:

Code Block
log4j:ERROR A "org.apache.log4j...." object is not assignable to a "org.apache.log4j...." variable.
log4j:ERROR The class "org.apache.log4j...." was loaded by
log4j:ERROR [WebappClassLoader]

like errors, in our case, the solution was to add the parameter

Code Block
-Dlog4j.ignoreTCL=true

to JAVA_OPTS in joget-start.bat.

It's just a workaround, though. Somehow, the proper way would be to use log4j as an osgi service.