The first Servlet program written with the MyEclipse tool — HelloWorld (refer to Section 4.1 of Java Web Programming). After the Web project is created, Tomcat is started through the MyEclipse development tool. See the Console window to output the server startup information as follows:
Then, when testing the program by typing the URL in the browser address bar, a 404 error occurs, as shown below:
My development environment is MyEclipse 2014+Tomcat 8.0. Previously, there were some new features in MyEclipse that did not support JDK 1.8. Later, I wondered if there was a version mismatch between development environments, so I tried to change Tomcat 8.0 to Tomcat 7.0.
Then, when testing the program by typing the URL in the browser address bar, a 404 error occurs, as shown below:
My development environment is MyEclipse 2014+Tomcat 8.0. Previously, there were some new features in MyEclipse that did not support JDK 1.8. Later, I wondered if there was a version mismatch between development environments, so I tried to change Tomcat 8.0 to Tomcat 7.0.
Read More:
- Exception of browser accessing servlet404
- Possible causes and solutions of 404 problems in accessing servlet pages
- Problems of accessing servlet display 404 on MyEclipse
- Chrome browser settings cause err when accessing the website_ FAILED
- Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p
- The spring boot set appears in the stand-alone version of redis Servlet.service () for servlet [dispatcherServlet] in context with path [] thr
- An error was reported when springboot connected to redis Servlet.service () for servlet [dispatcherServlet] in context with path [] threw e
- The solution to the problem that the method of interacting with database in the servlet class is invalid after the servlet submits 404, 500 refresh and becomes 404, and after connecting to the data pool
- [Solved] SpringMVC Run Error: SEVERE-Servlet.service() for servlet jsp threw exception
- Spring boot project running error: Servlet.service () for servlet [dispatcherServlet] threw exception
- 404 exception in servlet operation
- 404 error in accessing GitHub personal blog
- The browser console reports failed to load resource: net :: ERR_CONNECTION_RESET, which results in unable to log in
- Sublime text’s open in browser does not respond
- In chome browser, console reports an error but does not display it
- Syntax error in Vue ie10 browser
- Linux Tomcat accessing files on the server
- Solutions to the lack of minimize and maximize buttons in CentOS Chrome browser
- Error 500: javax.servlet.ServletException : srve0207e: Solutions
- [spring] start error: nosuchmethoderror: javax.servlet.http . HttpServletResponse.getStatus () I