Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application Resources not found

 
Vamsi Mohan Pemmaraju
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Place your properties file inside classes folder.
That means WEB-INF/classes/your_properties file.
 
Vamsi Mohan Pemmaraju
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have placed the properties file in classes folder earlier. But I am receiving the same error.
 
Kishore Kumar
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi kesav,

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

Regards,
Vamsi
 
lohith micheal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic