java - Error on JAX-RS webservice startup -


i refactored working jax-rs, jersey implementation, webservice in order isolate entities them can used library, changed project , package name, when try tomcat got java.lang.nosuchmethoderror error:

 org.glassfish.jersey.model.internal.rankedprovider.getcontracttypes()ljava/util/set;     @ org.glassfish.jersey.server.applicationhandler.filternamebound(applicationhandler.java:801)     @ org.glassfish.jersey.server.applicationhandler.getprocessingproviders(applicationhandler.java:702)     @ org.glassfish.jersey.server.applicationhandler.initialize(applicationhandler.java:484)     @ org.glassfish.jersey.server.applicationhandler.access$500(applicationhandler.java:166)     @ org.glassfish.jersey.server.applicationhandler$3.run(applicationhandler.java:327) 

i have googled cant find related specific error

those dependencies of entity project:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>br.com.logtec</groupid> <artifactid>zaprango-entity</artifactid> <version>1.0</version>  <profiles>     <profile>         <id>default</id>          <activation>             <activebydefault>true</activebydefault>         </activation>          <properties>             <qbeasy.version>1.1</qbeasy.version>             <maven-compiler.version>1.8</maven-compiler.version>             <uk.co.jemos.podam.podam.version>4.7.3.release</uk.co.jemos.podam.podam.version>         </properties>          <build>             <plugins>                 <plugin>                     <artifactid>maven-compiler-plugin</artifactid>                     <version>3.2</version>                     <configuration>                         <source>${maven-compiler.version}</source>                         <target>${maven-compiler.version}</target>                     </configuration>                 </plugin>             </plugins>                   </build>          <dependencies>             <!-- qbeasy -->             <dependency>                 <groupid>br.com.boilerplatecorp</groupid>                 <artifactid>qbeasy</artifactid>                 <version>${qbeasy.version}</version>             </dependency>              <!-- podam -->             <dependency>                 <groupid>uk.co.jemos.podam</groupid>                 <artifactid>podam</artifactid>                 <version>${uk.co.jemos.podam.podam.version}</version>                 <scope>test</scope>             </dependency>         </dependencies>     </profile>      <profile>         <id>tomcat</id>          <activation>             <activebydefault>true</activebydefault>         </activation>          <properties>             <jersey-servlet.version>2.16</jersey-servlet.version>             <org.hibernate.version>4.3.6.final</org.hibernate.version>             <jackson.version>2.16</jackson.version>         </properties>          <dependencies>             <!-- jpa/hibernate impl -->             <dependency>                 <groupid>org.hibernate</groupid>                 <artifactid>hibernate-entitymanager</artifactid>                 <version>${org.hibernate.version}</version>             </dependency>              <!-- jackson -->             <dependency>                 <groupid>org.glassfish.jersey.media</groupid>                 <artifactid>jersey-media-json-jackson</artifactid>                 <version>${jackson.version}</version>                 <exclusions>                     <exclusion>                         <artifactid>jackson-annotations</artifactid>                         <groupid>com.fasterxml.jackson.core</groupid>                     </exclusion>                 </exclusions>             </dependency>              <dependency>                 <groupid>com.fasterxml.jackson.datatype</groupid>                 <artifactid>jackson-datatype-jsr310</artifactid>                 <version>2.5.1</version>             </dependency>              <!-- jax-rs/jersey impl -->             <dependency>                 <groupid>org.glassfish.jersey.containers</groupid>                 <artifactid>jersey-container-servlet</artifactid>                 <version>${jersey-servlet.version}</version>             </dependency>         </dependencies>     </profile> </profiles> 

