Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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 deo
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 Herrera
Messages: 30
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 deo
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 deo
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 Isaacs
Messages: 1310
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 message
suvarna deo is currently offline suvarna deo
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

Previous Topic:debugging question
Next Topic:WS-Security problem with eclipse ide
Goto Forum:
  


Current Time: Sun Oct 26 01:21:43 GMT 2014

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

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