Bugs item #841136, was opened at 2003-11-12 18:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=841136&group_id=22866

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Elias Ross (genman)
Assigned to: Nobody/Anonymous (nobody)
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"));
%>



----------------------------------------------------------------------

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

Reply via email to