3 Replies Latest reply on Apr 4, 2013 8:47 PM by amittelang1976

    HTTP Status 404 - Servlet action is not available  jboss

    rafiqy

      Hi there,

      Can anyone please advice me how to fix this the following error message:
      HTTP Status 404 - Servlet action is not available jboss

      Many thanx
      yasmin

        • 1. Re: HTTP Status 404 - Servlet action is not available  jboss
          peterj

          Based on the error message, I assume that you are using Struts. I think that somewhere (action within a web page or within code) you are referencing an action named "jboss" but no such action is defined in the struts-config.xml file.

          • 2. Re: HTTP Status 404 - Servlet action is not available  jboss
            amittelang1976

            My Application is working perfectely fine in Jboss EAP 6.0 but when I deploy the same in Lynix environment its giving me

            HTTP Status 404 - Servlet action is not available.

            I know that this is not at all related to code as was is working perfectly fine in my local Jboss. From the log I am unable to get any error.

            Application is showing deployed to me, when I try to access static files I am able to access those but any .do action giving me that error in browser.

             

            My application is using Struts 1.3 and Spring 2.5 version.

             

            Any help would be appriciated.

             

            Thanks,

            Amit

            • 3. Re: HTTP Status 404 - Servlet action is not available  jboss
              amittelang1976

              I resolved this issue by following changes:-

              1) Changed log4j.properties to log4j.xml.

              2) Added jboss-deployment-structure.xml under web-inf folder.

              3) jboss was unable to write velocity log on server and failing there. I added the following line of code(highlighted in bold)in my application.context after that it started working fine.

               

               

               

              <bean id="velocityEngine" class="net.genworth.ltc.fiveseries.util.VelocityInitializer"
                init-method="init">
                <property name="velocityProperties">
                 <map>
                  <entry key="resource.loader" value="class"></entry>
                  <entry key="class.resource.loader.class"
                   value="org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"></entry>
                  <entry key="runtime.log.logsystem.class"
                   value="org.apache.velocity.runtime.log.SimpleLog4JLogSystem"></entry>
                  <entry key="class.resource.loader.modificationCheckInterval"
                   value="0"></entry>
                 
                 </map>
                </property>
              </bean>