getBundle() can find .properties only if it is part of war

  • Thread starter Ramkumar Kaleeswaran
  • Start date
R

Ramkumar Kaleeswaran

Hi,

If I include all the .properties (locale related) files within the war file
then getBundle() works fine. But, if I copy the .properties into the
WEB-INF/classes after the war is extracted, then getBundle() doesn't work -
it throws MissingResourceException.

Can anyone please provide help ?

Thanks,
Ram
 
A

Andrea Desole

Ramkumar said:
Hi,

If I include all the .properties (locale related) files within the war file
then getBundle() works fine. But, if I copy the .properties into the
WEB-INF/classes after the war is extracted, then getBundle() doesn't work -
it throws MissingResourceException.

well, this is related to how the class loader of your server works.
What server are you using? Is the war extracted by you or by the server?
And mainly, why would you need to copy the property files into an
unjarred war file?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,849
Latest member
Fira

Latest Threads

Top