What configuration have you changed?
What is in your app's web.xml file?
p
- I could run Tomcat 7 from the command line and see the Tomcat page at localhost:8080, but using the IDE to start Tomcat I could not. Rather, when starting Tomcat using the IDE I got the HTTP 404. The solution was in setting the 'Server Location' of Tomcat within the IDE, as described here.
- HTTP Status 404 – Not found Type Status Report Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Apache Tomcat/9.0.35.
Recently, I have been learning JSP and servlet, and I can’t avoid dealing with Tomcat. But Tomcat often has a variety of errors. Here are some common solutions I summarized, hoping to be useful to you. More relevant HTTP status 404 content please search the previous article or continue to browse the following related articles, I hope you.
my application is named MediciRiuniti
it is in C:Tomcat 6.0webappsROOT
if i search for localhosot:8081/ i can get tomcat home
i've changed only the port of tomcat, i set it on 8081
in my C:Tomcat 6.0webappsROOTMediciRiunitiWEB-INFweb.xml is written this:
<?xml version='1.0' encoding='UTF-8' ?>
<web-app xmlns='http://java.sun.com/xml/ns/j2ee'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd'
version='2.4'>
<display-name>MediciRiuniti Application</display-name>
<description>Applicazione</description>
<servlet>
<servlet-name>EventController</servlet-name>
<servlet-class>mediciRiuniti.web.EventController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>EventController</servlet-name>
<url-pattern>/controller</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
Tomcat 404 Status Page
</welcome-file-list>
</web-app>
if i build my project i can see the compiled class in WEB-INF/src/classes
thank you
--
faciolo
Today I was running Apache Tomcat from Eclipse and while accessing URL http://localhost:8080
found HTTP Status 404 – Not Found
error.
The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Gaussian for mac os.
Do you have any of below questions?
- Tomcat starts but doesn’t display webpage
- Can’t connect to Tomcat even though it’s running
- How to Solve Common Tomcat Problems
- Can’t connect to localhost via browser. Can ping localhost
- How to open tomcat home page in browser
- localhost 8080 not working for tomcat
For all above types of issues, you are at right place.
I’ve setup Apache Tomcat by following detailed steps using in-depth tutorial.
Tomcat Http Status 404 Eclipse
Steps worked perfectly fine but as I didn’t have any projects added to tomcat webapps folder
it threw 404 error for me.
If you also face 404 Page not found error
then try following below steps:
Step-1
- Go to Eclipse IDE
- Click on
Servers
Tab - Double click on
Tomcat v9.0 Server at localhost
Step-2
- New Apache Tomcat configuration page will open
- Go to
Server Location
section - Select
Use Tomcat installation
(takes control of Tomcat installation)
Step-3
- Save configuration
Restart
Server by right clicking on tomcat server and clickRestart
- Visit
http://localhost:8080
again and now you should see working tomcat page
I hope this tutorial works well for you. Happy coding and keep visiting.
This tutorial works for Apache Tomcat 10.0
too.
Join the Discussion
If you liked this article, then please share it on social media. Still have any questions about an article, leave us a comment.
Comments are closed.