You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by AbelMacAdam <ab...@gmail.com> on 2007/12/31 11:04:29 UTC
Requested resource not found
Hi,
At the moment I'm bootstrapping my Struts knowledge. I use code from a book
to see what happens (Struts Design and Programming, a Tutorial).
To develop I use Eclipse Europa, the JEE version. I also have WTP installed,
so I should be able to run the application in Tomcat from Eclipse. But that
seems not to happen.
I start with copying the code of the example I want to view to my workspace.
Next I create a 'Dynamic Web Project', naming the project after the
directory I installed the code in. Then I start Tomcat in Eclipse. Finally I
point my browser to the address of the application. But instead of the
expected web page I get the following error:
> type Status report
>
> message /app15a/createCustomer.do
>
> description The requested resource (/app15a/createCustomer.do) is not
> available.
>
What I have learned is that this type of error is comparable with a "404
page not found" error (meaning "the server could not find what was
requested"). So I dived in my code, and found the following entry in my
struts-config.xml file:
> <action path="/createCustomer"
> name="customerForm"
> scope="request"
> validate="true"
> input="/jsp/displayCreateCustomerForm.jsp"
> type="app15a.action.CreateCustomerAction">
> <forward name="success" path="/jsp/displayMessage.jsp"/>
> <forward name="failed" path="/jsp/displayMessage.jsp"/>
> </action>
>
That means (IMHO) that my app could be accessed using the following URL:
http://localhost:8080/app15a/createCustomer.do. But looking at the error I
can only conclude it could not. So what I'm now wondering is whether my
configuration is as it should be. I even seem to remember that the example
worked last friday. Does anyone know what is wrong?
TIA,
Abel
--
View this message in context: http://www.nabble.com/Requested-resource-not-found-tp14555866p14555866.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Requested resource not found
Posted by AbelMacAdam <ab...@gmail.com>.
Actually, there is. I powered up Tomcat independently from Eclipse, and than
pointed my browser to the address. That worked. And that is probably what I
did last Friday.
I seem not to be able to look eye to eye with Eclipse (must be my
configuration). So now I try to add log4j logging to my app to debug it. I
think this is sad, as I now need to learn yet another library to be able to
learn Struts :-[.
newton.dave wrote:
>
> --- AbelMacAdam <ab...@gmail.com> wrote:
>> That means (IMHO) that my app could be accessed using the following URL:
>> http://localhost:8080/app15a/createCustomer.do. But looking at the error
>> I
>> can only conclude it could not. So what I'm now wondering is whether my
>> configuration is as it should be. I even seem to remember that the
>> example
>> worked last friday. Does anyone know what is wrong?
>
> Is there anything different in your configuration or setup since last
> Friday?
> Without more information it'll be hard to diagnose. Is there anything in
> the
> logs? Is your application deployed (it sounds like it isn't, but it's hard
> to
> say)?
>
> d.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Requested-resource-not-found-tp14555866p14574683.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Requested resource not found
Posted by Dave Newton <ne...@yahoo.com>.
--- AbelMacAdam <ab...@gmail.com> wrote:
> That means (IMHO) that my app could be accessed using the following URL:
> http://localhost:8080/app15a/createCustomer.do. But looking at the error I
> can only conclude it could not. So what I'm now wondering is whether my
> configuration is as it should be. I even seem to remember that the example
> worked last friday. Does anyone know what is wrong?
Is there anything different in your configuration or setup since last Friday?
Without more information it'll be hard to diagnose. Is there anything in the
logs? Is your application deployed (it sounds like it isn't, but it's hard to
say)?
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org