1 posts in topic
Flat View  Flat View

Posted By:   Jan_Gifvars
Posted On:   Tuesday, May 27, 2003 01:47 AM

I have a pretty basic problem I think.

I have some resources in a file called application.properties
I do like this to get the bundle;

ResourceBundle tMessages = ResourceBundle.getBundle("application", Locale.getDefault());


This line throws a MissingResourceException.
And I have made sure this file is in the CLASSPATH.
How can I debug this?

This is executed inside a servlet in Tomcat, is there another way to find the resourcebundle at servlet startup?

Best regards,

Jan Gifvars

Re: MissingResourceException

Posted By:   Christopher_Schultz  
Posted On:   Tuesday, May 27, 2003 06:37 AM

Don't forget that the name of the file should be application.properties. And remember that the filename itself should not appear in the classpath -- only the directory in which it resides.

Try putting your properties file in the WEB-INF/classes directory and try again.

About | Sitemap | Contact