I have a web application already running on a UNIX box. This application is running in struts1.
I am trying to add struts2 to it.
I modified web.xml and added the following entry to it
<filter> <filter-name>struts2Maven</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class><filter-mapping>
<filter-name>struts2Maven</filter-name> <url-pattern>/*</url-pattern></filter-mapping>
I created a struts.xml in WEB-INF\classes folder having the following content
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<include file="struts-default.xml"/>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<constant name="struts.custom.i18n.resources" value="ApplicationResources" />
<package name="default" extends="struts-default" namespace="/techTasksList">
<action name="">
<result>/WEB-INF/jsp/index.jsp</result>
</action>
<action name="setasksList" class="com.sbc.ept.imagine.web.tasksListPortlet.portlet.action.TaskListAction">
<result name="success">/techTasksList/ViewSE.jsp</result>
</action>
</package>
</struts>
But when I try to hit the URL
http://imagine-uat-temp.sbc.com/ImagineSSO/techTasksList/?
I get a 404 page. As per my understanding it should have landed me on the JSP which is located at WEB-INF\jsp\index.jsp
Actual motive is to reach action class. But when I failed to reach the action class, then I thought I must check if the default jsp where action is blank is reachable or not. But even that is not reachable.
How do I fix this or troubleshoot what I am doing wrong?
I have supplied all the struts-2 jars, via shared library option of websphere console.