This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes Application Resources not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Application Resources not found" Watch "Application Resources not found" New topic
Author

Application Resources not found

Vamsi Mohan Pemmaraju
Greenhorn

Joined: Jul 15, 2007
Posts: 14
Hi,

I have ApplicationResources_en_US.properties placed in WEB-INF/.
<message-resources> tag is also declared in struts config.xml.
When accessing the application. I recieve an error message saying:

Can't find bundle for base name D:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-modules\request_1\properties\ApplicationResources_en_US.properties, locale en_US

How do I resolve the problem?

Thanks
Vamsi
Kishore Kumar
Ranch Hand

Joined: Oct 15, 2007
Posts: 71
Place your properties file inside classes folder.
That means WEB-INF/classes/your_properties file.
Vamsi Mohan Pemmaraju
Greenhorn

Joined: Jul 15, 2007
Posts: 14
I have placed the properties file in classes folder earlier. But I am receiving the same error.
Kishore Kumar
Ranch Hand

Joined: Oct 15, 2007
Posts: 71
ok then check once your struts-config.xml file.
It should be like this in your struts-config file.:
<message-resources parameter="<Your appliation resource properties file. Donot write extension of the file.>"/>
Vamsi Mohan Pemmaraju
Greenhorn

Joined: Jul 15, 2007
Posts: 14
Hi kesav,

I have tried that but I am facing the same problem saying "Cannot find the bundle".

Regards,
Vamsi
lohith micheal
Greenhorn

Joined: Jan 07, 2008
Posts: 11
when ever you build your application your resource properties get destroyed. so what you need to do is you need to place the application resource properties once again in class folder which is inside the web-inf.
then 101% it will work.
 
GeeCON Prague 2014
 
subject: Application Resources not found