The following comment has been added to this issue:

     Author: Dominik Drzewiecki
    Created: Tue, 30 Nov 2004 11:56 AM
       Body:
Yet another thought. 

Struts library, when placed in the shared classloader *is* capable of loading 
resource bundles from webapp classloader. This is done via obtaining an 
executing thread classloader.

ClassLoader classLoader = Thread.currentThread().getContextClassLoader();

I am not absolutely sure if this could apply to this case, but I think it is 
worth further investigation.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/DISPL-144?page=comments#action_27297

---------------------------------------------------------------------
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 11:56 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

Reply via email to