Trevor Griffiths wrote:
> Hi,
> 
> Help, I think I'm going crazy.
> 
> I have the following in my faces-config file:
> 
>     <application>
>        
> <view-handler>org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl</view-handler>
> 
>        
> <message-bundle>com.liveworld.bird.resources.Header</message-bundle>
>        
> <message-bundle>com.liveworld.bird.resources.Footer</message-bundle>
>        
> <message-bundle>com.liveworld.bird.resources.Common</message-bundle>
>     </application>
> 

These are used only to override standard JSF messages, not application
text like you want.

> The properties files are physically there under 
> WEB-INF/Classes.com.liveworld.bird.resources.Header.properties
> 

Is that exactly what it is?  It should be:

WEB-INF/classes/com/liveworld/bird/resources/Header.properties

> And here's the code in the JSP page:
> 
> <f:loadBundle basename="com.liveworld.bird.resources.Header" var="txt"/>
> 
> When I run the  application I get the following error:
> 
> ERROR org.apache.myfaces.taglib.core.LoadBundleTag - Resource bundle
> 'com.liveworld.bird.resources.Header' could not be found.
> 
> And  the same for the other bundles. I also tried it with just one
> bundle, still the same. These errors seem to be occurring when the page
> using the respective bundle is being parsed and compiled.
> 
> Now here's  the weird part. If I change the bundle path in the
> faces-config file to something nonexistent like
> "com.liveworld.bird.resources.Foo" I do not get any error messages when
> the faces-config file is being read and parsed?
> 
> If I change, for example, the ViewHandler path to something non-existent
> I do get an error message when the config file is being read.
> 
> I have built a prior JF application and I didn't have any trouble with
> the properties mechanism.
> 
> I am using IntelliJ 5.0 and jdk 1.5 running under Windows XP for my dev
> environment, with Resin (3.0.14) as the app server.
>  However if I run the deployed version, independent of the IDE, I still
> see the same problem.
> 
> Any suggestions on how to debug this problem would be much appreciated.
> 
> Thanks
> 
> Trev...
> 
> 
> 
> 
> 


-- 
Dave Brondsema
Software Developer
Cornerstone University

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to