4 Replies Latest reply on Dec 21, 2002 11:38 AM by J.D. Corbin

    JBOSS 3.0.4/struts example

    J.D. Corbin Newbie

      Hello,

      I successfully built and deployed the struts example war file using JBOSS 3.0.4. When I hit the index.jsp I get the following error and not sure what it means or how to fix it.

      Cannot find message resources under key org.apache.struts.action.MESSAGE

      Any help? Or point me to a previous message on the topic.

        • 1. 3850032
          J.D. Corbin Newbie

          Sure. I submitted a bug, not a solution :-)
          This is not the only place where the code breaks. You should probably start setting up an Oracle distribution and you will find all the NPE-places quite fast!
          Regards,
          Michael

          • 2. Re: JBOSS 3.0.4/struts example
            J.D. Corbin Newbie

            Update...

            I realized that the init-param, application wasn't specified in the web.xml...I added it and pointed the value to my ApplicationResources.properties file in the following manner...

            <init-param>
            <param-name>application</param-name>
            <param-value>org.apache.struts.webapp.example.ApplicationResources</param-value>
            </init-param>

            I verified the ApplicationResources.properties file existed in the web application at /WEB-INF/classes/org/apache/struts/webapp/example/ApplicationResources.properties

            When I deploy and point the server to the index.jsp it I get the following error --

            Missing message for key index.title

            In case you all couldn't tell, I am trying to build, deploy and run the struts example war file.

            I've seen many postings on the subject of these types of errors but it has always been the settings in the web.xml file that generally fixed the problem. In my case I have verified over and over again that my setup is correct.

            Does anyone have a suggestion...

            Thanks,

            • 3. Re: JBOSS 3.0.4/struts example
              Jon Ferguson Newbie

              Hi,

              The only way I have managed to get Struts to play with the JBOSS 3.04 - tomcat 4.1.12 build is to setup servlet 2.3 classloading in tomcat.. and make sure all the necessary class files are in the WEB-INV/lib or WEB-INF/classes dirs.

              You can try this by setting the JAVA2ClassLoadingCompliance attribute to false in your tomcat41-service.xml file.

              If you find another way let me know!

              Cheers,
              Jon

              • 4. Re: JBOSS 3.0.4/struts example
                J.D. Corbin Newbie

                I tried adding the following to the root level, parallel to the other attributes and the server reports that it isn't a valid attribute.


                false

                If this is correct, where in the file should it be placed?

                TIA