TOMCAT - HTTP Status 404

I installed my server in eclipse, and when I started it, console printing:

mai 02, 2013 4:05:13 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files (x86)\Microsoft Application Virtualization Client;c:\Program Files (x86)\Open Text\View\bin;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Java\jre7\bin;C:\WorkspacePPL\apache-maven-3.0.4\bin;. mai 02, 2013 4:05:13 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ppl-webapp' did not find a matching property. mai 02, 2013 4:05:13 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 mai 02, 2013 4:05:13 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 604 ms mai 02, 2013 4:05:14 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina mai 02, 2013 4:05:14 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.36 mai 02, 2013 4:05:14 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 mai 02, 2013 4:05:14 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 mai 02, 2013 4:05:14 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/22 config=null mai 02, 2013 4:05:14 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 493 ms 

but then if I look at http://localhost:8080 , I get:

 HTTP Status 404 - / --------------------------------------------------------------------- type Status report message / description The requested resource is not available. 

For now, I should see the Tomcat welcome page.

If I run Tomcat outside of the eclipse, I can get to the welcome page.

+54
eclipse tomcat
May 2 '13 at 14:29
source share
3 answers
  • Click Window > Show view > Server or right-click on the server in the Servers view, select Properties.
  • In the General panel, click the Switch Location button.
  • "Location: [workspace metadata]" should be replaced by something else.
  • Open the browse screen for the server by double-clicking it.
  • On the Server Locations tab, select Use Tomcat Location.
  • Save the configurations and restart the server.

You can follow the steps above before starting the server. Because the server location section is unavailable, unavailable.

server Locations in eclipse view

+165
May 2 '13 at 14:35
source

To run your program, put the jsp files in web content, not under WEB-INF , because in Eclipse the files are not accessible there by the server, so try installing the start server and viewing the URL:

 http://localhost:8080/YourProject/yourfile.jsp 

then surely your problem will be solved.

+23
May 7 '14 at 10:07
source

You do not need to use the Tomcat installation as the server location. It’s much easier to just copy the files to the ROOT folder.

Eclipse forgets to copy the default applications (ROOT, examples, etc.) when it creates the Tomcat folder inside the Eclipse workspace. Go to C:\apache-tomcat-7.0.8\webapps , R-click on the ROOT folder and copy It. Then go to the Eclipse workspace, go to the .metadata folder and find "wtpwebapps". You should find something like your-eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps (or ../tmp1/wtpwebapps if you already have another server registered in Eclipse ) Go to the wtpwebapps folder, press R-click and paste ROOT (say β€œyes” if asked if you want to merge / replace folders / files). then reload http://localhost/ to see the Tomcat welcome page.

Source: HTTP Status 404 Error in tomcat

+4
Mar 26 '15 at 7:26
source



All Articles