Category Archives: maven.pom


at org.glassfish.jersey.server.ApplicationHandler.<init>(
at org.glassfish.jersey.server.ApplicationHandler.<init>(
at org.glassfish.jersey.servlet.WebComponent.<init>(
at org.glassfish.jersey.servlet.ServletContainer.init(
at org.glassfish.jersey.servlet.ServletContainer.init(
at javax.servlet.GenericServlet.init(
at org.apache.catalina.core.StandardWrapper.initServlet(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase$
at org.apache.catalina.core.ContainerBase$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Solution :

This error usual means that you have a both a JAX-RS 1 and JAX-RS 2 jar on the classpath. 

Jersey 2 uses JAX-RS 2 (, but if you have the jsr311-api.jar also, which is JAX-RS 1, there is a in each jar.

But the jsr311-api Application doesn’t have the method getProperties() (hence NoSuchMethodError).

So just exclude these dependencies manually or by eclipse dependency hierarchy feature :

1. Open POM
2. Open dependency hierarchy tab in bottom.
3. search for jsr and exclude all jsr dependencies.

83 total views, no views today

Maven – Pom.xml Issues.

Maven — > pom.xml error resolution

Problem 1. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved.

Soultion :- 
1 . Just go to the path 


2.  Delete the plugin which is causing the issue .
3. In Eclipse clean and build your project again
4. choose Maven->Update Dependencies.

Problem 2 : Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central ( The operation was cancelled.

Solution :- 
Rightclick on your project in eclipse and choose Maven->Update Dependencies
Choose Force update of snapshot release.

85 total views, no views today