I have quite a large EAR file which contains an EJB.jar file, a WAR file and various other jars used by the EJB.jar file. I the WAR file has a number of JSPs and now some JavaBeans. The JavaBeans live in their own jar which is deployed in the WEB-INF\lib directory. I am trying to use ResourceBundles for the error messages which are generated in the JavaBeans.
Here is the problem. I have put the resource bundle properties files in the WEB-INF\classes directory and I can access them just fine from the JSPs. Not so from the JavaBeans, I get the following error:
"Can't find bundle for base name webui-resources, locale en_US Can't find bundle for base name webui-resources, locale en_US ".
I have tried just 'jarring' up the properties files into the JavaBeans jar but no dice.
It 'smell's like a Classloader issue. Any help greatly appreciated.