Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » http status 404 - the requested resource is not available
http status 404 - the requested resource is not available [message #1099914] Mon, 02 September 2013 07:33 Go to next message
Eclipse UserFriend
Hiii



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.

[Updated on: Tue, 03 September 2013 00:52] by Moderator

Re: http status 404 - the requested resource is not available [message #1100024 is a reply to message #1099914] Mon, 02 September 2013 10:50 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
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
icon14.gif  Re: http status 404 - the requested resource is not available [message #1100441 is a reply to message #1100024] Tue, 03 September 2013 01:52 Go to previous messageGo to next message
Eclipse UserFriend
Thanks..... It worked. Smile

I have just put my jsp file under WebContent folder instead of WEB-INF folder. This

solved my issue.

[Updated on: Tue, 03 September 2013 08:53] by Moderator

Re: http status 404 - the requested resource is not available [message #1100705 is a reply to message #1100024] Tue, 03 September 2013 09:25 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: http status 404 - the requested resource is not available [message #1101448 is a reply to message #1100705] Wed, 04 September 2013 09:18 Go to previous messageGo to next message
Eclipse UserFriend
On 9/3/2013 9:25 AM, suvarna deo wrote:
> 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
Re: http status 404 - the requested resource is not available [message #1101933 is a reply to message #1101448] Thu, 05 September 2013 01:50 Go to previous messageGo to next message
Eclipse UserFriend
Thank you so much for your reply.

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.

Smile

[Updated on: Thu, 05 September 2013 01:51] by Moderator

Re: http status 404 - the requested resource is not available [message #1695094 is a reply to message #1100441] Tue, 12 May 2015 00:05 Go to previous messageGo to next message
Eclipse UserFriend
suvarna deo wrote on Tue, 03 September 2013 05:52
Thanks..... It worked. Smile

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.
Re: http status 404 - the requested resource is not available [message #1750972 is a reply to message #1101933] Tue, 03 January 2017 04:09 Go to previous message
Eclipse UserFriend
while running Struts I got following error.....

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
Previous Topic:JSDT working set not working for subfolders
Next Topic:JSDT
Goto Forum:
  


Current Time: Thu Sep 25 20:27:11 EDT 2025

Powered by FUDForum. Page generated in 0.17831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top