rest - Issue with deploying JAX-WS services to Tomcat 8 -
i've been struggling deploying jax-ws restful services tomcat 8 netbeans. dev env follows: - windows 8.1 - netbeans 8.0.2 - tomcat 8.0.9.0 (bundled netbeans along glassfish 4.1) - jdk1.7.0_51 - javaee-web-api-7.0.jar has jax-ws part of it
my web app maven project. neatbeans deploys glassfish 4.1 , runs fine, restful services working expected. when deploy tomcat, war deploys , web app seems initialize, following lines present in tomcat startup log, seem ok: 30-aug-2015 17:43:04.318 info [localhost-startstop-1] org.glassfish.jersey.servlet.init.jerseyservletcontainerinitializer.addservletwithapplication registering jersey servlet application, named com.uristic.webrest.applicationconfig, @ servlet mapping /webresources/*, application class of 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, ws urls return 404.
the pom file looks 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 site other web resources, tried quite few recommended things, including adding cargo plugin pom, still no avail. i'm missing important tomcat (which i'm new to) , need expert help, please.
Comments
Post a Comment