WebSphere & Struts2, not going to welcome file


I have searched and researched and I cannot find what I am missing for migrating a existing project from Tomcat 7.x to WebSphere 8.0. I have created a work around for the problem but my curiosity is getting the better of me because I don’t understand the why. My problem is that when I first loaded the project to WebSphere I was getting There is no Action mapped for namespace [/] and action name [] associated with context path. I researched and found a couple of things to try. I added


with no avail and ultimately I added an empty action that redirected to the welcome page and all was well. However, I personally view this as a work-around and not a fix. So, I guess my question is why does it not fall through to the welcome file list? Have I missed something in setting up/transferring the project? Am I misunderstanding how filters work?

I’ve included below my struts2 workaround, web.xml and the file structure. Thanks for anything you guys can help with.


web.xml Snippit





struts.xml snippit

<package name="dst" extends="struts-default" namespace="/">

<!-- Added as a workaround to the problem -->
<action name="">

File Structure being used

--------jsp (Folder holding jsps)
--------lib (Extra jars being used)


As per request


<%@ page language="java" import="java.util.*" %>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">

        <div> Test Page</div>       

Source: xml

Leave a Reply