App Servers specific problems

App Servers specific problems
After deployed the jtidyservlet-webapp.war in JRun 4 I get a java.lang.NoClassDefFoundError: org/apache/log4j/Layout

This is due to a known bug in JRun. I belive JRun does not follow the servlet spec regarding classloaders...

To make the sample webapp working you will need to:

  • add log4j-*.jar to $JRUN/servers/lib/ (create this directory if it doesn't exist)
  • verify that JRun4\bin\jvm.config contains java.class.path={application.home}/servers/lib

You can find more info related to this jrun bug on google: searching jrun "org/apache/log4j/Layout"

After deployed the jtidyservlet-webapp.war in JRun 4 I get a The tag example on line 33 is not a valid TLD element

This is due to a known bug in JRun. JRun does not understand <example> tag in jtidy-taglib-12.tld

The <example> elements are valid according to the sun dtd from http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd

To make the sample webapp working you will need to:

  • remove jtidy-taglib-12.tld from jtidyservlet-webapp.war/WEB-INF/lib/jtidyservlet.jar/META-INF/