I am able to load a resource bundle from my web app. You have to pass the
classloader to use to the getBundle() method. Use
Thread.currentThread.getContextClassloader().

jim

> -----Original Message-----
> From: Mikhail Akopov [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 7:47 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Classloader Issues with EAR files
>
>
> Hello,
>
> >I have a servlet that loads a resource bundle. When I deploy the WAR file
> that
> >contains the servlet, the resource bundle is discovered and loaded by the
> >following statement:
> >
> >   bundle = ResourceBundle.getBundle(bundleName);
> >
> >When I deploy the WAR file as part of an EAR file, the classloader issues
> seem
> >to confuse the ResourceBundle class to the point that it will no longer
> load the
> >file. I have even tried to use the same classloader that the
> class loading
> the
> >bundle is using. No change in behavior. I get the following exception:
>
> I met exactly the same problem and can't resolve it except by
> putting needed
> file into $JBOSS_HOME/lib/ext, but this can't be a good way :-(
>
> I asked jboss-user 5 times but no reaction...
>
> Please, let me know if you solved this problem already.
>
> Sorry for possible errors - English is my second language.
>
> Vale! - Mikhail Akopov
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to