This will get you started..

1st) Struts v1 take a look at legacy mapping in web.xml which maps *.do to
action and action to ActionServlet as seen here
  <!-- Action Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  <servlet>
    <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>
    <load-on-startup>1</load-on-startup>
  </servlet>

2nd)Struts2 has a different web.xml notice the url-pattern of action will
map to faces which maps to FacesServlet
     <servlet-mapping>
        <servlet-name>faces</servlet-name>
        <url-pattern>*.action</url-pattern>
   </servlet-mapping>

 <!-- JavaServer Faces Servlet Configuration, not used directly -->
   <servlet>
     <servlet-name>faces</servlet-name>
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
     <load-on-startup>1</load-on-startup>
   </servlet>

//everything in dwr folder maps to dwr which maps to DWRServlet
  <servlet-mapping>
        <servlet-name>dwr</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <servlet>
        <servlet-name>dwr</servlet-name>
        <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>

//any url-pattern not specifically assigned is assigned to struts which is
mapped to FilterDispatcher
    <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter>
        <filter-name>struts</filter-name>

<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>

Martin
----- Original Message -----
From: "kal stevens" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, March 03, 2008 8:49 PM
Subject: Struts2 application does not work after converting from struts1


> My company is in the process of converting our application from struts1 to
> struts2.
>
> The JSP loads properly, but any actions do not respond.
>
>
> Not Found
>
> The requested URL /member/signin.do was not found on this server.
>
> I put the log4j log level to ALL, and it looks like tomcat is loading the
> actions,
> Can anyone recommend a way to debug this to figure out what is wrong?  Or
> point me to a link that describes the problem?
>
> Thanks
>
>
> Kal
>
>
> DEBUG main
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> Loaded /member/validatesend in 'member' package:{ActionConfig
> com.ss.actions.member.SendAction - action - file:/home/kal/tools/apache-
> tomcat-6.0.16/webapps/cobalt/WEB-INF/classes/struts.xml:186:61}
> DEBUG main
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> Loaded /member/emailsend in 'member' package:{ActionConfig
> com.ss.actions.member.EmailSendAction - action -
> file:/home/kal/tools/apache-tomcat-6.0.16
> /webapps/cobalt/WEB-INF/classes/struts.xml:193:66}
> DEBUG main
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> Loaded /member/sendpassword in 'member' package:{ActionConfig
> com.opensymphony.xwork2.ActionSupport - action -
> file:/home/kal/tools/apache-tomcat-6.0.16
> /webapps/cobalt/WEB-INF/classes/struts.xml:198:37}
> DEBUG main
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> Loaded /member/validatesendpassword in 'member' package:{ActionConfig
> com.ss.actions.member.SendpasswordAction - action -
> file:/home/kal/tools/apache-tomcat-6.0.16
> /webapps/cobalt/WEB-INF/classes/struts.xml:203:69}
> DEBUG main
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> Loaded /member/verifysetup in 'member' package:{ActionConfig
> com.ss.actions.member.SigninSetupAction - action -
> file:/home/kal/tools/apache-tomcat-6.0.16
> /webapps/cobalt/WEB-INF/classes/struts.xml:209:68}
> DEBUG main
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> Loaded /member/confirm in 'member' package:{ActionConfig
> com.ss.actions.member.ConfirmAction - action -
file:/home/kal/tools/apache-
> tomcat-6.0.16/webapps/cobalt/WEB-INF/classes/struts.xml:214:64}
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to