You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2001/07/08 06:37:41 UTC

Re: Is struts really loading the resources?

What servlet container are you using?  Some containers have horrendous
bugs related to loading resource files via the web app class loader.

Craig McClanahan

On Wed, 27 Jun 2001, Bob Byron wrote:

> I am new to struts and trying to get down some of the
> basics.  I am trying to use the command: 
> <bean:message key="header.title"/>
> 
> When I do, I get the following exception:
> javax.servlet.jsp.JspException: Missing message for
> key header.title
> 
> I have verified that my ApplicationResources file does
> contain:
> header.title=MY TEST
> 
> Checking the log earlier, I find the following
> confirmation that the ApplicationResources properties
> were loaded, or were they:
> 2001-06-27 09:20:31 - path="/test" :action: Loading
> application resources from resource
> ApplicationResources
> 
> The previous log entry mentions nothing about the
> resource file being found and loaded successfully.  Am
> I missing something?  How do I know that they
> properties file was definately loaded?  How can I view
> the properties that are currently available?  I am
> just not sure what avenue of debugging to pursue at
> this point.
> 
> Thank You,
> Bob Byron
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 


Re: Is struts really loading the resources?

Posted by Bob Byron <bb...@radit.com>.
I am running under JBuilder 5.  It uses the 3.2.1
version of Tomcat.  But I have had the worst time
getting the resources to be visible while trying
to run inside the environment.  I would greatly 
appreciate an example of the simplest project
file that would make the system work.

Bob Byron
RAD Systems, Inc.
www.radit.com
(972)516-4256

----- Original Message ----- 
From: "Craig R. McClanahan" <cr...@apache.org>
To: <st...@jakarta.apache.org>
Sent: Saturday, July 07, 2001 11:37 PM
Subject: Re: Is struts really loading the resources?


What servlet container are you using?  Some containers have horrendous
bugs related to loading resource files via the web app class loader.

Craig McClanahan

On Wed, 27 Jun 2001, Bob Byron wrote:

> I am new to struts and trying to get down some of the
> basics.  I am trying to use the command: 
> <bean:message key="header.title"/>
> 
> When I do, I get the following exception:
> javax.servlet.jsp.JspException: Missing message for
> key header.title
> 
> I have verified that my ApplicationResources file does
> contain:
> header.title=MY TEST
> 
> Checking the log earlier, I find the following
> confirmation that the ApplicationResources properties
> were loaded, or were they:
> 2001-06-27 09:20:31 - path="/test" :action: Loading
> application resources from resource
> ApplicationResources
> 
> The previous log entry mentions nothing about the
> resource file being found and loaded successfully.  Am
> I missing something?  How do I know that they
> properties file was definately loaded?  How can I view
> the properties that are currently available?  I am
> just not sure what avenue of debugging to pursue at
> this point.
> 
> Thank You,
> Bob Byron
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>