cancel
Showing results for 
Search instead for 
Did you mean: 

Reading server side roperties file ResourceBundle causing Exception

Former Member
0 Kudos

Hi all,

I have a Test Application which consists of a servlet.

This servlet tries to read contents of a property file called myprops.properties with ResourceBundle

Dir Structure :-

testapp

- WEB-INF

- classes

myprops.properties

MyServlet.class

When the servlet tries to access the properties file , it says :-

" Can't find bundle for base name myprops, locale en_US"

The same application is working fine in tomcat .

The servlet code resides in classes directory.

Can anybody put some light into how this is happening.

Regards,

Pavan

Accepted Solutions (0)

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Pavan,

what's the exact code fragment to read the properties?

Best regards

Detlev