2 Replies Latest reply on Mar 18, 2011 12:11 AM by diogo.monteiro

    Internationalization problem in JBOSS AS 6

    jonssonth

      Hi all,


      I have problems resolving texts. This happens randomly, sometimes it works after a server start up and sometimes it doesn't. This error has been introduced after switching to JBOSS AS 6. The application is packaged as a multimodule EAR. I have most of property files in the web-app project, and a few in the ejb-projects. When I loop the text keys in the merged resource bundle (SeamResourceBundle.getBundle()) in the situation when it doesn't work I get keys from one of the ejb-projects and none from the keys that resides in the web-app project. I suspect this is a class loading issue. I see in the log that my bundles in the web-app project can't be found. What irritates is that this happens randomly.


      I did a test and moved all the property files to an ejb, with the following result:
      messagesCore resided in on ejb, messagesSubledger resides in another and the rest of the files in a third.


      STDOUT BaseClassLoader@150c2c vfs:///C:/appservrar/jboss-6.0.0.20100721-M4/server/default/deploy/ear-2011v-SNAPSHOT.ear


      DEBUG org.jboss.seam.core.ResourceLoader resource bundle missing: messagesCore
      DEBUG org.jboss.seam.core.ResourceLoader resource bundle missing: messagesSubledger
      DEBUG org.jboss.seam.core.ResourceLoader loaded resource bundle: messagesWebSub
      DEBUG org.jboss.seam.core.ResourceLoader loaded resource bundle: messagesHistory
      DEBUG org.jboss.seam.core.ResourceLoader loaded resource bundle: messagesTree
      DEBUG org.jboss.seam.core.ResourceLoader loaded resource bundle: messagesMPL


      Helpful for any ideas.
      Thomas