I've been struggling with deploying JAX-WS RESTful services to Tomcat 8 from Netbeans. My dev env is as follows: - Windows 8.1 - Netbeans 8.0.2 - Tomcat 8.0.9.0 (bundled with Netbeans along with GlassFish 4.1) - jdk1.7.0_51 - javaee-web-api-7.0.jar which has JAX-WS as part of it
My web app is a Maven project. Neatbeans deploys it to GlassFish 4.1 and runs just fine, with all REStful services working as expected. When I deploy to Tomcat, the WAR deploys and the web app seems to initialize, with the following lines present in the Tomcat startup log, which seem ok: 30-Aug-2015 17:43:04.318 INFO [localhost-startStop-1] org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer.addServletWithApplication Registering the Jersey servlet application, named com.uristic.webrest.ApplicationConfig, at the servlet mapping /webresources/*, with the Application class of the same name. 30-Aug-2015 17:43:05.028 INFO [localhost-startStop-1] org.glassfish.jersey.server.ApplicationHandler.initialize Initiating Jersey application, version Jersey: 2.5.1 2014-01-02 13:43:00...
However, the WS URLs return 404.
The POM file looks like this:
<modelVersion>4.0.0</modelVersion>
<groupId>org.mygroup</groupId>
<artifactId>myproject</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>myproject</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
I researched this site as well as other Web resources, then tried quite a few recommended things, including adding the cargo plugin to the POM, still to no avail. I'm probably missing something important about Tomcat (which i'm new to) and need an expert help, please.