Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumshttp status 404 - the requested resource is not available
https://www.eclipse.org/forums/index.php/mv/msg/516714/1099914/#msg_1099914
I am trying to run the first jsp file using eclipse,server is tomcat7.
My jsp file is under WebContent/WEB-INF/hello.jsp. when i run as ron on server i am
getting error. HTTP status 404 - the requested resource is not available.
How can i resolve this? Plz suggest me directry structure also.
Thank you.]]>suvarna deo2013-09-02T11:33:58-00:00Re: http status 404 - the requested resource is not available
https://www.eclipse.org/forums/index.php/mv/msg/516714/1100024/#msg_1100024
The jsp files placed directly in WEB-INF are not served by the container to the client (see Servlet 3.0 specification, section 10.5: Directory Structure, page 99). To solve this, the jsp file should be located in WebContent.
Hope this helps]]>Roberto Sanchez Herrera2013-09-02T14:50:26-00:00Re: http status 404 - the requested resource is not available
https://www.eclipse.org/forums/index.php/mv/msg/516714/1100441/#msg_1100441
I have just put my jsp file under WebContent folder instead of WEB-INF folder. This
solved my issue.]]>suvarna deo2013-09-03T05:52:26-00:00Re: http status 404 - the requested resource is not available
https://www.eclipse.org/forums/index.php/mv/msg/516714/1100705/#msg_1100705
Now the issue is that I am geeting the error HTTP 500-Unable to compile class path for
jsp.When i google it, i found class file should be in WEB-INF folder.
How to solve this?
Thanks.]]>suvarna deo2013-09-03T13:25:03-00:00Re: http status 404 - the requested resource is not available
https://www.eclipse.org/forums/index.php/mv/msg/516714/1101448/#msg_1101448
> Hello...
>
> Now the issue is that I am geeting the error HTTP 500-Unable to compile
> class path for
> jsp.When i google it, i found class file should be in WEB-INF folder.
> How to solve this?
>
> Thanks.
You may be mixing technical aspects of Web applications. JSPs are
compiled by the servlet container (i.e. Tomcat), which determines where
the ".java" and ".class" file are created. It definitely won't be under
WEB-INF. In the case of Tomcat, these will be found under a "work"
folder under the "catalina.base" (a.k.a. CATALINA_BASE) location. For
the Tomcat support in WTP, "catalina.base" is typically found under
"<workspace
location>/.metadata/.plugins/org.eclipse.wst.server.core/tmp?". The "?"
starts at 0 and increments for each additional server you might create.
If you are curious about details of the WTP Tomcat support, see the
WTP Tomcat FAQ at http://wiki.eclipse.org/WTP_Tomcat_FAQ.
If you haven't already identified the problem, it is likely related to
the code on the JSP page. I can't say much more without additional
information.
Cheers,
Larry]]>Larry Isaacs2013-09-04T13:18:46-00:00Re: http status 404 - the requested resource is not available
https://www.eclipse.org/forums/index.php/mv/msg/516714/1101933/#msg_1101933
You are right that java file won't be under WEB-INF.
I put my java files under Java Resources-->src folder & jsp files under WebContent folder.
Now all is working fine.
]]>suvarna deo2013-09-05T05:50:26-00:00Re: http status 404 - the requested resource is not available
https://www.eclipse.org/forums/index.php/mv/msg/516714/1695094/#msg_1695094
suvarna deo wrote on Tue, 03 September 2013 05:52
Thanks..... It worked.
I have just put my jsp file under WebContent folder instead of WEB-INF folder. This
solved my issue.
^ This solved my issue
"description: The requested resource is not available."
I also placed my 'index' file in "WebContent" folder instead of "WebContent\WEB-INF" folder.]]>ground breaker2015-05-12T04:05:03-00:00Re: http status 404 - the requested resource is not available
https://www.eclipse.org/forums/index.php/mv/msg/516714/1750972/#msg_1750972
Error accessing url http://localhost:8080/StrutsHelloWorld/
HTTP Status 404 - /StrutsHelloWorld/
type Status report
message /StrutsHelloWorld/
description The requested resource is not available.
Apache Tomcat/7.0.42
HOW TO RECTIFY IT....
PLEASE GIVE ME A SUGGESTION
]]>naveen kumar kyama2017-01-03T09:09:04-00:00