1 Reply Latest reply on Mar 11, 2005 10:24 AM by Matt Lin

    Missing message for key

    Matt Lin Newbie

      I am working on deploying our application on JBoss 3.2.6 (orginally on WebLogic 8.1 SP3).
      After modifying all WebLogic specifics, I finally got it deployed OK.
      But at runtime, I got some exceptions from some of my Web modules complaining about missing message key in my Struts resource bundle.
      The application is working fine on WebLogic.
      So, it must be something different in JBoss.
      I am sure some people must have the same problem before.

      Please help. Thanks.

        • 1. Re: Missing message for key
          Matt Lin Newbie

          I finally found out the problem.

          Everything is set correctly in struts-config.xml and my resource bundle, etc.
          The root cause is that I have several web modules in my ear file. Some of them have their own Struts jar files, ranging form 1.0 to 1.2, inside their war files. I also have Struts 1.2 jar files included in my ear file used by some other modules.
          This causes class loading conflicts and unfortunately, Struts 1.2 seems not so backward compatible.
          Any ways, my solution is to let each web module has its own Struts jars in the war file, remove the copy inside the ear file, and set the UseJBossWebLoader to false (in deploy/jbossweb-tomcat50.sar/META-INF/jboss-service.xml).
          This way, different web modules can use different versions of Struts.