0 Replies Latest reply on Dec 18, 2006 5:38 PM by ab57950

    Struts app in JBOSS - Action class not triggered

    ab57950

      Hi there,
      I have deployed my struts app into one of our existing JBOSS project. I have a sample jsp from which I try to invoke the action class. But the action class is never getting invoked. And no signs of errors in the log.The same app works good in WSAD 5.1. Can anyone pl let me know what could be the issue.

      Here are my config details :

      web.xml
      ----------

      <!-- Action Servlet Configuration -->

      <servlet-name>action</servlet-name>
      <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
      <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
      </init-param>
      <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
      </init-param>
      <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
      </init-param>
      <load-on-startup>2</load-on-startup>

      <!-- Action Servlet Mapping -->
      <servlet-mapping>
      <servlet-name>action</servlet-name>
      <url-pattern>/*.do</url-pattern>
      </servlet-mapping>

      <!-- Struts Tag Library Descriptors -->

      <taglib-uri>/tags/struts-bean</taglib-uri>
      <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>



      <taglib-uri>/tags/struts-html</taglib-uri>
      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>



      <taglib-uri>/tags/struts-logic</taglib-uri>
      <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>



      <taglib-uri>/tags/struts-nested</taglib-uri>
      <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>



      <taglib-uri>/tags/struts-template</taglib-uri>
      <taglib-location>/WEB-INF/struts-template.tld</taglib-location>



      <taglib-uri>/tags/struts-tiles</taglib-uri>
      <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>



      <taglib-uri>
      pagination
      </taglib-uri>
      <taglib-location>
      /WEB-INF/pager-taglib.tld
      </taglib-location>


      Here is my JSP call :
      ----------------------

      /MCA/SbMCAPostMessageAction.do?action=initial&username1="+userid+"&group1="+group;


      And here is my Struts-config.xml configurations :
      --------------------------------------------------------
      <action path="/SbMCAViewMessageAction" type="com.ssmb.mca.action.SbMCAViewMessageAction" name="sbMCAViewMessageForm" scope="session" validate="false">
      
       <forward name="success" path="/SbMCAViewMessage.jsp" />
       <forward name="failed" path="/SbMCADefaultErrorPage.jsp" />
       <forward name="MSGID" path="/SbMCAViewMessage.jsp" />
      
       </action>
      
       <action path="/SbMCAPostMessageAction" type="com.ssmb.mca.action.SbMCAPostMessageAction" name="sbMCAPostMessageForm" scope="session" validate="false">
       <forward name="success" path="/SbMCAPostMessage.jsp" />
       <forward name="failed" path="/SbMCADefaultErrorPage.jsp" />
       </action>

      Thanks,
      Arun B