Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:33 Go to next message
suvarna deo is currently offline suvarna deoFriend
Messages: 11
Registered: August 2013
Junior Member
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 04:52]

Report message to a moderator

Re: http status 404 - the requested resource is not available [message #1100024 is a reply to message #1099914] Mon, 02 September 2013 14:50 Go to previous messageGo to next message
Roberto Sanchez Herrera is currently offline Roberto Sanchez HerreraFriend
Messages: 36
Registered: January 2011
Member
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 05:52 Go to previous messageGo to next message
suvarna deo is currently offline suvarna deoFriend
Messages: 11
Registered: August 2013
Junior Member
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 12:53]

Report message to a moderator

Re: http status 404 - the requested resource is not available [message #1100705 is a reply to message #1100024] Tue, 03 September 2013 13:25 Go to previous messageGo to next message
suvarna deo is currently offline suvarna deoFriend
Messages: 11
Registered: August 2013
Junior Member
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 13:18 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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 05:50 Go to previous messageGo to next message
suvarna deo is currently offline suvarna deoFriend
Messages: 11
Registered: August 2013
Junior Member
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 05:51]

Report message to a moderator

Re: http status 404 - the requested resource is not available [message #1695094 is a reply to message #1100441] Tue, 12 May 2015 04:05 Go to previous messageGo to next message
ground breaker is currently offline ground breakerFriend
Messages: 1
Registered: May 2015
Location: Russia
Junior Member
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 09:09 Go to previous message
naveen kumar kyama is currently offline naveen kumar kyamaFriend
Messages: 1
Registered: January 2017
Junior Member
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: Sat Apr 20 09:44:18 GMT 2024

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

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

Back to the top