eclipse - TOMCAT - HTTP Status 404 -
this question has answer here:
i set server in eclipse , when run console prints:
mai 02, 2013 4:05:13 pm org.apache.catalina.core.aprlifecyclelistener init info: apr based apache tomcat native library allows optimal performance in production environments not found on 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' 'org.eclipse.jst.jee.server:ppl-webapp' did not find 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 browse http://localhost:8080
get:
http status 404 - / --------------------------------------------------------------------- type status report message / description requested resource not available.
while should see tomcat welcome page.
if run tomcat outside of eclipse can reach welcome page.
- click on
window > show view > server
or right click on server in "servers" view, select "properties". - in "general" panel, click on "switch location" button.
- the "location: [workspace metadata]" should replace else.
- open overview screen server double clicking it.
- in server locations tab , select "use tomcat location".
- save configurations , restart server.
you may want follow steps above before starting server. because server location section goes grayed-unreachable.
Comments
Post a Comment