and ws dependencies:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>logtec</groupid> <artifactid>zaprango-ws</artifactid> <version>0.0.1-snapshot</version> <packaging>war</packaging>  <profiles>     <profile>         <id>default</id>          <activation>             <activebydefault>true</activebydefault>         </activation>          <properties>             <!-- propriedades projeto -->             <project.build.sourceencoding>utf-8</project.build.sourceencoding>             <maven.compiler.source>1.8</maven.compiler.source>             <maven.compiler.target>1.8</maven.compiler.target>             <maven.compiler.fork>true</maven.compiler.fork>              <!-- dependencias -->             <jee.version>7.0</jee.version>             <qbeasy.version>1.1</qbeasy.version>             <modelmapper.version>0.7.3</modelmapper.version>             <maven-compiler.version>1.8</maven-compiler.version>         </properties>          <build>             <plugins>                 <plugin>                     <artifactid>maven-compiler-plugin</artifactid>                     <version>3.2</version>                     <configuration>                         <source>${maven-compiler.version}</source>                         <target>${maven-compiler.version}</target>                     </configuration>                 </plugin>             </plugins>                   </build>          <dependencies>             <dependency>                 <groupid>br.com.logtec</groupid>                 <artifactid>zaprango-entity</artifactid>                 <version>1.0</version>             </dependency>              <!-- jee 7 api -->             <dependency>                 <groupid>javax</groupid>                 <artifactid>javaee-api</artifactid>                 <version>${jee.version}</version>             </dependency>              <!-- model mapper -->             <dependency>               <groupid>org.modelmapper</groupid>               <artifactid>modelmapper</artifactid>               <version>${modelmapper.version}</version>             </dependency>              <dependency>                 <groupid>commons-codec</groupid>                 <artifactid>commons-codec</artifactid>                 <version>1.10</version>             </dependency>         </dependencies>      </profile>      <profile>         <id>tomcat</id>          <activation>             <activebydefault>true</activebydefault>         </activation>          <properties>             <org.postgresql.jdbc.version>9.3-1102-jdbc4</org.postgresql.jdbc.version>             <weld.version>2.2.4.final</weld.version>             <jersey-cdi.version>2.14</jersey-cdi.version>             <org.hibernate.version>4.3.6.final</org.hibernate.version>             <org.hibernate-validator.version>5.1.1.final</org.hibernate-validator.version>             <c3p0.version>4.3.8.final</c3p0.version>             <deltaspike.version>1.2.1</deltaspike.version>             <jackson.version>2.16</jackson.version>         </properties>          <dependencies>             <!-- cdi/ weld impl -->             <dependency>                 <groupid>org.jboss.weld.servlet</groupid>                 <artifactid>weld-servlet</artifactid>                 <version>${weld.version}</version>             </dependency>              <!-- possibilitando o uso de de cdi com o jersey -->             <dependency>                 <groupid>org.glassfish.jersey.containers.glassfish</groupid>                 <artifactid>jersey-gf-cdi</artifactid>                 <version>${jersey-cdi.version}</version>             </dependency>              <!-- jdbc driver -->             <dependency>                 <groupid>org.postgresql</groupid>                 <artifactid>postgresql</artifactid>                 <version>${org.postgresql.jdbc.version}</version>             </dependency>              <!-- bean validation/hibernate impl -->             <dependency>                 <groupid>org.hibernate</groupid>                 <artifactid>hibernate-validator</artifactid>                 <version>${org.hibernate-validator.version}</version>             </dependency>              <!-- c3p0 -->             <dependency>                 <groupid>org.hibernate</groupid>                 <artifactid>hibernate-c3p0</artifactid>                 <version>${c3p0.version}</version>             </dependency>         </dependencies>     </profile>      <profile>         <id>test</id>          <activation>             <activebydefault>true</activebydefault>         </activation>          <properties>             <junit.junit.version>4.12</junit.junit.version>             <uk.co.jemos.podam.podam.version>4.7.3.release</uk.co.jemos.podam.podam.version>             <arquillian-bom.version>1.1.7.final</arquillian-bom.version>             <surefire.version>2.17</surefire.version>         </properties>          <dependencymanagement>             <dependencies>                 <dependency>                     <groupid>org.jboss.arquillian</groupid>                     <artifactid>arquillian-bom</artifactid>                     <version>${arquillian-bom.version}</version>                     <scope>import</scope>                     <type>pom</type>                 </dependency>                  <dependency>                     <groupid>org.jboss.shrinkwrap.resolver</groupid>                     <artifactid>shrinkwrap-resolver-bom</artifactid>                     <version>2.0.0-alpha-5</version>                     <scope>import</scope>                     <type>pom</type>                 </dependency>             </dependencies>         </dependencymanagement>          <build>             <plugins>                 <plugin>                     <artifactid>maven-surefire-plugin</artifactid>                     <version>${surefire.version}</version>                 </plugin>             </plugins>         </build>          <dependencies>             <!-- junit -->             <dependency>                 <groupid>junit</groupid>                 <artifactid>junit</artifactid>                 <version>${junit.junit.version}</version>                 <scope>test</scope>             </dependency>              <!-- integracao junit e arquillian -->             <dependency>                 <groupid>org.jboss.arquillian.junit</groupid>                 <artifactid>arquillian-junit-container</artifactid>                 <scope>test</scope>             </dependency>              <dependency>                 <groupid>org.jboss.arquillian.container</groupid>                 <artifactid>arquillian-weld-ee-embedded-1.1</artifactid>                 <version>1.0.0.cr3</version>                 <scope>test</scope>             </dependency>              <dependency>                 <groupid>org.jboss.weld</groupid>                 <artifactid>weld-core</artifactid>                 <version>1.1.5.final</version>                 <scope>test</scope>             </dependency>              <dependency>                 <groupid>org.slf4j</groupid>                 <artifactid>slf4j-simple</artifactid>                 <version>1.6.4</version>             </dependency>              <dependency>                 <groupid>log4j</groupid>                 <artifactid>log4j</artifactid>                 <version>1.2.17</version>             </dependency>              <dependency>                 <groupid>org.jboss.shrinkwrap.resolver</groupid>                 <artifactid>shrinkwrap-resolver-api</artifactid>                 <scope>test</scope>             </dependency>              <dependency>                 <groupid>org.jboss.shrinkwrap.resolver</groupid>                 <artifactid>shrinkwrap-resolver-impl-maven</artifactid>                 <scope>test</scope>             </dependency>              <dependency>                 <groupid>org.jboss.shrinkwrap.resolver</groupid>                 <artifactid>shrinkwrap-resolver-api-maven</artifactid>                 <scope>test</scope>             </dependency>              <!-- podam -->             <dependency>                 <groupid>uk.co.jemos.podam</groupid>                 <artifactid>podam</artifactid>                 <version>${uk.co.jemos.podam.podam.version}</version>                 <scope>test</scope>             </dependency>         </dependencies>     </profile> </profiles> 

from experience error happens when using incompatible versions of libraries. check jersey libraries using compatible , there no jar of other versions in classpath. found class mentioned in 'jax-rs-ri' dependency, start checking probably. luck!


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -