After many years away from java (I was lost in .net land, if that is usefull) I now find myself in a "java 7" shop (I'm told this will not change) and I'm trying to follow the tutorial at http://www.mkyong.com/webservices/jax-rs/jersey-hello-world-example/ and no matter what I do, tomcat7 is reporting a very fast 404 error no matter what I do.
I have googled for this for the past few days - its been a low priority until now - and I have not found anything that can help me. None of my peers can figure this out. I have no firewalls in the way and I am using the same version everybody else on my team is. I have tried multiple things and every search result I have found has simply not worked.
I'm not sure what to do; I'm currently being forced to use the Kepler version of Eclipse and while so I need to get this working in eclipse, with tomcat7, and I am making absolutely no progress due to this issue.
- Eclipse: Kepler but "enterprise-ized" that I cant control. aka we must use it.
- Tomcat: Tomcat7
Project was generated in maven as a "webapp" archetype and then imported into eclipse, the only thing I did not do to the letter by that tutorial was run "eclipse:eclipse in maven as the first time I did that it corrupted the project and created a var-type in the classpath that maven/eclipse doesn't understand (type: 4) so i redid everything from scratch without running that command and then imported it into eclipse successfully.
Question: What am I doing wrong? How do I debug this and help myself?
I'm under the impression that tomcat normally has a manager/UI that can be used to help debug, but even after looking at the docs for tomcat and then copy and pasting the configuration they say to use to enable it, then bouncing the tomcat service and reloading eclipse, I still get that 404 error no matter what url/link I go to.
Thank you in advance.
The only logs I get are as follows:
May 06, 2015 2:32:40 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:\Users\duking\Desktop\ride-5.1.1-win64\OpenJDK\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft Application Virtualization Client;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Common Files\Hitachi ID\;C:\Program Files (x86)\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\bin;C:\Program Files\Java\jdk1.7.0_79\bin;C:\Program Files (x86)\WinMerge;c:\cygwin64\bin;c:\cygwin64\usr\bin;C:\Program Files (x86)\Nmap;.
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
May 06, 2015 2:32:41 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8081"]
May 06, 2015 2:32:41 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8082"]
May 06, 2015 2:32:41 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8083"]
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
May 06, 2015 2:32:41 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 624 ms
May 06, 2015 2:32:41 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
May 06, 2015 2:32:41 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8081"]
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8082"]
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8083"]
May 06, 2015 2:32:41 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
May 06, 2015 2:32:41 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 582 ms