Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0 RC2
-
Fix Version/s: 1.0
-
Component/s: None
-
Labels:None
-
Application server:Tomcat 5.5.4
Description
I recently placed displaytag-1.0-rc2.jar in tomcat's shared classloader (${tomcat.home}/shared/lib) instead of the webapp classloader and noticed that all my localized column titles disappeared. After a short investigation it turned out that the displaytag.properties placed in web application (which contains config for locale.provider=org.displaytag.localization.I18nStrutsAdapter) is not loaded.
I placed a copy of displaytag.properties in the same classloader as the displaytag-1.0-rc2.jar (that is: ${tomcat.home}/shared/classes ), and voila, it works perfectly.
The bottomline: displaytag.properties is usually strongly related with particular web application while displaytag library might be shared across aplications. It should be possible to have a configuration as described above.
I placed a copy of displaytag.properties in the same classloader as the displaytag-1.0-rc2.jar (that is: ${tomcat.home}/shared/classes ), and voila, it works perfectly.
The bottomline: displaytag.properties is usually strongly related with particular web application while displaytag library might be shared across aplications. It should be possible to have a configuration as described above.