Bugs item #841136, was opened at 2003-11-12 18:29 Message generated for change (Comment added) made by starksm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=841136&group_id=22866
>Category: JBossWeb Group: None Status: Open Resolution: None Priority: 5 Submitted By: Elias Ross (genman) >Assigned to: Scott M Stark (starksm) Summary: ResourceBundle classloader errors Initial Comment: Deployment information: java version "1.4.2_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03) Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode) JBoss 3.2.2 (release) Linux Redhat 8 I cannot reproduce this problem when I use Java 1.4.1-01 Blackdown for Linux, though again it might be a timing issue. There is a resource bundle located in an exploded .war file with a ResourceBundle at top-level: xyz.war WEB-INF classes AppResources.properties Struts 1.1 (periodically) cannot locate this bundle. javax.servlet.jsp.JspException: Missing message for key label.product.name at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298) at Home_jsp._jspx_meth_bean_message_0(Home_jsp.java:170) at Home_jsp._jspService(Home_jsp.java:107) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) The weird part is that it found the bundle, but is MISSING the key. (We have seen this problem when loading from other resource bundles.) I constructed a test JSP The JSP always works fine. It spits out the key "label.product.name" <%@ page contentType="text/plain" %> <%@ page import="java.util.*"%> <% ResourceBundle rb = null; for (int i = 0; i < 100; i++) { rb = ResourceBundle.getBundle("AppResources", Locale.getDefault()); // rb = ResourceBundle.getBundle("AppResources"); } Enumeration e = rb.getKeys(); while (e.hasMoreElements()) out.println(e.nextElement()); out.println(rb.getString("label.product.name")); %> ---------------------------------------------------------------------- >Comment By: Scott M Stark (starksm) Date: 2003-11-12 19:04 Message: Logged In: YES user_id=175228 Are there multiple AppResources.properties deployed? If so then it is probably related to the use of the UCL in the web container. You can disable this by editing the jbossweb-tomcat41.sar/META-INF/jboss-service.xml and setting the UseJBossWebLoader attribute to false: <attribute name="UseJBossWebLoader">false</attribute> ---------------------------------------------------------------------- Comment By: Elias Ross (genman) Date: 2003-11-12 18:49 Message: Logged In: YES user_id=556458 More info: Doesn't happen with JBoss 3.2.1. If you visit another web context, such as /jmx-console or another .war file deployed on the system, the resource bundle gets picked up correctly. I also said it depended on JVM, but changing the JVM doesn't seem to fix this errant behavior. Struts 1.1 is deployed under WEB-INF/lib. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=841136&group_id=22866 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development