You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hehl, Thomas" <Th...@acs-inc.com> on 2006/09/18 15:58:53 UTC

Websphere mapping problem

1) I'm a newbie on struts, but I just got hired to be the expert on my
project.:)

2) Everything I'm about to say works under tomcat perfectly.

OK, so the problem is that when I deploy my app and access it, I get the
following error:

Error 404: SRVE0190E: File not found: /do/start 

Here's the interesting part of my web.xml

	<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>
		<init-param>
			<param-name>validating</param-name>
			<param-value>true</param-value>
		</init-param>	
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>

And my struts-config.xml:

    <global-forwards>
    	<forward name="start" path="/start.do" />
    	<forward name="login" path="/login.do" />
    	<forward name="timeOut" path="/base/login.jsp" />
    	<forward name="home" path="/home.do" />
    	<forward name="error" path="error.system" />
    </global-forwards>

    <!-- =================================== Action Mapping Definitions -->

    <action-mappings>
    	<action 	path="/start"
	
type="org.apache.struts.actions.ForwardAction"
	 				unknown="true"
	 				parameter = "/base/login.jsp"
					/>
      
        ...

I have an index.jsp so that people can access this from the root. Here's
what it looks like:

<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<logic:redirect forward="start"/>

So it should request start which eventually gets resolved to login.jsp,
right?

So why the error only under websphere and why is my browser pointing to
http://ejuror:9080/ejuror/do/start?

Something has to be getting messed up with my mapping right? But it has to
be running part of it or I wouldn't get the error there.

Anyone have any advice on this?

Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Websphere mapping problem

Posted by David Friedman <hu...@ix.netcom.com>.
Your error suggests your are using the wrong url.  The error lists
"/do/start" but your mapped your servlet to "*.do" so it expects the path
"/start.do"  What path are you trying to reach your webapp on for each
platform?

-David

-----Original Message-----
From: Hehl, Thomas [mailto:Thomas.Hehl@acs-inc.com]
Sent: Monday, September 18, 2006 9:59 AM
To: 'user@struts.apache.org'
Subject: Websphere mapping problem

	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org