Can't Resolve Clash for

I was exploring IDEA Utlimate before purchase, built an application on my Fedora box, and then produced a WAR that I tried to deploy to tomcat8 on a Pi. The application works fine within the IDEA environment, but I run into a problem trying to get the right version of included. I've explicitly added a version to my project that is version 2.0.1 of the API, and everything runs fine when I'm running it in the iDE. When I package up the WAR file and deploy it to the Pi running tomcat 8.0.29, I cannot start my package because it is somehow finding a 2.0 flavor of the API that lacks the Application.getProperties() method. I can accept that there is bundling on top of bundling on top of bundling here, but is there some way to get my web application to specify pulling jar files out of the provided lib files first? I see the right jar file in the exploded WAR, but somehow in the other environment I still end up with the wrong Jar being found first.

30-Dec-2015 15:43:20.852 SEVERE [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log StandardWrapper.Throwable
    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.addChildInternal(
    at org.apache.catalina.core.ContainerBase.addChild(
    at org.apache.catalina.core.StandardHost.addChild(
    at org.apache.catalina.startup.HostConfig.deployWAR(
    at org.apache.catalina.startup.HostConfig$
    at java.util.concurrent.Executors$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$

I feel like this is something I'm supposed to be able to control from the project somewhere, but I haven't been able to locate a working solution. Both machines are running Oracle JDK 1.8. I've installed tomcat on the Pi, but little else Java-oriented.

1 comment
Comment actions Permalink

It would help if you could share a sample project that would reproduce this problem.


Please sign in to leave a comment.