loadBundle related

Hi All,

I've created the file mypackage.sai.property with a single line

welcome="welcome...this is my first msg"

and added the following lines to faces-config.xml

<application>

<message-bundle>

mypackage.sai

</message-bundle>

</application>

I've used the following lines in my jsp page

<f:loadBundle basename="mypackage.sai" var="msg"/>

<h:outputText value="#{msg.welcome}"></h:outputText>

But when i load my application tomcat is giving the following warning

SEVERE: Resource bundle 'mypackage.sai' could not be found.

Can any one suggest what is it that i am missing out

[723 byte] By [go2saia] at [2007-10-2 18:55:12]
# 1
mypackage.sai.properties
Dill0ra at 2007-7-13 20:33:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks for the reply, I've changed the file name to sai.properties but even after this it is giving the same error
go2saia at 2007-7-13 20:33:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

have a look at the tomcat webapps directory or whereever your application is located, and check:

is the bundle file in the classes/mypackage directory?

is it named right?

is the faces-config.xml up to date?

maybe delete the message-budle stuff from faces-config.

i dont use it and hence dont know if u used it correctly.

maybe redeploy the application to tomcat.

restart tomcat!

Dill0ra at 2007-7-13 20:33:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Thanks for the suggestion,

I was using eclipse wtp and i've created my sai.properties file in src/mypackage/sai.properties It was not working in this scenairo, When i've created the WEB-INF/classes/mypackage/sai.properties it is working fine.

I have other java source files in src they seem to work properly even if i dont place them in WEB-INF/classes but i am not sure why it is not the case with the properties file

go2saia at 2007-7-13 20:33:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
i dont know wtp, but i think it should copy stuff from src to classes.if src is configured as the source folder.ask your local wtp geek for details :)
Dill0ra at 2007-7-13 20:33:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...