Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » tomcat starts, but cannot get to my webapp(tomcat says 404 requested resource not found)
icon5.gif  tomcat starts, but cannot get to my webapp [message #656286] Thu, 24 February 2011 22:53 Go to next message
Nilesh is currently offline NileshFriend
Messages: 12
Registered: June 2010
Junior Member
Hello,
i set up, compiled and ran my webapp successfully on eclipse helios (Version: Helios Service Release 1
Build id: 20100917-0705)
the problem is tomcat starts successfully, my application logs show that everything started as well, but when i go to localhost:8080, i get a 404: resource not found from tomcat.

only thing i can think of is that somehow my webapp didn't bind to the port. but i can't figure out why or how to fix it.

any ideas?

Thanks,
Nilesh
Re: tomcat starts, but cannot get to my webapp [message #656435 is a reply to message #656286] Fri, 25 February 2011 15:47 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 2/24/11 5:53 PM, Nilesh wrote:
> Hello,
> i set up, compiled and ran my webapp successfully on eclipse helios
> (Version: Helios Service Release 1
> Build id: 20100917-0705)
> the problem is tomcat starts successfully, my application logs show that
> everything started as well, but when i go to localhost:8080, i get a
> 404: resource not found from tomcat.
>
> only thing i can think of is that somehow my webapp didn't bind to the
> port. but i can't figure out why or how to fix it.
>
> any ideas?

First of all, webapps don't bind to specific ports; the app server
(Tomcat in your case) listens on ports for incoming connections and
routes the requests to the appropriate webapp based on the URL and how
the webapps are configured.

In any case, these types of questions are most appropriate in the Web
Tools (WTP) forum group.

Eric
Re: tomcat starts, but cannot get to my webapp [message #656436 is a reply to message #656286] Fri, 25 February 2011 15:52 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 24-Feb-11 15:53, Nilesh wrote:
> Hello,
> i set up, compiled and ran my webapp successfully on eclipse helios
> (Version: Helios Service Release 1
> Build id: 20100917-0705)
> the problem is tomcat starts successfully, my application logs show that
> everything started as well, but when i go to localhost:8080, i get a
> 404: resource not found from tomcat.
>
> only thing i can think of is that somehow my webapp didn't bind to the
> port. but i can't figure out why or how to fix it.
>
> any ideas?
>
> Thanks,
> Nilesh

I don't understand. You say it ran successfully, then you say you got an
HTTP status of 404? Was that after it ran successfully or do you mean
that everything just seemed okay right up until you got the 404?

What else can you say about your app?

Typically, a 404 for me occurs when things aren't right between the rest
of my app and the web descriptor, web.xml. Or, the URI in the browser is
wrong (i.e.: doesn't match the web descriptor).

This question is probably better asked on the Eclipse webtools forum,
however, there are still many of us that visit this forum who'd be happy
to pursue this with you.

Russ
Re: tomcat starts, but cannot get to my webapp [message #656462 is a reply to message #656286] Fri, 25 February 2011 18:46 Go to previous message
Nilesh is currently offline NileshFriend
Messages: 12
Registered: June 2010
Junior Member
Thanks for the responses.

Eric, i stand technically corrected - since we run just one webapp per tomcat instance, i equated the webapp with the tomcat instance listening on 8080. apologies. in the past, using jboss, we have had times when the app server didn't end up listening on the port due to previous errors, but i guess that wouldn't happen on tomcat.

Russ, thanks for attempting to look past my errors.
by "ran successfully" i mean tomcat says "server started successfully after xxxx seconds" on the console, and my app log says "application started successfully" and there are no exceptions.

the thing is that i have used IntelliJ forever, and have not had any such issues - i noticed that eclipse creates its own instance of tomcat within the workspace (i understand that's changeable) so i'm not quite sure how that whole thing works. still reading...

i'll move this thread to WTP by popular demand.

Thanks again,
Nilesh
Previous Topic:CFEclipse plugin may installed either in my (separate) Flash Builder 4 or Eclipse Helios
Next Topic:Remove trailing white spaces on all lines
Goto Forum:
  


Current Time: Thu Mar 28 11:23:04 GMT 2024

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

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

Back to the top