|
Home > Archive > WebSphere Application Server > September 2006 > Newbie: 404 Error
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| OK, my webapp is throwing a 404 error. It's is getting far enough along that it has gone through struts and re-directed the page, but now gets a 404 on start.do.
I've used tomcat for years and this same war works great under tomcat, but I get this error under websphere and have no idea even where the logs are to find it.
I've been through the "helpless" screens and need whatever advice I can get so I don't have to bug people in forums anymore for this basic stuff.
Thanks.
| |
|
| If you're using an HTTP Server, have you generated the plugin-cfg.xml file and restarted the HTTP server? It sounds like you might already be past that point, but it's an easy enough "gotcha" especially if you're not familiar with the product.
| |
|
| I am using a J2EE server, so I think your answer is no.
Can anyone point me to a log anywhere where I can maybe find out what's happening?
Thanks.
| |
| Paul Ilechko 2006-09-16, 1:48 pm |
| thom@nowhereatall.com wrote:
> I am using a J2EE server, so I think your answer is no.
Which application server and version. That could be useful information.
> Can anyone point me to a log anywhere where I can maybe find out what's happening?
That would probably be in the "logs" directory. Where exactly to find
that depends on the answer to the previous question ...
| |
|
| I am running AS 6.1 on Windows.
Like I said, I'm experienced with J2EE, just not Websphere.
| |
|
| OK, there's something strange going on with the mapping. I've been working on the problem and here's what I have. I'm using struts and here's the excerpt from my web.xml file.
<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>
In the struts-config.xml file, I have this:
<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"
/>
...
Now the application appears to be going to struts because index.jsp forwards to start and start should resolve to start.do which should resolve to login.jsp. Instead, though I get the following message:
Error 404: SRVE0190E: File not found: /do/start
And my web address is pointing to /ejuror/do/start
I can't for the life of me figure out what's going on here. As you can see, I've tinkered with it enough to get a little bit further, but now I'm stuck. This deployment works perfectly under tomcat.
Something odd is going on with my mapping, I think. Any suggestions?
Thanks.
|
|
|
|
|