• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with ResourceBundle and Weblogic

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

I'm developping a website with Weblogic 8.1 and I'm having some problems with resourceBundle. The site has to be in Dutch and French.
I've created 3 property-files (resources.properties, resources_nl.properties and resources_fr.properties). The property-files are saved in the directory WEB-INF/classes.



When I run this, I get the following error



I've also tried:
ResourceBundle labels = ResourceBundle.getBundle("resources", currentLocale);


Can anyone help me??

(N.Pruett - edited long error message line - was widening the page.)
[ September 22, 2004: Message edited by: Nathan Pruett ]
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try changing the line :


To something like :


I think the basename is used by a ClassLoader to find the resource bundle property file. Specifying the full path confuses the ClassLoader and it won't find your files. Just specify the files and/or directories below where the classpath is defined - since "/belpic/WEB-INF/classes" should be on the classpath, all you need to define is "/resources".
 
reply
    Bookmark Topic Watch Topic
  • New Topic