The following comment has been added to this issue:
Author: Dominik Drzewiecki
Created: Tue, 30 Nov 2004 6:27 AM
Body:
Having referred to the docs and tought on it a bit, I came to the conclusion
that there is no way to refer to the webapp classloader from the classes loaded
in the shared classloader, is there? (while the opposite *IS* possible via
ClassLoader ClassLoader.getParent()). However, I still think that the config I
described makes sense, but there seems that there is no reasonable solution
(I'd have to stick with placing the displaytag.jar in the webapp classloader)
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/DISPL-144?page=comments#action_27286
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/DISPL-144
Here is an overview of the issue:
---------------------------------------------------------------------
Key: DISPL-144
Summary: DisplayTag does not load displaytag.properties if library and
config file placed in different classloaders
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: DisplayTag
Fix Fors:
1.0
Versions:
1.0 RC2
Assignee:
Reporter: Dominik Drzewiecki
Created: Mon, 29 Nov 2004 10:33 AM
Updated: Tue, 30 Nov 2004 6:27 AM
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.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel