java.lang.LinkageError while using HttpServletRequest - java

Just want to use HttpServletRequest in my Rest service.
Get the follow error page when try to do GET request:
java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoader) previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest"
I use apache-karaf-4.1.5 as a container, apache-cxf for JAX-RS implementation. And I marked javax.servlet-api as provided in pom.xml:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>3.1.7</version>
</dependency>
So.. any thoughts to avoid this error and makes this work properly ?
Thanks!
UPDATE mvn dependency:tree output:
[INFO] +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.0:compile
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.0:compile
[INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.0:compile
[INFO] +- org.springframework:spring-jdbc:jar:4.3.11.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:4.3.11.RELEASE:compile
[INFO] | +- org.springframework:spring-core:jar:4.3.11.RELEASE:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.2:compile
[INFO] | \- org.springframework:spring-tx:jar:4.3.11.RELEASE:compile
[INFO] +- net.sourceforge.jtds:jtds:jar:1.3.1:test
[INFO] +- commons-io:commons-io:jar:2.4:compile
[INFO] +- com.google.guava:guava:jar:19.0:compile
[INFO] +- org.apache.commons:commons-csv:jar:1.1:compile
[INFO] +- org.apache.commons:commons-email:jar:1.4:compile
[INFO] | +- com.sun.mail:javax.mail:jar:1.5.2:compile
[INFO] | \- javax.activation:activation:jar:1.1.1:compile
[INFO] +- joda-time:joda-time:jar:1.6:compile
[INFO] +- commons-dbutils:commons-dbutils:jar:1.5:compile
[INFO] +- com.thoughtworks.xstream:xstream:jar:1.3.1:compile
[INFO] | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.0:compile
[INFO] +- javax.ws.rs:javax.ws.rs-api:jar:2.0:compile
[INFO] +- org.apache.poi:poi-ooxml:jar:3.17:compile
[INFO] | +- org.apache.poi:poi:jar:3.17:compile
[INFO] | | +- commons-codec:commons-codec:jar:1.10:compile
[INFO] | | \- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] | +- org.apache.poi:poi-ooxml-schemas:jar:3.17:compile
[INFO] | | \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile
[INFO] | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | \- com.github.virtuald:curvesapi:jar:1.04:compile
[INFO] +- org.dom4j:dom4j:jar:2.0.1:compile
[INFO] | \- jaxen:jaxen:jar:1.1.6:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
[INFO] +- org.whitesource:maven-dependency-tree-parser:jar:1.0.5:compile
[INFO] | \- commons-lang:commons-lang:jar:2.4:compile
[INFO] +- org.apache.cxf:cxf-rt-frontend-jaxrs:bundle:3.1.7:provided
[INFO] | +- org.apache.cxf:cxf-core:jar:3.1.7:provided
[INFO] | | +- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:provided
[INFO] | | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:provided
[INFO] | | \- org.apache.ws.xmlschema:xmlschema-core:jar:2.2.1:provided
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.2:provided
[INFO] | \- org.apache.cxf:cxf-rt-transports-http:jar:3.1.7:provided
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.0:test
[INFO] | \- log4j:log4j:jar:1.2.17:test
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- org.mockito:mockito-all:jar:1.10.19:test

Related

java.lang.NoSuchMethodError: 'boolean com.google.api.client.http.HttpTransport.isMtls()

This is not duplicate of this and this
my pom.xml has only two dependency .but somehow in run time i am getting
java.lang.NoSuchMethodError: 'boolean com.google.api.client.http.HttpTransport.isMtls()'
at com.google.api.services.bigquery.Bigquery$Builder.chooseEndpoint(Bigquery.java:6381)
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>${google.cloud.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.***.sharepoint</groupId>
<artifactId>sharepoint-util</artifactId>
<version>2.1</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-bigquery</artifactId>
</dependency>
</dependencies>
i have checked in dependency tree there are no conflicting version of the jar.
attaching dependency tree. i have tried to add the scope as provided in maven but other bigquery imports are failing with noclassdeffound error.
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< AA>--------------
[INFO] Building AA 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]-----------------
----------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # AA
---
[INFO] *******g:jar:1.0-SNAPSHOT
[INFO] +- com.***.sharepoint:sharepoint-util:jar:2.1:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.4:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | +- org.json:json:jar:20180813:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.6:compile
[INFO] | +- javax.mail:mail:jar:1.4.7:compile
[INFO] | | \- javax.activation:activation:jar:1.1:compile
[INFO] | +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.9:compile
[INFO] | +- commons-io:commons-io:jar:2.6:compile
[INFO] | +- com.squareup.okhttp:okhttp:jar:2.7.5:compile
[INFO] | | \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] | +- commons-cli:commons-cli:jar:1.4:compile
[INFO] | +- org.apache.httpcomponents:httpmime:jar:4.3.1:compile
[INFO] | +- com.google.guava:guava:jar:30.1.1-jre:compile
[INFO] | +- com.google.cloud:google-cloud-storage:jar:2.0.1:compile
[INFO] | | +- com.google.apis:google-api-services-storage:jar:v1-rev20210127-1.32.1:compile
[INFO] | | \- com.google.auto.value:auto-value-annotations:jar:1.8.2:compile
[INFO] | \- org.apache.hadoop:hadoop-common:jar:2.7.3.2.6.5.0-292:compile
[INFO] | +- org.apache.hadoop:hadoop-annotations:jar:2.7.3.2.6.5.0-292:compile
[INFO] | +- org.apache.commons:commons-math3:jar:3.1.1:compile
[INFO] | +- xmlenc:xmlenc:jar:0.52:compile
[INFO] | +- commons-net:commons-net:jar:3.1:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- javax.servlet:servlet-api:jar:2.5:compile
[INFO] | +- org.mortbay.jetty:jetty:jar:6.1.26.hwx:compile
[INFO] | +- org.mortbay.jetty:jetty-util:jar:6.1.26.hwx:compile
[INFO] | +- org.mortbay.jetty:jetty-sslengine:jar:6.1.26.hwx:compile
[INFO] | +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
[INFO] | +- com.sun.jersey:jersey-core:jar:1.9:compile
[INFO] | +- com.sun.jersey:jersey-json:jar:1.9:compile
[INFO] | | +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
[INFO] | | | \- javax.xml.bind:jaxb-api:jar:2.2.2:compile
[INFO] | | | \- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
[INFO] | | \- org.codehaus.jackson:jackson-xc:jar:1.8.3:compile
[INFO] | +- com.sun.jersey:jersey-server:jar:1.9:compile
[INFO] | | \- asm:asm:jar:3.1:compile
[INFO] | +- log4j:log4j:jar:1.2.17:compile
[INFO] | +- net.java.dev.jets3t:jets3t:jar:0.9.0:compile
[INFO] | | \- com.jamesmurty.utils:java-xmlbuilder:jar:0.4:compile
[INFO] | +- com.microsoft.azure:azure-storage:jar:5.4.0:compile
[INFO] | | \- com.microsoft.azure:azure-keyvault-core:jar:0.8.0:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- commons-configuration:commons-configuration:jar:1.6:compile
[INFO] | | +- commons-digester:commons-digester:jar:1.8:compile
[INFO] | | | \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] | | \- commons-beanutils:commons-beanutils-core:jar:1.8.0:compile
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | +- org.apache.avro:avro:jar:1.7.4:compile
[INFO] | | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
[INFO] | | \- org.xerial.snappy:snappy-java:jar:1.0.4.1:compile
[INFO] | +- org.apache.hadoop:hadoop-auth:jar:2.7.3.2.6.5.0-292:compile
[INFO] | | +- com.nimbusds:nimbus-jose-jwt:jar:4.41.1:compile
[INFO] | | | \- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
[INFO] | | +- net.minidev:json-smart:jar:1.3.1:compile
[INFO] | | +- org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15:compile
[INFO] | | | +- org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15:compile
[INFO] | | | +- org.apache.directory.api:api-asn1-api:jar:1.0.0-M20:compile
[INFO] | | | \- org.apache.directory.api:api-util:jar:1.0.0-M20:compile
[INFO] | | \- org.apache.curator:curator-framework:jar:2.7.1:compile
[INFO] | +- com.jcraft:jsch:jar:0.1.54:compile
[INFO] | +- org.apache.curator:curator-client:jar:2.7.1:compile
[INFO] | +- org.apache.curator:curator-recipes:jar:2.7.1:compile
[INFO] | +- org.apache.htrace:htrace-core:jar:3.1.0-incubating:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.6.2.6.5.0-292:compile
[INFO] | | \- io.netty:netty:jar:3.7.0.Final:compile
[INFO] | \- org.apache.commons:commons-compress:jar:1.4.1:compile
[INFO] | \- org.tukaani:xz:jar:1.0:compile
[INFO] \- com.google.cloud:google-cloud-bigquery:jar:2.1.1:compile
[INFO] +- com.google.cloud:google-cloud-core:jar:2.0.5:compile
[INFO] +- com.google.protobuf:protobuf-java-util:jar:3.17.3:compile
[INFO] +- com.google.api.grpc:proto-google-common-protos:jar:2.3.2:compile
[INFO] +- com.google.api.grpc:proto-google-iam-v1:jar:1.0.14:compile
[INFO] +- com.google.auth:google-auth-library-credentials:jar:1.0.0:compile
[INFO] +- com.google.http-client:google-http-client-gson:jar:1.39.2:compile
[INFO] +- com.google.protobuf:protobuf-java:jar:3.17.3:compile
[INFO] +- com.google.cloud:google-cloud-core-http:jar:2.0.5:compile
[INFO] +- com.google.api-client:google-api-client:jar:1.32.1:compile
[INFO] +- com.google.oauth-client:google-oauth-client:jar:1.31.5:compile
[INFO] +- com.google.http-client:google-http-client-apache-v2:jar:1.39.2:compile
[INFO] +- com.google.http-client:google-http-client-appengine:jar:1.39.2:compile
[INFO] +- com.google.api:gax-httpjson:jar:0.86.0:compile
[INFO] +- io.opencensus:opencensus-api:jar:0.28.0:compile
[INFO] +- io.grpc:grpc-context:jar:1.39.0:compile
[INFO] +- io.opencensus:opencensus-contrib-http-util:jar:0.28.0:compile
[INFO] +- com.google.http-client:google-http-client-jackson2:jar:1.39.2:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.12.4:compile
[INFO] +- com.google.http-client:google-http-client:jar:1.39.2:compile
[INFO] +- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- commons-codec:commons-codec:jar:1.15:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.14:compile
[INFO] +- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] +- org.checkerframework:checker-compat-qual:jar:2.5.5:compile
[INFO] +- com.google.auth:google-auth-library-oauth2-http:jar:1.0.0:compile
[INFO] +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] +- com.google.apis:google-api-services-bigquery:jar:v2-rev20210726-1.32.1:compile
[INFO] +- com.google.api:api-common:jar:2.0.1:compile
[INFO] +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] +- org.checkerframework:checker-qual:jar:3.8.0:compile
[INFO] +- com.google.api:gax:jar:2.1.0:compile
[INFO] +- org.threeten:threetenbp:jar:1.5.1:compile
[INFO] \- com.google.errorprone:error_prone_annotations:jar:2.8.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.971 s
[INFO] Finished at: 2022-06-07T22:35:29+05:30
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "localDeploy" could not be activated because it does not exist.
The issue was order of dependency declaration, since my sharepoint declared first it always picked the class that got loaded first. The exclusion tag wont help as well , since its excluded at runtime.

Spring : Migrating to OpenJDK-10 not working, mvn install is working

I am working on a Spring-MVC project, where I am currently trying to migrate to OpenJDK 10. I am able to do a mvn clean install, but when I run the project, it's not working out. I get errors about Pricing.class, Eventlist.class, which are not even part of my project. I am trying to run the project in Jetty-9.4. I have already excluded jetty.annotations from dependency tree, but no luck. I am not even sure that's the error causing this problem.
Error log :
2019-02-19 14:07:56.349:INFO:oeja.AnnotationConfiguration:Scanner-1: Scanning elapsed time=3702ms
2019-02-19 14:07:56.350:WARN:oejw.WebAppContext:Scanner-1: Failed startup of context o.e.j.w.WebAppContext#1db58d85{/,file:///home/akshay/Downloads/twentynotes/target/TOOLTANK/,UNAVAILABLE}
MultiException[java.lang.RuntimeException: Error scanning file Webhook.class, java.lang.RuntimeException: Error scanning file Money.class, java.lang.RuntimeException: Error scanning file EventList.class, java.lang.RuntimeException: Error scanning file CheckoutList.class, java.lang.RuntimeException: Error scanning file Addresses.class, java.lang.RuntimeException: Error scanning file Checkout.class, java.lang.RuntimeException: Error scanning file Pagination.class, java.lang.RuntimeException: Error scanning file Event.class, java.lang.RuntimeException: Error scanning file Charge.class, java.lang.RuntimeException: Error scanning file RequestResponseLoggingInterceptor.class, java.lang.RuntimeException: Error scanning file Payment.class, java.lang.RuntimeException: Error scanning file ChargeTimeline.class, java.lang.RuntimeException: Error scanning file ChargeList.class, java.lang.RuntimeException: Error scanning file Pricing.class]
at org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations(AnnotationConfiguration.java:450)
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:363)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:517)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1471)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:502)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:150)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180)
at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:453)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:329)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
Caused by:
MultiException[java.lang.RuntimeException: Error scanning file Webhook.class, java.lang.RuntimeException: Error scanning file Money.class, java.lang.RuntimeException: Error scanning file EventList.class, java.lang.RuntimeException: Error scanning file CheckoutList.class, java.lang.RuntimeException: Error scanning file Addresses.class, java.lang.RuntimeException: Error scanning file Checkout.class, java.lang.RuntimeException: Error scanning file Pagination.class, java.lang.RuntimeException: Error scanning file Event.class, java.lang.RuntimeException: Error scanning file Charge.class, java.lang.RuntimeException: Error scanning file RequestResponseLoggingInterceptor.class, java.lang.RuntimeException: Error scanning file Payment.class, java.lang.RuntimeException: Error scanning file ChargeTimeline.class, java.lang.RuntimeException: Error scanning file ChargeList.class, java.lang.RuntimeException: Error scanning file Pricing.class]
at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:702)
at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:850)
at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
at java.base/java.lang.Thread.run(Thread.java:844)
Suppressed:
|java.lang.RuntimeException: Error scanning file Money.class
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:732)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
| at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:850)
| at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
| at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
| at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
| at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
| at java.base/java.lang.Thread.run(Thread.java:844)
|Caused by:
|java.lang.IllegalArgumentException
| at org.objectweb.asm.ClassReader.<init>(Unknown Source)
| at org.objectweb.asm.ClassReader.<init>(Unknown Source)
| at org.objectweb.asm.ClassReader.<init>(Unknown Source)
| at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:979)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:725)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
| at org.eclipse.jetty.annotations.AnnotationParser.parseDir(AnnotationParser.java:709)
| at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:850)
| at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:159)
| at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:462)
| at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:679)
| at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:597)
| at java.base/java.lang.Thread.run(Thread.java:844)
Suppressed:
mvn dependency:tree :
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) # TOOLTANK ---
[INFO] TOOLTANK:TOOLTANK:war:2.0-SNAPSHOT
[INFO] +- com.optimaize.languagedetector:language-detector:jar:0.6:compile
[INFO] | +- net.arnx:jsonic:jar:1.2.11:compile
[INFO] | +- com.intellij:annotations:jar:12.0:compile
[INFO] | +- com.google.guava:guava:jar:17.0:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] +- org.languagetool:language-de:jar:4.2:compile
[INFO] | +- org.languagetool:languagetool-core:jar:4.2:compile
[INFO] | | +- org.carrot2:morfologik-fsa:jar:2.1.5:compile
[INFO] | | +- org.carrot2:morfologik-fsa-builders:jar:2.1.5:compile
[INFO] | | +- org.carrot2:morfologik-speller:jar:2.1.5:compile
[INFO] | | +- org.carrot2:morfologik-stemming:jar:2.1.5:compile
[INFO] | | +- com.carrotsearch:hppc:jar:0.7.2:compile
[INFO] | | +- net.loomchild:segment:jar:2.0.0:compile
[INFO] | | +- edu.berkeley.nlp:berkeleylm:jar:1.1.2:compile
[INFO] | | \- javax.xml.bind:jaxb-api:jar:2.3.0:compile
[INFO] | +- org.languagetool:hunspell-native-libs:jar:2.9:compile
[INFO] | +- de.danielnaber:german-pos-dict:jar:1.1:compile
[INFO] | +- edu.washington.cs.knowitall:openregex:jar:1.1.1:compile
[INFO] | \- de.danielnaber:jwordsplitter:jar:4.4:compile
[INFO] +- com.googlecode.lambdaj:lambdaj:jar:2.3.3:compile
[INFO] | +- org.hamcrest:hamcrest-all:jar:1.3:compile
[INFO] | +- org.objenesis:objenesis:jar:2.1:compile
[INFO] | \- cglib:cglib-nodep:jar:2.2:compile
[INFO] +- org.apache.tomcat:tomcat-catalina:jar:7.0.42:compile
[INFO] | +- org.apache.tomcat:tomcat-servlet-api:jar:7.0.42:compile
[INFO] | +- org.apache.tomcat:tomcat-juli:jar:7.0.42:compile
[INFO] | +- org.apache.tomcat:tomcat-annotations-api:jar:7.0.42:compile
[INFO] | +- org.apache.tomcat:tomcat-api:jar:7.0.42:compile
[INFO] | \- org.apache.tomcat:tomcat-util:jar:7.0.42:compile
[INFO] +- com.braintreepayments.gateway:braintree-java:jar:2.74.0:compile
[INFO] | \- org.osgi:org.osgi.core:jar:4.2.0:compile
[INFO] +- com.github.seratch:jslack:jar:1.0.12:compile
[INFO] | \- com.squareup.okhttp3:okhttp:jar:3.8.1:compile
[INFO] | \- com.squareup.okio:okio:jar:1.13.0:compile
[INFO] +- org.apache.pdfbox:pdfbox:jar:2.0.8:compile
[INFO] | +- org.apache.pdfbox:fontbox:jar:2.0.8:compile
[INFO] | \- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- commons-validator:commons-validator:jar:1.6:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] | +- commons-digester:commons-digester:jar:2.1:compile
[INFO] | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] +- org.odftoolkit:simple-odf:jar:0.6.6:compile
[INFO] | \- org.odftoolkit:odfdom-java:jar:0.8.7:compile
[INFO] +- org.apache.lucene:lucene-queryparser:jar:6.0.0:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:6.0.0:compile
[INFO] | \- org.apache.lucene:lucene-sandbox:jar:6.0.0:compile
[INFO] +- org.apache.lucene:lucene-analyzers-common:jar:6.0.0:compile
[INFO] +- org.apache.lucene:lucene-core:jar:6.0.0:compile
[INFO] +- org.apache.lucene:lucene-suggest:jar:6.0.0:compile
[INFO] | \- org.apache.lucene:lucene-misc:jar:6.0.0:compile
[INFO] +- org.apache.lucene:lucene-backward-codecs:jar:6.0.0:compile
[INFO] +- com.twelvemonkeys.imageio:imageio-jpeg:jar:3.4-SNAPSHOT:compile
[INFO] | +- com.twelvemonkeys.imageio:imageio-core:jar:3.4-SNAPSHOT:compile
[INFO] | +- com.twelvemonkeys.imageio:imageio-metadata:jar:3.4-SNAPSHOT:compile
[INFO] | +- com.twelvemonkeys.common:common-lang:jar:3.4-SNAPSHOT:compile
[INFO] | +- com.twelvemonkeys.common:common-io:jar:3.4-SNAPSHOT:compile
[INFO] | \- com.twelvemonkeys.common:common-image:jar:3.4-SNAPSHOT:compile
[INFO] +- com.twelvemonkeys.imageio:imageio-tiff:jar:3.4-SNAPSHOT:compile
[INFO] +- org.apache.commons:commons-imaging:jar:1.0-SNAPSHOT:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.6:compile
[INFO] +- com.github.jai-imageio:jai-imageio-core:jar:1.3.0:compile
[INFO] +- net.sourceforge.tess4j:tess4j:jar:3.2.1:compile
[INFO] | +- net.java.dev.jna:jna:jar:4.1.0:compile
[INFO] | +- org.ghost4j:ghost4j:jar:1.0.1:compile
[INFO] | | +- log4j:log4j:jar:1.2.17:compile
[INFO] | | \- com.lowagie:itext:jar:2.1.7:compile
[INFO] | +- net.sourceforge.lept4j:lept4j:jar:1.2.3:compile
[INFO] | | \- org.rococoa:rococoa-core:jar:0.5:compile
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.21:compile
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] | \- org.slf4j:log4j-over-slf4j:jar:1.7.21:compile
[INFO] +- org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile
[INFO] | +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile
[INFO] | +- org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile
[INFO] | +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
[INFO] | +- org.apache.xmlgraphics:batik-dom:jar:1.7:compile
[INFO] | | \- org.apache.xmlgraphics:batik-xml:jar:1.7:compile
[INFO] | +- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
[INFO] | +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile
[INFO] | +- org.apache.xmlgraphics:batik-util:jar:1.7:compile
[INFO] | \- xml-apis:xml-apis-ext:jar:1.3.04:compile
[INFO] +- org.apache.xmlgraphics:batik-codec:jar:1.7:compile
[INFO] | +- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
[INFO] | | +- org.apache.xmlgraphics:batik-gvt:jar:1.7:compile
[INFO] | | \- org.apache.xmlgraphics:batik-script:jar:1.7:compile
[INFO] | | \- org.apache.xmlgraphics:batik-js:jar:1.7:compile
[INFO] | \- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
[INFO] | \- org.apache.xmlgraphics:batik-svggen:jar:1.7:compile
[INFO] +- com.cybozu.labs:langdetect:jar:1.1-20120112:compile
[INFO] +- net.gjerull.etherpad:etherpad_lite_client:jar:1.2.12:compile
[INFO] +- cglib:cglib:jar:2.2.2:compile
[INFO] | \- asm:asm:jar:3.3.1:compile
[INFO] +- org.apache.velocity:velocity:jar:1.7:compile
[INFO] +- org.apache.velocity:velocity-tools:jar:2.0:compile
[INFO] | +- commons-chain:commons-chain:jar:1.1:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | +- oro:oro:jar:2.0.8:compile
[INFO] | +- sslext:sslext:jar:1.2-0:compile
[INFO] | +- org.apache.struts:struts-core:jar:1.3.8:compile
[INFO] | +- org.apache.struts:struts-taglib:jar:1.3.8:compile
[INFO] | \- org.apache.struts:struts-tiles:jar:1.3.8:compile
[INFO] +- com.ullink.slack:simpleslackapi:jar:1.0.0:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] | | \- org.apache.httpcomponents:httpcore:jar:4.4.5:compile
[INFO] | +- org.apache.httpcomponents:httpmime:jar:4.5.2:runtime
[INFO] | \- org.threeten:threetenbp:jar:1.2:runtime
[INFO] +- com.google.gdata:core:jar:1.47.1:compile
[INFO] | \- com.google.code.findbugs:jsr305:jar:3.0.1:compile
[INFO] +- org.docx4j:docx4j:jar:3.1.0:compile
[INFO] | +- org.plutext:jaxb-svg11:jar:1.0.2:compile
[INFO] | +- org.plutext:jaxb-xslfo:jar:1.0.1:compile
[INFO] | +- org.plutext:jaxb-xmldsig-core:jar:1.0.0:compile
[INFO] | +- net.engio:mbassador:jar:1.1.10:compile
[INFO] | +- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.5:compile
[INFO] | +- org.apache.xmlgraphics:fop:jar:1.1:compile
[INFO] | | \- org.apache.xmlgraphics:batik-extension:jar:1.7:compile
[INFO] | +- org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile
[INFO] | +- org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1:compile
[INFO] | +- xalan:xalan:jar:2.7.1:compile
[INFO] | | \- xalan:serializer:jar:2.7.1:compile
[INFO] | +- net.arnx:wmf2svg:jar:0.9.0:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.3:compile
[INFO] | \- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.apache.commons:commons-csv:jar:1.2:compile
[INFO] +- com.artofsolving:jodconverter:jar:2.2.1:compile
[INFO] | +- org.openoffice:juh:jar:2.3.0:compile
[INFO] | | \- org.openoffice:jurt:jar:2.3.0:compile
[INFO] | +- org.openoffice:ridl:jar:2.3.0:compile
[INFO] | \- org.openoffice:unoil:jar:2.3.0:compile
[INFO] +- org.jxls:jxls:jar:2.2.8:compile
[INFO] | \- org.apache.commons:commons-jexl:jar:2.1.1:compile
[INFO] +- org.jxls:jxls-poi:jar:1.0.6:compile
[INFO] +- fr.opensagres.xdocreport:org.apache.poi.xwpf.converter.core:jar:1.0.5:compile
[INFO] | \- org.apache.poi:ooxml-schemas:jar:1.1:compile
[INFO] +- fr.opensagres.xdocreport:org.apache.poi.xwpf.converter.xhtml:jar:1.0.5:compile
[INFO] +- org.apache.poi:poi:jar:3.15-beta1:compile
[INFO] +- org.apache.poi:poi-ooxml:jar:3.15-beta1:compile
[INFO] | \- com.github.virtuald:curvesapi:jar:1.03:compile
[INFO] +- org.apache.poi:poi-ooxml-schemas:jar:3.15-beta1:compile
[INFO] | \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile
[INFO] | \- stax:stax-api:jar:1.0.1:compile
[INFO] +- org.apache.poi:poi-scratchpad:jar:3.15-beta1:compile
[INFO] +- org.swinglabs:pdf-renderer:jar:1.0.5:compile
[INFO] +- org.jsoup:jsoup:jar:1.8.3:compile
[INFO] +- org.jasypt:jasypt:jar:1.9.2:compile
[INFO] +- org.jasypt:jasypt-hibernate4:jar:1.9.2:compile
[INFO] +- commons-lang:commons-lang:jar:2.6:compile
[INFO] +- org.springframework.mobile:spring-mobile-device:jar:1.1.5.RELEASE:compile
[INFO] | \- org.springframework:spring-web:jar:4.2.8.RELEASE:compile
[INFO] +- org.springframework.data:spring-data-redis:jar:1.6.5.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:4.2.8.RELEASE:compile
[INFO] | +- org.springframework:spring-oxm:jar:4.2.8.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:4.2.8.RELEASE:compile
[INFO] | \- org.springframework:spring-context-support:jar:4.2.8.RELEASE:compile
[INFO] +- org.springframework:spring-webmvc:jar:4.2.8.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:4.2.8.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:4.2.8.RELEASE:compile
[INFO] | +- org.springframework:spring-core:jar:4.2.8.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:4.2.8.RELEASE:compile
[INFO] +- org.springframework:spring-orm:jar:4.2.8.RELEASE:compile
[INFO] | \- org.springframework:spring-jdbc:jar:4.2.8.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:4.2.3.RELEASE:compile
[INFO] | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | \- org.springframework.security:spring-security-core:jar:4.0.4.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-taglibs:jar:4.2.3.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-acl:jar:4.0.4.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-web:jar:4.2.3.RELEASE:compile
[INFO] +- com.evernote:evernote-api:jar:1.25.1:compile
[INFO] +- org.scribe:scribe:jar:1.3.7:compile
[INFO] +- org.mnode.ical4j:ical4j:jar:1.0.6:compile
[INFO] | \- backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[INFO] +- org.apache.commons:commons-pool2:jar:2.4.2:compile
[INFO] +- com.google.api-client:google-api-client:jar:1.23.0:compile
[INFO] | +- com.google.oauth-client:google-oauth-client:jar:1.23.0:compile
[INFO] | +- com.google.http-client:google-http-client-jackson2:jar:1.23.0:compile
[INFO] | \- com.google.guava:guava-jdk5:jar:17.0:compile
[INFO] +- com.google.http-client:google-http-client:jar:1.19.0:compile
[INFO] +- com.google.apis:google-api-services-drive:jar:v2-rev332-1.25.0:compile
[INFO] +- com.google.apis:google-api-services-oauth2:jar:v2-rev141-1.25.0:compile
[INFO] +- com.google.http-client:google-http-client-jackson:jar:1.19.0:compile
[INFO] | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] +- com.google.oauth-client:google-oauth-client-jetty:jar:1.19.0:compile
[INFO] | +- com.google.oauth-client:google-oauth-client-java6:jar:1.19.0:compile
[INFO] | \- org.mortbay.jetty:jetty:jar:6.1.26:compile
[INFO] | \- org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile
[INFO] +- org.mortbay.jetty:jetty-util:jar:6.1.26:provided
[INFO] +- com.google.apis:google-api-services-plus:jar:v1-rev216-1.20.0:compile
[INFO] +- com.dropbox.core:dropbox-core-sdk:jar:3.0.3:compile
[INFO] +- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.1.0:compile
[INFO] +- org.hibernate:hibernate-core:jar:4.3.9.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:compile
[INFO] | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | +- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | \- org.jboss:jandex:jar:1.1.0.Final:compile
[INFO] +- org.hibernate:hibernate-entitymanager:jar:4.3.9.Final:compile
[INFO] +- com.zaxxer:HikariCP:jar:3.2.0:compile
[INFO] +- org.hibernate:hibernate-hikaricp:jar:4.3.9.Final:compile
[INFO] | \- com.zaxxer:HikariCP-java6:jar:2.3.13:compile
[INFO] +- org.cometd.java:bayeux-api:jar:3.1.2:compile
[INFO] +- org.cometd.javascript:cometd-javascript-jquery:war:3.1.2:compile
[INFO] +- org.cometd.java:cometd-java-server:jar:3.1.2:compile
[INFO] | +- org.cometd.java:cometd-java-common:jar:3.1.2:compile
[INFO] | | \- org.eclipse.jetty:jetty-util-ajax:jar:9.2.22.v20170606:compile
[INFO] | +- org.eclipse.jetty:jetty-util:jar:9.2.9.v20150224:compile
[INFO] | \- org.eclipse.jetty:jetty-jmx:jar:9.2.9.v20150224:compile
[INFO] +- org.cometd.java:cometd-java-client:jar:3.1.2:compile
[INFO] | +- org.eclipse.jetty:jetty-io:jar:9.2.9.v20150224:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.2.9.v20150224:compile
[INFO] | \- org.eclipse.jetty:jetty-client:jar:9.2.9.v20150224:compile
[INFO] +- org.cometd.java:cometd-java-annotations:jar:3.1.2:compile
[INFO] | \- javax.annotation:jsr250-api:jar:1.0:compile
[INFO] +- org.cometd.java:cometd-java-websocket-javax-server:jar:3.1.2:compile
[INFO] +- javax.websocket:javax.websocket-api:jar:1.0:compile
[INFO] +- org.cometd.java:cometd-java-websocket-common-server:jar:3.1.2:compile
[INFO] +- org.imgscalr:imgscalr-lib:jar:4.2:compile
[INFO] +- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] +- commons-io:commons-io:jar:2.4:compile
[INFO] +- commons-fileupload:commons-fileupload:jar:1.3.2:compile
[INFO] +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | \- commons-pool:commons-pool:jar:1.6:compile
[INFO] +- org.aspectj:aspectjrt:jar:1.8.9:compile
[INFO] +- joda-time:joda-time:jar:2.8.2:compile
[INFO] +- com.itextpdf:itextpdf:jar:5.0.6:compile
[INFO] | +- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO] | +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO] | \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO] +- commons-codec:commons-codec:jar:1.10:compile
[INFO] +- javax.mail:mail:jar:1.4.4:compile
[INFO] | \- javax.activation:activation:jar:1.1.1:compile
[INFO] +- javax.inject:javax.inject:jar:1:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:compile
[INFO] +- javax.servlet:jstl:jar:1.2:compile
[INFO] +- ch.qos.logback:logback-classic:jar:1.0.13:runtime
[INFO] +- ch.qos.logback:logback-core:jar:1.0.13:runtime
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.6.7:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.7:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.7:compile
[INFO] +- org.postgresql:postgresql:jar:42.2.5:compile
[INFO] +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] +- com.google.code.gson:gson:jar:2.3.1:compile
[INFO] +- org.json:json:jar:20141113:compile
[INFO] +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.google.javascript:closure-compiler:jar:v20170806:compile
[INFO] | +- com.google.javascript:closure-compiler-externs:jar:v20170806:compile
[INFO] | +- args4j:args4j:jar:2.33:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
[INFO] | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] | \- com.google.jsinterop:jsinterop-annotations:jar:1.0.0:compile
[INFO] +- org.springframework:spring-test:jar:4.1.6.RELEASE:compile
[INFO] \- nl.geodienstencentrum.maven:sass-maven-plugin:jar:3.5.1:compile
[INFO] +- org.apache.maven:maven-core:jar:3.5.2:compile
[INFO] | +- org.apache.maven:maven-model:jar:3.5.2:compile
[INFO] | +- org.apache.maven:maven-settings:jar:3.5.2:compile
[INFO] | +- org.apache.maven:maven-settings-builder:jar:3.5.2:compile
[INFO] | | +- org.codehaus.plexus:plexus-interpolation:jar:1.24:compile
[INFO] | | \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile
[INFO] | | \- org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[INFO] | +- org.apache.maven:maven-builder-support:jar:3.5.2:compile
[INFO] | +- org.apache.maven:maven-repository-metadata:jar:3.5.2:compile
[INFO] | +- org.apache.maven:maven-artifact:jar:3.5.2:compile
[INFO] | +- org.apache.maven:maven-plugin-api:jar:3.5.2:compile
[INFO] | +- org.apache.maven:maven-model-builder:jar:3.5.2:compile
[INFO] | +- org.apache.maven:maven-resolver-provider:jar:3.5.2:compile
[INFO] | +- org.apache.maven.resolver:maven-resolver-impl:jar:1.1.0:compile
[INFO] | +- org.apache.maven.resolver:maven-resolver-api:jar:1.1.0:compile
[INFO] | +- org.apache.maven.resolver:maven-resolver-spi:jar:1.1.0:compile
[INFO] | +- org.apache.maven.resolver:maven-resolver-util:jar:1.1.0:compile
[INFO] | +- org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile
[INFO] | +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.3:compile
[INFO] | | \- javax.enterprise:cdi-api:jar:1.0-SP4:compile
[INFO] | | \- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Beta1:compile
[INFO] | +- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3:compile
[INFO] | +- com.google.inject:guice:jar:no_aop:4.0:compile
[INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.1.0:compile
[INFO] | +- org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile
[INFO] | \- org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:compile
[INFO] +- org.jruby:jruby-complete:jar:9.1.15.0:compile
[INFO] +- org.apache.maven.doxia:doxia-sink-api:jar:1.7:compile
[INFO] | \- org.apache.maven.doxia:doxia-logging-api:jar:1.7:compile
[INFO] | \- org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-30:compile
[INFO] \- org.apache.maven.reporting:maven-reporting-impl:jar:3.0.0:compile
[INFO] +- org.apache.maven.reporting:maven-reporting-api:jar:3.0:compile
[INFO] +- org.apache.maven.doxia:doxia-decoration-model:jar:1.7.4:compile
[INFO] +- org.apache.maven.doxia:doxia-core:jar:1.7:compile
[INFO] | \- xmlunit:xmlunit:jar:1.5:compile
[INFO] \- org.apache.maven.doxia:doxia-site-renderer:jar:1.7.4:compile
[INFO] +- org.apache.maven.doxia:doxia-skin-model:jar:1.7.4:compile
[INFO] +- org.apache.maven.doxia:doxia-module-xhtml:jar:1.7:compile
[INFO] +- org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7:compile
[INFO] \- org.codehaus.plexus:plexus-velocity:jar:1.2:compile
[INFO] ------------------------------------------------------------------------
Updated cglib and asm, still no luck :
<!-- Apache 2.0 -->
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.2.10</version>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/org.ow2.asm/asm -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>7.0</version>
<scope>compile</scope>
</dependency>
asm:asm:jar:3.3.1:compile
That is far too old for Java 10.
You'll need to use asm 7.0 (or newer)
[INFO] | | \- org.eclipse.jetty:jetty-util-ajax:jar:9.2.22.v20170606:compile
[INFO] | +- org.eclipse.jetty:jetty-util:jar:9.2.9.v20150224:compile
[INFO] | \- org.eclipse.jetty:jetty-jmx:jar:9.2.9.v20150224:compile
[INFO] +- org.cometd.java:cometd-java-client:jar:3.1.2:compile
[INFO] | +- org.eclipse.jetty:jetty-io:jar:9.2.9.v20150224:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.2.9.v20150224:compile
[INFO] | \- org.eclipse.jetty:jetty-client:jar:9.2.9.v20150224:compile
Jetty 9.2.9 is too old for Java 9+ support.
Historically, Jetty 9.4.11 was the first to support Java 9 with the ASM 6.2 upgrade.
But the ASM 7.0 upgrade (to support Java 10 and Java 11) introduced an API change in ASM that requires Jetty 9.4.13 or newer.

Context initialization failed Error with Spring MVC

I'm receiving an exception when I try to start my Spring MVC application with a deployed war file on a tomcat8 (java 1.8_65):
Context initialization failed Error creating bean with name 'entityManagerFactory' defined in biz.aspsol.solarix.init.configuration.WebAppConfig: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.JoinTable.indexes()[Ljavax/persistence/Index;
What is strange is that I can run the application without problems from my Intellij Idea however the deployment with the war file does not work.
Here is my maven dependency tree:
[INFO] +- org.springframework:spring-context:jar:4.2.2.RELEASE:compile
[INFO] | \- org.springframework:spring-aop:jar:4.2.2.RELEASE:compile
[INFO] +- org.springframework:spring-core:jar:4.2.2.RELEASE:compile
[INFO] | \- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.springframework:spring-expression:jar:4.2.2.RELEASE:compile
[INFO] +- org.springframework:spring-webmvc:jar:4.2.2.RELEASE:compile
[INFO] +- org.springframework:spring-web:jar:4.2.2.RELEASE:compile
[INFO] +- org.springframework:spring-context-support:jar:4.2.2.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:4.2.2.RELEASE:compile
[INFO] +- org.springframework.data:spring-data-jpa:jar:1.8.2.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:1.10.2.RELEASE:compile
[INFO] | +- org.springframework:spring-orm:jar:4.0.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:4.0.9.RELEASE:compile
[INFO] | +- org.springframework:spring-tx:jar:4.0.9.RELEASE:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.12:compile
[INFO] | \- org.slf4j:jcl-over-slf4j:jar:1.7.12:runtime
[INFO] +- org.springframework.security:spring-security-web:jar:4.0.2.RELEASE:compile
[INFO] | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | \- org.springframework.security:spring-security-core:jar:4.0.2.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:4.0.2.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-taglibs:jar:4.0.2.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-acl:jar:4.0.2.RELEASE:compile
[INFO] +- org.thymeleaf:thymeleaf-spring4:jar:2.1.4.RELEASE:compile
[INFO] +- org.thymeleaf:thymeleaf:jar:2.1.4.RELEASE:compile
[INFO] | +- ognl:ognl:jar:3.0.8:compile
[INFO] | \- org.unbescape:unbescape:jar:1.1.0.RELEASE:compile
[INFO] +- org.thymeleaf.extras:thymeleaf-extras-springsecurity4:jar:2.1.2.RELEASE:compile
[INFO] +- nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:jar:1.3.0:compile
[INFO] | \- org.codehaus.groovy:groovy:jar:2.4.3:compile
[INFO] +- org.hibernate:hibernate-core:jar:4.3.6.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile
[INFO] | +- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | \- org.jboss:jandex:jar:1.1.0.Final:compile
[INFO] +- org.hibernate:hibernate-validator:jar:5.2.1.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.1.0:compile
[INFO] +- org.hibernate:hibernate-entitymanager:jar:5.0.3.Final:compile
[INFO] | \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
[INFO] +- org.aspectj:aspectjrt:jar:1.8.6:runtime (scope not updated to compile)
[INFO] +- org.aspectj:aspectjtools:jar:1.8.6:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.6.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.1:compile
[INFO] +- org.apache.velocity:velocity:jar:1.7:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | \- commons-lang:commons-lang:jar:2.4:compile
[INFO] +- org.apache.velocity:velocity-tools:jar:2.0:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8:compile
[INFO] | +- commons-chain:commons-chain:jar:1.1:compile
[INFO] | +- commons-validator:commons-validator:jar:1.3.1:compile
[INFO] | +- oro:oro:jar:2.0.8:compile
[INFO] | +- sslext:sslext:jar:1.2-0:compile
[INFO] | +- org.apache.struts:struts-core:jar:1.3.8:compile
[INFO] | +- org.apache.struts:struts-taglib:jar:1.3.8:compile
[INFO] | \- org.apache.struts:struts-tiles:jar:1.3.8:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile
[INFO] | \- log4j:log4j:jar:1.2.17:compile
[INFO] +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
[INFO] +- javax.mail:mail:jar:1.4.7:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] +- org.postgresql:postgresql:jar:9.4-1202-jdbc42:compile
[INFO] +- org.apache.commons:commons-dbcp2:jar:2.1.1:compile
[INFO] | \- org.apache.commons:commons-pool2:jar:2.4.2:compile
[INFO] +- commons-io:commons-io:jar:2.4:compile
[INFO] +- net.sf.ehcache:ehcache:jar:2.10.0:compile
[INFO] +- org.javassist:javassist:jar:3.20.0-GA:compile
[INFO] +- com.braintreepayments.gateway:braintree-java:jar:2.49.0:compile
[INFO] +- org.xhtmlrenderer:flying-saucer-pdf-itext5:jar:9.0.8:compile
[INFO] | \- org.xhtmlrenderer:flying-saucer-core:jar:9.0.8:compile
[INFO] +- org.apache.pdfbox:pdfbox:jar:1.8.10:compile
[INFO] | +- org.apache.pdfbox:fontbox:jar:1.8.10:compile
[INFO] | \- org.apache.pdfbox:jempbox:jar:1.8.10:compile
[INFO] +- org.bouncycastle:bcprov-jdk15on:jar:1.52:compile
[INFO] +- org.bouncycastle:bcmail-jdk15on:jar:1.52:compile
[INFO] | \- org.bouncycastle:bcpkix-jdk15on:jar:1.52:compile
[INFO] +- org.json:json:jar:20150729:compile
[INFO] +- com.google.maps:google-maps-services:jar:0.1.8:compile
[INFO] | +- com.squareup.okhttp:okhttp:jar:2.0.0:compile
[INFO] | | \- com.squareup.okio:okio:jar:1.0.0:compile
[INFO] | +- com.google.code.gson:gson:jar:2.3.1:compile
[INFO] | \- joda-time:joda-time:jar:2.4:compile
[INFO] +- org.apache.poi:poi:jar:3.13:compile
[INFO] | \- commons-codec:commons-codec:jar:1.9:compile
[INFO] \- com.itextpdf:itextpdf:jar:5.5.7:compile
Most likely you have an older version of JPA api deployed in your tomcat.
That is why you see no exceptions when deploying from IntelliJ.
indexes attribute was introduced to #JoinTable in JPA 2.1. If you use older version of JPA you'll get the exact same exception at runtime.
Check that there are no other JPA api jars in the $CATALINA_BASE/lib folder
I found the solution for the problem. I have included the hibernate-jpa-2.1-api dependency into my pom.xml file.
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Final</version>
</dependency>

java.lang.NoClassDefFoundError: org/apache/cxf/jaxrs/impl/UriBuilderImpl

I don't directly use Apache CXF in my code. I didn't even have it as a dependency. Now when upgrading to WebLogic 12c I get this exception. I previously got some other errors related to extracting a soap message body, which I got around after adding the saaj dependencies below.
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle-jaxrs</artifactId>
<version>${cxf-version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-api</artifactId>
<version>${cxf-version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf-version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-policy</artifactId>
<version>${cxf-version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.messaging.saaj</groupId>
<artifactId>saaj-impl</artifactId>
<version>1.3.15</version>
</dependency>
<dependency>
<groupId>javax.xml.soap</groupId>
<artifactId>saaj-api</artifactId>
<version>1.3.5</version>
</dependency>
Error:
java.lang.NoClassDefFoundError: org/apache/cxf/jaxrs/impl/UriBuilderImpl
at org.apache.cxf.jaxrs.impl.RuntimeDelegateImpl.createUriBuilder(RuntimeDelegateImpl.java:89)
at javax.ws.rs.core.UriBuilder.newInstance(UriBuilder.java:69)
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:80)
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:99)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:649)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
>
Dependency tree:
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # myapp1 ---
[INFO] mypackage.myapp:myapp1:war:4.4.1.158-SNAPSHOT
[INFO] +- mypackage.integration:integration-bpm:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | +- mypackage.integration:integration-http:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | | \- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.7:compile
[INFO] | | \- org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.7:compile
[INFO] | +- xalan:xalan:jar:2.7.1:compile
[INFO] | | \- xalan:serializer:jar:2.7.1:compile
[INFO] | +- xerces:xercesImpl:jar:2.9.0:provided
[INFO] | +- org.hibernate:hibernate-core:jar:3.6.10.Final:compile
[INFO] | | +- antlr:antlr:jar:2.7.6:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.1:compile
[INFO] | | +- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
[INFO] | | \- javax.transaction:jta:jar:1.1:compile
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:3.6.10.Final:compile
[INFO] | | \- javassist:javassist:jar:3.12.0.GA:compile
[INFO] | \- org.apache.commons:commons-lang3:jar:3.1:compile
[INFO] +- mypackage.integration:integration-core:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | +- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[INFO] | +- org.safehaus.jug:jug:jar:asl:2.0.0:compile
[INFO] | +- net.sf.dozer:dozer:jar:5.3.2:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] | | \- commons-lang:commons-lang:jar:2.5:compile
[INFO] | +- net.sf.json-lib:json-lib:jar:jdk15:2.3:compile
[INFO] | | \- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO] | +- xom:xom:jar:1.1:compile
[INFO] | | +- xerces:xmlParserAPIs:jar:2.6.2:provided
[INFO] | | \- jaxen:jaxen:jar:1.1.1:compile
[INFO] | +- org.aspectj:aspectjtools:jar:1.5.4:compile
[INFO] | +- cglib:cglib:jar:2.2.2:compile
[INFO] | +- gov.hhs.healthit.nhin.connect:common-types:jar:2.4:compile
[INFO] | +- commons-codec:commons-codec:jar:1.6:compile
[INFO] | \- commons-io:commons-io:jar:2.0.1:compile
[INFO] +- mypackage.integration:integration-test:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | +- xmlunit:xmlunit:jar:1.3:test
[INFO] | \- eviware:maven-soapui-plugin:jar:4.5.1:test
[INFO] | +- org.apache.maven:maven-plugin-api:jar:2.0:test
[INFO] | +- eviware:soapui:jar:4.5.1:test
[INFO] | +- javax.activation:activation:jar:1.1:compile
[INFO] | +- javax.mail:mail:jar:1.4:compile
[INFO] | +- commons-ssl:not-yet-commons-ssl:jar:0.3.11:test
[INFO] | +- commons-cli:commons-cli:jar:1.0:test
[INFO] | +- json:json-lib:jar:2.2.2-jdk15:test
[INFO] | +- ezmorph:ezmorph:jar:1.0.5:test
[INFO] | +- swingx:swingx:jar:soapui:test
[INFO] | +- groovy:groovy-all:jar:1.8.0:test
[INFO] | +- rhino:js:jar:1.7R2:test
[INFO] | +- jetty:jetty:jar:6.1.26:test
[INFO] | +- jetty:jetty-util:jar:6.1.26:test
[INFO] | +- jetty:servlet-api:jar:2.5-20081211:test
[INFO] | +- net-components:netcomponents:jar:1.3.8a:test
[INFO] | +- xmlbeans:xbean:jar:fixed-2.4.0:test
[INFO] | +- xmlbeans:xbean_xpath:jar:2.4.0:test
[INFO] | +- xmlbeans:xmlpublic:jar:2.4.0:test
[INFO] | +- xmlbeans:jsr173:jar:xmlbeans-2.4.0:test
[INFO] | +- eviware:soapui-xmlbeans:jar:4.5.1:test
[INFO] | +- eviware:policy-xmlbeans:jar:1.5:test
[INFO] | +- eviware:soap-xmlbeans:jar:1.2:test
[INFO] | +- eviware:wadl-xmlbeans:jar:1.1:test
[INFO] | +- eviware:j2ee-xmlbeans:jar:1.4:test
[INFO] | +- eviware:ext-xmlbeans:jar:1.2:test
[INFO] | +- saxon:saxon:jar:9.1.0.8j:test
[INFO] | +- saxon:saxon-dom:jar:9.1.0.8j:test
[INFO] | +- xml-security:xmlsec:jar:1.4.3:test
[INFO] | +- opensaml:opensaml:jar:1.1:test
[INFO] | +- wss4j:wss4j:jar:1.5.8:test
[INFO] | +- bouncycastle:bcprov-jdk15:jar:144:test
[INFO] | +- jtidy:jtidy:jar:r872-jdk15:test
[INFO] | +- javax.jms:jms:jar:1.1:test
[INFO] | +- hermesjms:hermes:jar:1.14:test
[INFO] | +- amf:flex-messaging-common:jar:1.0:test
[INFO] | +- amf:flex-messaging-core:jar:1.0:test
[INFO] | +- amf:flex-messaging-opt:jar:1.0:test
[INFO] | +- amf:flex-messaging-proxy:jar:1.0:test
[INFO] | +- amf:flex-messaging-remoting:jar:1.0:test
[INFO] | +- thoughtworks:xstream:jar:1.3.1:test
[INFO] | +- net.sourceforge.htmlunit:htmlunit:jar:2.7:test
[INFO] | | \- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | +- org.w3c.css:sac:jar:1.3:test
[INFO] | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.7:test
[INFO] | +- net.sourceforge.cssparser:cssparser:jar:0.9.5:test
[INFO] | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.14:test
[INFO] | +- fife:rsyntaxtextarea:jar:1.3.4:test
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.1.1:test
[INFO] | +- org.apache.httpcomponents:httpmime:jar:4.1.1:test
[INFO] | +- org.apache.httpcomponents:httpclient-cache:jar:4.1.1:test
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.1.1:test
[INFO] | +- org.apache.httpcomponents:httpcore-nio:jar:4.1.1:test
[INFO] | \- org.samba.jcifs:jcifs:jar:1.2.9:test
[INFO] +- mypackage.myapp:myapp_common:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | +- mypackage.integration:integration-jms:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | | \- ca.uhn.hapi:hapi-base:jar:0.6:compile
[INFO] | \- mypackage.integration:integration-feed:jar:4.4.1.158-SNAPSHOT:compile
[INFO] +- mypackage.myapp:myapp_mock:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | +- mypackage.integration:integration-hl7:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | +- mypackage.myapp:myapp_bindings:jar:4.4.1.158-SNAPSHOT:compile
[INFO] | \- mypackage.myapp:myapp_audit:jar:4.4.1.158-SNAPSHOT:compile
[INFO] +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO] | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-orm:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-jms:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-core:jar:3.1.0.RC2:compile
[INFO] +- org.springframework.ws:spring-ws:jar:2.0.0-M1:compile
[INFO] +- org.springframework:spring-oxm:jar:3.0.5.RELEASE:compile
[INFO] +- com.sun.jersey:jersey-server:jar:1.8:compile
[INFO] | +- asm:asm:jar:3.3.1:compile
[INFO] | \- com.sun.jersey:jersey-core:jar:1.8:compile
[INFO] +- com.sun.jersey:jersey-client:jar:1.8:compile
[INFO] +- com.sun.jersey:jersey-json:jar:1.8:compile
[INFO] | +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
[INFO] | | \- javax.xml.bind:jaxb-api:jar:2.2.2:compile
[INFO] | | \- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.7.1:compile
[INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.7.1:compile
[INFO] | +- org.codehaus.jackson:jackson-jaxrs:jar:1.7.1:compile
[INFO] | \- org.codehaus.jackson:jackson-xc:jar:1.7.1:compile
[INFO] +- com.sun.jersey.contribs:jersey-atom-abdera:jar:1.8:compile
[INFO] | +- org.apache.abdera:abdera-parser:jar:1.0:compile
[INFO] | | +- org.apache.abdera:abdera-core:jar:1.0:compile
[INFO] | | | +- org.apache.abdera:abdera-i18n:jar:1.0:compile
[INFO] | | | \- org.apache.geronimo.specs:geronimo-activation_1.0.2_spec:jar:1.1:compile
[INFO] | | +- org.apache.ws.commons.axiom:axiom-impl:jar:1.2.5:compile
[INFO] | | | \- org.apache.ws.commons.axiom:axiom-api:jar:1.2.5:compile
[INFO] | | +- org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile
[INFO] | | \- org.codehaus.woodstox:wstx-asl:jar:3.2.6:runtime
[INFO] | \- org.apache.abdera:abdera-extensions-json:jar:1.0:compile
[INFO] | +- org.apache.abdera:abdera-server:jar:1.0:compile
[INFO] | | \- javax.servlet:servlet-api:jar:2.4:compile
[INFO] | +- org.apache.abdera:abdera-extensions-main:jar:1.0:compile
[INFO] | | \- org.apache.abdera:abdera-client:jar:1.0:compile
[INFO] | \- org.apache.abdera:abdera-extensions-html:jar:1.0:compile
[INFO] | \- nu.validator.htmlparser:htmlparser:jar:1.0.5:compile
[INFO] +- com.sun.jersey:jersey-atom:jar:1.8:compile
[INFO] | +- rome:rome:jar:0.9:compile
[INFO] | \- jdom:jdom:jar:1.0:compile
[INFO] +- com.sun.jersey.contribs:jersey-multipart:jar:1.8:compile
[INFO] | \- org.jvnet:mimepull:jar:1.4:compile
[INFO] +- com.sun.jersey.contribs:jersey-spring:jar:1.8:compile
[INFO] +- com.sun.jersey.contribs:jersey-guice:jar:1.8:compile
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | +- com.google.inject:guice:jar:3.0:compile
[INFO] | \- com.google.inject.extensions:guice-servlet:jar:3.0:compile
[INFO] +- net.sf.saxon:saxon:jar:9.1.0.8:compile
[INFO] +- net.sf.saxon:saxon-dom:jar:9.1.0.8:compile
[INFO] +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | \- xml-apis:xml-apis:jar:1.0.b2:provided
[INFO] +- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] +- org.slf4j:com.springsource.slf4j.org.apache.commons.logging:jar:1.6.1:runtime
[INFO] +- org.slf4j:com.springsource.slf4j.log4j:jar:1.6.1:runtime
[INFO] +- log4j:log4j:jar:1.2.16:compile
[INFO] +- org.eclipse.jetty:jetty-server:jar:7.6.13.v20130916:test
[INFO] | +- org.eclipse.jetty.orbit:javax.servlet:jar:2.5.0.v201103041518:test
[INFO] | +- org.eclipse.jetty:jetty-continuation:jar:7.6.13.v20130916:compile
[INFO] | \- org.eclipse.jetty:jetty-http:jar:7.6.13.v20130916:compile
[INFO] +- org.apache.cxf:cxf-bundle-jaxrs:jar:2.7.7:compile
[INFO] | +- org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
[INFO] | +- org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
[INFO] | +- org.apache.ws.xmlschema:xmlschema-core:jar:2.0.3:compile
[INFO] | +- org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
[INFO] | +- wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] | +- org.eclipse.jetty:jetty-io:jar:8.1.12.v20130726:compile
[INFO] | +- org.eclipse.jetty:jetty-util:jar:8.1.12.v20130726:compile
[INFO] | +- org.eclipse.jetty:jetty-security:jar:8.1.12.v20130726:compile
[INFO] | +- org.apache.geronimo.specs:geronimo-servlet_3.0_spec:jar:1.0:compile
[INFO] | \- javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
[INFO] +- org.apache.cxf:cxf-api:jar:2.7.7:compile
[INFO] +- org.apache.cxf:cxf-rt-transports-http:jar:2.7.7:compile
[INFO] | \- org.apache.cxf:cxf-rt-core:jar:2.7.7:compile
[INFO] +- org.apache.cxf:cxf-rt-ws-policy:jar:2.7.7:compile
[INFO] | \- org.apache.neethi:neethi:jar:3.0.2:compile
[INFO] +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3.15:compile
[INFO] | \- org.jvnet.mimepull:mimepull:jar:1.7:compile
[INFO] +- javax.xml.soap:saaj-api:jar:1.3.5:compile
[INFO] +- junit:junit:jar:4.8.2:test
[INFO] +- com.oracle:ojdbc6:jar:11.1.0.6.0:test
[INFO] \- org.springframework:spring-test:jar:3.0.5.RELEASE:test
I ended up fixing this by following some suggestions from:
https://issues.apache.org/jira/browse/CXF-4232
and
http://salzotech.blogspot.com/2014/02/noclassdeffounderror.html
Specifically, I added this to the start of my Jersey ServletContextListener:
#Override
public void contextInitialized(final ServletContextEvent sce) {
//Fix this issue in WebLogic 12c:
//http://salzotech.blogspot.com/2014/02/noclassdeffounderror.html
RuntimeDelegate.setInstance(new com.sun.jersey.server.impl.provider.RuntimeDelegateImpl());
I'm not sure if I had to do everything after this, but here are the other things I did:
Added this to my weblogic.xml:
<prefer-application-packages>
<package-name>com.sun.jersey.*</package-name>
<package-name>org.apache.*</package-name>
<package-name>antlr.*</package-name>
<package-name>javax.ws.rs.*</package-name>
</prefer-application-packages>
Added this to my pom file (used the latest version of Jersey. This older CXF version still worked for me):
<properties>
<cxf-version>2.7.7</cxf-version>
<com.sun.jersey.version>1.18.1</com.sun.jersey.version>
...
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle-jaxrs</artifactId>
<version>${cxf-version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-api</artifactId>
<version>${cxf-version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf-version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-policy</artifactId>
<version>${cxf-version}</version>
</dependency>

How to remove invalid version in dependecies

I am using maven to compile project.
here is result of dependency:tree
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) # tournament-system-web ---
[INFO] org.toursys:tournament-system-web:war:0.0.1-SNAPSHOT
[INFO] +- org.toursys:tournament-system-processor:jar:0.0.1-SNAPSHOT:compile
[INFO] | +- com.itextpdf:itextpdf:jar:5.1.3:compile
[INFO] | \- com.itextpdf.tool:xmlworker:jar:1.1.1:compile
[INFO] +- org.toursys:tournament-system-repository:jar:0.0.1-SNAPSHOT:compile
[INFO] | +- org.sqlproc:sql-processor:jar:1.9.0:compile
[INFO] | | +- org.antlr:antlr:jar:3.4:compile
[INFO] | | | \- org.antlr:ST4:jar:4.0.4:compile
[INFO] | | +- org.antlr:antlr-runtime:jar:3.4:compile
[INFO] | | | +- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] | | | \- antlr:antlr:jar:2.7.7:compile
[INFO] | | \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] | \- org.sqlproc:sql-processor-spring:jar:1.9.0:compile
[INFO] | \- org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile (version managed from 3.1.2.RELEASE)
[INFO] | \- org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
[INFO] +- log4j:log4j:jar:1.2.15:compile
[INFO] +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO] | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[INFO] | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | \- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[INFO] +- javax.servlet:servlet-api:jar:2.4:compile
[INFO] +- org.apache.wicket:wicket-core:jar:1.5.8:compile
[INFO] | +- org.apache.wicket:wicket-util:jar:1.5.8:compile
[INFO] | \- org.apache.wicket:wicket-request:jar:1.5.8:compile
[INFO] +- org.apache.wicket:wicket-spring:jar:1.5.8:compile
[INFO] | \- org.apache.wicket:wicket-ioc:jar:1.5.8:compile
[INFO] | \- cglib:cglib:jar:2.2:compile
[INFO] | \- asm:asm:jar:3.1:compile
[INFO] +- org.apache.wicket:wicket-datetime:jar:1.5.8:compile
[INFO] | \- joda-time:joda-time:jar:2.0:compile
[INFO] +- org.apache.wicket:wicket-extensions:jar:1.5.8:compile
[INFO] +- org.wicketstuff:wicketstuff-minis:jar:1.5.8:compile
[INFO] | \- org.apache.wicket:wicket:pom:1.5.8:compile
[INFO] +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO] +- cglib:cglib-nodep:jar:2.2:compile
[INFO] +- commons-dbcp:commons-dbcp:jar:1.2.2:runtime
[INFO] | \- commons-pool:commons-pool:jar:1.3:runtime
[INFO] \- mysql:mysql-connector-java:jar:5.1.20:compile
problem is when I look into generated war there is two version of wicket. 1.5.5 and 1.5.8 and I dont know why there is still older version. I dont have it in dependency. How I can remove it or find why there is still this library ?
You should exlude wicket-1.5.5 which comes as dependency of another package.
Dependency exclusion is described here.

Categories

Resources