Earlier I used to work with IBM WAS server, in my project, I had to load properties files from resource folder located in classes folder.
Inorder to load these properties file I used the following parth
When I used this, I got to load the file during the application run time.
Now I got to work the same thing in another project with JBOSS AS, but I'm failing to load the file and when I see in the logs I get the following
it supposed be ended at ../WEB-INF/classes,
is there any change to get the path?
is there any alternate way to get the path to load properties file?
That's a rather roundabout way of getting a resource from the classpath. If you have a resource in the WEB-INF/classes directory -- in your case it appears to be in the resources directory below that -- then you just get it like this:
Then you've given the wrong path for your resource relative to the classpath.
Joined: Mar 19, 2008
you are right paul,
actually I put all my prop files in resources folder and make this folder in Source folders on build path.
But after build the application, these prop files are storing directly in classes folder, here I didn't find resource folder.
Now I changed the path to
Then working ....
Thank you so much
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com