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>
Related
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.
I am attempting to use hibernate validators with SpringBoot and Tomcat and yet continue to get this error
No validator could be found for constraint 'javax.validation.constraints.NotBlank'
I tried adding the following to my maven pom.xml without luck
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>7.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.el</artifactId>
<version>4.0.0-RC2</version>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator-cdi</artifactId>
<version>7.0.1.Final</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.validation/validation-api -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
It works locally when started by java so how can I fix this? I found this issue [HV000030: No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.String' but it didn't seem to fix my problems whenever I double checked that hibernate-validator was at version 7.
File causing issue can be seen here https://github.com/OntoloBridge/ontolobridge-project/blob/Authentication/src/main/java/edu/miami/schurer/ontolobridge/models/User.java
Here is my dependency Tree
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) #
ontologbridge ---
[INFO] edu.miami.schurer:ontologbridge:war:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.0.5.RELEASE:compile
[INFO] | | \- org.springframework:spring-context:jar:5.0.9.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.10.0:compile
[INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework:spring-core:jar:5.0.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.0.9.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.19:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-actuator:jar:2.0.5.RELEASE:compile
[INFO] | | \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.6:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.0.6:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.10:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.0.5.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.6:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.6:compile
[INFO] | +- org.springframework:spring-web:jar:5.0.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.0.9.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.0.9.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:5.0.8.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-core:jar:5.0.8.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:5.0.8.RELEASE:compile
[INFO] +- org.postgresql:postgresql:jar:42.2.5:runtime
[INFO] +- io.jsonwebtoken:jjwt:jar:0.9.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.6:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.20:compile
[INFO] | \- com.google.protobuf:protobuf-java:jar:3.6.1:compile
[INFO] +- org.apache.commons:commons-dbcp2:jar:2.1.1:compile
[INFO] | \- org.apache.commons:commons-pool2:jar:2.5.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.5.RELEASE:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.34:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.34:provided
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.34:provided
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.5.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.0.5.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.5.RELEASE:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.9.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.15.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.7.11:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.7.11:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.0.9.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.5.1:test
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.0.5.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:2.7.9:compile
[INFO] | \- org.springframework:spring-jdbc:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.0.9.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:2.0.5.RELEASE:compile (optional)
[INFO] +- it.ozimov:spring-boot-email-core:jar:0.6.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-mail:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.springframework:spring-context-support:jar:5.0.9.RELEASE:compile
[INFO] | | \- com.sun.mail:javax.mail:jar:1.6.2:compile
[INFO] | | \- javax.activation:activation:jar:1.1:compile
[INFO] | +- org.apache.tika:tika-core:jar:1.14:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.3.3.Final:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-data-redis:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-redis:jar:2.0.10.RELEASE:compile
[INFO] | | | +- org.springframework.data:spring-data-keyvalue:jar:2.0.10.RELEASE:compile
[INFO] | | | \- org.springframework:spring-oxm:jar:5.0.9.RELEASE:compile
[INFO] | | \- io.lettuce:lettuce-core:jar:5.0.5.RELEASE:compile
[INFO] | | +- io.projectreactor:reactor-core:jar:3.1.9.RELEASE:compile
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.2:compile
[INFO] | | +- io.netty:netty-common:jar:4.1.29.Final:compile
[INFO] | | +- io.netty:netty-transport:jar:4.1.29.Final:compile
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.29.Final:compile
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.29.Final:compile
[INFO] | | \- io.netty:netty-handler:jar:4.1.29.Final:compile
[INFO] | | \- io.netty:netty-codec:jar:4.1.29.Final:compile
[INFO] | +- it.ozimov:embedded-redis:jar:0.7.0:compile
[INFO] | | \- commons-io:commons-io:jar:2.5:compile
[INFO] | +- org.owasp.encoder:encoder:jar:1.2.1:compile
[INFO] | \- com.google.guava:guava:jar:21.0:compile
[INFO] +- com.opencsv:opencsv:jar:4.1:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | +- org.apache.commons:commons-text:jar:1.1:compile
[INFO] | \- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | +- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:test
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.9.2:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.20:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.20:compile
[INFO] | +- io.springfox:springfox-spi:jar:2.9.2:compile
[INFO] | | \- io.springfox:springfox-core:jar:2.9.2:compile
[INFO] | +- io.springfox:springfox-schema:jar:2.9.2:compile
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.9.2:compile
[INFO] | +- io.springfox:springfox-spring-web:jar:2.9.2:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | \- org.mapstruct:mapstruct:jar:1.2.0.Final:compile
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.9.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.0.5.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.8.13:compile
[INFO] | +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.2.17.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.2.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.22.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.0.3.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.0.10.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.0.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.0.9.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.0.9.RELEASE:compile
[INFO] +- io.sentry:sentry:jar:1.7.30:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.6:compile
[INFO] +- io.sentry:sentry-logback:jar:1.7.30:compile
[INFO] | +- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | \- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2:compile
[INFO] | \- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
[INFO] +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.2:compile
[INFO] | +- org.glassfish.jaxb:txw2:jar:2.3.2:compile
[INFO] | +- com.sun.istack:istack-commons-runtime:jar:3.0.8:compile
[INFO] | +- org.jvnet.staxex:stax-ex:jar:1.8.1:compile
[INFO] | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16:compile
[INFO] +- org.hibernate.validator:hibernate-validator:jar:7.0.1.Final:compile
[INFO] | +- jakarta.validation:jakarta.validation-api:jar:3.0.0:compile
[INFO] | \- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] +- org.glassfish:jakarta.el:jar:4.0.0-RC2:compile
[INFO] | \- jakarta.el:jakarta.el-api:jar:4.0.0-RC2:compile
[INFO] +- org.hibernate.validator:hibernate-validator-cdi:jar:7.0.1.Final:compile
[INFO] \- javax.validation:validation-api:jar:2.0.1.Final:compile
The issue appears to have been the spring-boot-email-core
[INFO] +- it.ozimov:spring-boot-email-core:jar:0.6.3:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.3.3.Final:compile
Adding the following to the dependency fixed it
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</exclusion>
</exclusions>
This is wired my spring boot application was working fine with spring-kafka dependency. For application monitoring with prometheus as soon I add spring-boot-starter-actuator dependency, my application blows up with exception.
If I remove the spring-boot-starter-actuator dependency application works fine. It seems spring-kafka has some compatibility issue with spring-boot-starter-actuator. Actuator is not able to collect/publish Kafka metrics. Please suggest how can I do my springboot application monitoring with actuator & prometheus
EDIT
After updating the spring-kafka and kafka-clients dependencies as per the compatibility matrix, I started getting exception in my junits for EmbeddedKafkaBroker server startup. The method org.apache.kafka.common.security.JaasUtils.isZkSecurityEnabled() seems to be removed/updated in kafka-clients which is being called from EmbeddedKafkaBroker class of sprint-kafka-test. The exception stack trace is updated below. Also provided mvn dependency tree.
If dependencies are included as per compatibility suggested by spring, what can be the reason that spring-kafka-test and kafka-clients are not in sync. Please suggest to resolve this error.
pom.xml (Edited)
<properties>
<spring-boot.version>2.3.0.RELEASE</spring-boot.version>
<spring.version>5.2.6.RELEASE</spring.version>
<springkafka.version>2.5.1.RELEASE</springkafka.version>
<kafkaclient.version>2.5.0</kafkaclient.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>1.5.3</version>
</dependency>
</dependencies>
Exception stack trace (Edited)
[ERROR]:::[]:[]:[]:[]:[Fatal error during KafkaServer startup. Prepare to shutdown]
java.lang.NoSuchMethodError: org.apache.kafka.common.security.JaasUtils.isZkSecurityEnabled()Z
at kafka.server.KafkaServer.initZkClient(KafkaServer.scala:384)
at kafka.server.KafkaServer.startup(KafkaServer.scala:207)
at kafka.utils.TestUtils$.createServer(TestUtils.scala:159)
at kafka.utils.TestUtils$.createServer(TestUtils.scala:150)
at kafka.utils.TestUtils.createServer(TestUtils.scala)
at org.springframework.kafka.test.EmbeddedKafkaBroker.afterPropertiesSet(EmbeddedKafkaBroker.java:309)
at org.springframework.kafka.test.rule.EmbeddedKafkaRule.before(EmbeddedKafkaRule.java:113)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:50)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
mvn dependency:tree
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.3.0.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.2:compile
[INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | +- org.springframework:spring-core:jar:5.2.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.2.6.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.26:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-redis:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-redis:jar:2.3.0.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-keyvalue:jar:2.3.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-oxm:jar:5.2.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-aop:jar:5.2.6.RELEASE:compile
[INFO] | \- io.lettuce:lettuce-core:jar:5.3.0.RELEASE:compile
[INFO] | \- io.projectreactor:reactor-core:jar:3.3.5.RELEASE:compile
[INFO] | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-quartz:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework:spring-context-support:jar:5.2.6.RELEASE:compile
[INFO] | \- org.quartz-scheduler:quartz:jar:2.3.2:compile
[INFO] | \- com.mchange:mchange-commons-java:jar:0.2.15:compile
[INFO] +- com.google.guava:guava:jar:19.0:compile
[INFO] +- io.netty:netty-handler-proxy:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-common:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-buffer:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-transport:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-codec:jar:4.1.46.Final:compile
[INFO] | +- io.netty:netty-codec-socks:jar:4.1.46.Final:compile
[INFO] | \- io.netty:netty-codec-http:jar:4.1.46.Final:compile
[INFO] +- io.netty:netty-codec-http2:jar:4.1.46.Final:compile
[INFO] | \- io.netty:netty-handler:jar:4.1.46.Final:compile
[INFO] +- com.bmc.aif:aif-core-grpc-library:jar:1.0.00-SNAPSHOT:compile
[INFO] | +- io.grpc:grpc-netty:jar:1.6.1:compile
[INFO] | +- io.grpc:grpc-core:jar:1.6.1:compile
[INFO] | +- io.grpc:grpc-context:jar:1.6.1:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.0.19:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] | +- com.google.instrumentation:instrumentation-api:jar:0.4.3:compile
[INFO] | +- io.opencensus:opencensus-api:jar:0.5.1:compile
[INFO] | +- io.netty:netty-resolver:jar:4.1.46.Final:compile
[INFO] | +- io.grpc:grpc-protobuf:jar:1.6.1:compile
[INFO] | +- com.google.protobuf:protobuf-java:jar:3.3.1:compile
[INFO] | +- com.google.protobuf:protobuf-java-util:jar:3.3.1:compile
[INFO] | +- com.google.api.grpc:proto-google-common-protos:jar:0.1.9:compile
[INFO] | | \- com.google.api:api-common:jar:1.0.0-rc1:compile
[INFO] | | \- com.google.auto.value:auto-value:jar:1.1:compile
[INFO] | +- io.grpc:grpc-protobuf-lite:jar:1.6.1:compile
[INFO] | | \- com.google.protobuf:protobuf-lite:jar:3.0.1:compile
[INFO] | +- io.grpc:grpc-stub:jar:1.6.1:compile
[INFO] | \- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] +- com.bmc.aif:kafka-messaging-library:jar:1.0.00-SNAPSHOT:compile
[INFO] | +- org.eclipse.collections:eclipse-collections:jar:10.2.0:compile
[INFO] | \- org.eclipse.collections:eclipse-collections-api:jar:10.2.0:compile
[INFO] +- com.bmc.aif:aif-job-manager-grpc-library:jar:1.0.00-SNAPSHOT:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.3.0.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.3.0.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.3.0.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:test
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:test
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:test
[INFO] | +- org.assertj:assertj-core:jar:3.16.1:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.6.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.6.2:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.6.2:test
[INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.6.2:test
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
[INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.6.2:test
[INFO] | | \- junit:junit:jar:4.13:test
[INFO] | +- org.mockito:mockito-core:jar:3.3.3:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.5:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.3.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.2.6.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.7.0:test
[INFO] +- org.projectlombok:lombok:jar:1.16.22:provided
[INFO] +- com.h2database:h2:jar:1.4.200:test
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.0:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.11.0:runtime
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.11.0:compile
[INFO] +- org.springframework:spring-tx:jar:5.2.6.RELEASE:compile
[INFO] | \- org.springframework:spring-beans:jar:5.2.6.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jdbc:jar:2.3.0.RELEASE:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.3.0.RELEASE:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:5.2.6.RELEASE:compile
[INFO] | \- org.springframework.data:spring-data-jdbc:jar:2.0.0.RELEASE:runtime
[INFO] | +- org.springframework.data:spring-data-relational:jar:2.0.0.RELEASE:runtime
[INFO] | \- org.springframework.data:spring-data-commons:jar:2.3.0.RELEASE:compile
[INFO] +- org.postgresql:postgresql:jar:42.2.14:runtime
[INFO] +- javax.xml.bind:jaxb-api:jar:2.2.6:runtime
[INFO] +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- net.bytebuddy:byte-buddy:jar:1.10.9:runtime
[INFO] +- com.github.everit-org.json-schema:org.everit.json.schema:jar:1.12.1:compile
[INFO] | +- commons-validator:commons-validator:jar:1.6:compile
[INFO] | | +- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- com.damnhandy:handy-uri-templates:jar:2.1.8:compile
[INFO] | | \- joda-time:joda-time:jar:2.10.2:compile
[INFO] | \- com.google.re2j:re2j:jar:1.3:compile
[INFO] +- com.bmc.truesight.saas:tspod-library:jar:1.0.00-SNAPSHOT:compile
[INFO] +- com.bmc.ade.core:service-pre-deployment-library:jar:1.0.00-SNAPSHOT:runtime
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-databind:jar:2.10.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jopt-simple:jar:5.0.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:zkclient:jar:0.10:compile
[INFO] | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile
[INFO] | +- org.apache.zookeeper:zookeeper-jute:jar:3.5.6:compile
[INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-dataformat-yaml:jar:2.10.0:compile
[INFO] | +- org.scala-lang:scala-library:jar:2.12.10:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:curator-recipes:jar:2.9.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:curator-framework:jar:2.9.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:curator-client:jar:2.9.0:compile
[INFO] | +- org.apache.kafka:kafka_2.12:jar:2.4.1:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-scala_2.12:jar:2.10.0:compile
[INFO] | | | \- com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.10.0:compile
[INFO] | | | \- com.thoughtworks.paranamer:paranamer:jar:2.8:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.10.0:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.0:compile
[INFO] | | +- net.sf.jopt-simple:jopt-simple:jar:5.0.4:compile
[INFO] | | +- org.scala-lang.modules:scala-collection-compat_2.12:jar:2.1.2:compile
[INFO] | | +- org.scala-lang.modules:scala-java8-compat_2.12:jar:0.9.0:compile
[INFO] | | +- com.typesafe.scala-logging:scala-logging_2.12:jar:3.9.2:compile
[INFO] | | \- commons-cli:commons-cli:jar:1.4:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:zookeeper:jar:3.5.6:compile
[INFO] | +- org.apache.kafka:kafka-streams:jar:2.4.1:runtime
[INFO] | | +- org.apache.kafka:connect-json:jar:2.4.1:runtime
[INFO] | | | \- org.apache.kafka:connect-api:jar:2.4.1:runtime
[INFO] | | \- org.rocksdb:rocksdbjni:jar:5.18.3:runtime
[INFO] | +- com.bmc.truesight.saas.thirdparty:metrics-core:jar:3.2.4:runtime
[INFO] | +- org.scala-lang:scala-reflect:jar:2.12.10:compile
[INFO] | \- com.bmc.truesight.saas.thirdparty:scala-logging_2.12:jar:3.9.0:runtime
[INFO] +- com.bmc.truesight.saas:tspod-library-implv2:jar:1.0.00-SNAPSHOT:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:slf4j-api:jar:1.7.25:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:logback-classic:jar:1.2.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:logback-core:jar:1.2.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-http2:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-common:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-buffer:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-http:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-codec-socks:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-handler:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-handler-proxy:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-resolver:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport:jar:4.1.46.Final:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.5.6:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport-native-epoll:jar:4.1.46.Final:compile
[INFO] | | \- io.netty:netty-transport-native-unix-common:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-transport-native-unix-common:jar:4.1.46.Final:compile
[INFO] | +- org.apache.logging.log4j:log4j-1.2-api:jar:2.13.0:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.13.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:curator-x-discovery:jar:2.9.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:grpc-core:jar:1.6.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-mapper-asl:jar:1.9.13.redhat-2:compile
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-core:jar:2.10.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-annotations:jar:2.10.0:compile
[INFO] | +- com.bmc.truesight.saas:tspod-commu-service-grpc-library:jar:1.0.00-SNAPSHOT:compile
[INFO] | \- com.bmc.truesight.saas:pre-deployment-library:jar:1.0.00-SNAPSHOT:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:cassandra-driver-core:jar:3.8.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:guava:jar:19.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-core:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-secure-sm:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-x-content:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch-geo:jar:7.7.0:compile
[INFO] | | +- org.apache.lucene:lucene-core:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-analyzers-common:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-backward-codecs:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-grouping:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-highlighter:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-join:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-memory:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-misc:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-queries:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-queryparser:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-sandbox:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-spatial-extras:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:8.5.1:compile
[INFO] | | +- org.apache.lucene:lucene-suggest:jar:8.5.1:compile
[INFO] | | +- org.elasticsearch:elasticsearch-cli:jar:7.7.0:compile
[INFO] | | +- com.carrotsearch:hppc:jar:0.8.1:compile
[INFO] | | +- com.tdunning:t-digest:jar:3.2:compile
[INFO] | | \- org.elasticsearch:jna:jar:4.5.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-core:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-x-content:jar:7.7.0:compile
[INFO] | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.10.4:compile
[INFO] | | \- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.10.4:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:transport:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch:elasticsearch:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:transport-netty4-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:reindex-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:lang-mustache-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:percolator-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:parent-join-client:jar:7.7.0:compile
[INFO] | | \- org.elasticsearch.plugin:rank-eval-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:transport-netty4-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:reindex-client:jar:7.7.0:compile
[INFO] | | \- org.elasticsearch:elasticsearch-ssl-config:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:parent-join-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lang-mustache-client:jar:7.7.0:compile
[INFO] | | \- com.github.spullara.mustache.java:compiler:jar:0.9.6:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:percolator-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-rest-high-level-client:jar:7.7.0:compile
[INFO] | | +- org.elasticsearch.plugin:mapper-extras-client:jar:7.7.0:compile
[INFO] | | \- org.elasticsearch.plugin:aggs-matrix-stats-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:rank-eval-client:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-core:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-analyzers-common:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-backward-codecs:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-grouping:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-highlighter:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-join:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-memory:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-misc:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-queries:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-queryparser:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-sandbox:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-spatial:jar:8.4.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-spatial-extras:jar:8.5.2:compile
[INFO] | | +- io.sgr:s2-geometry-library-java:jar:1.0.0:compile
[INFO] | | \- org.locationtech.spatial4j:spatial4j:jar:0.7:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:lucene-suggest:jar:8.5.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:httpclient:jar:4.5.7:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:httpcore:jar:4.4.11:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:httpcore-nio:jar:4.4.11:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:httpasyncclient:jar:4.1.4:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:commons-codec:jar:1.11:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:commons-logging:jar:1.1.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:netty-all:jar:4.1.46.Final:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:compiler:jar:0.9.3:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jcl-over-slf4j:jar:1.7.25:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:log4j-core:jar:2.12.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:log4j-api:jar:2.12.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:jackson-dataformat-cbor:jar:2.10.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:scala-parser-combinators_2.12:jar:1.1.1:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:scala-library:jar:2.12.6:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:cassandra-driver-mapping:jar:3.8.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:joda-time:jar:2.10.2:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:elasticsearch-cli:jar:7.7.0:compile
[INFO] | +- com.bmc.truesight.saas.thirdparty:t-digest:jar:3.2:compile
[INFO] | \- com.bmc.truesight.saas.thirdparty:hppc:jar:0.8.1:compile
[INFO] +- commons-io:commons-io:jar:2.7:compile
[INFO] +- com.bmc.truesight.saas:env-provider-library:jar:1.0.00-SNAPSHOT:compile
[INFO] +- com.bmc.truesight.saas:env-provider-library-impl:jar:1.0.00-SNAPSHOT:compile
[INFO] +- org.json:json:jar:20200518:compile
[INFO] +- io.kubernetes:client-java:jar:8.0.0:compile
[INFO] | +- io.kubernetes:client-java-api:jar:8.0.0:compile
[INFO] | | +- io.sundr:builder-annotations:jar:0.21.0:compile
[INFO] | | | +- io.sundr:sundr-core:jar:0.21.0:compile
[INFO] | | | +- io.sundr:sundr-codegen:jar:0.21.0:compile
[INFO] | | | \- io.sundr:resourcecify-annotations:jar:0.21.0:compile
[INFO] | | +- io.swagger:swagger-annotations:jar:1.5.22:compile
[INFO] | | +- com.squareup.okhttp3:okhttp:jar:3.14.3:compile
[INFO] | | | \- com.squareup.okio:okio:jar:1.17.2:compile
[INFO] | | +- com.squareup.okhttp3:logging-interceptor:jar:3.14.3:compile
[INFO] | | +- io.gsonfire:gson-fire:jar:1.8.3:compile
[INFO] | | \- org.joda:joda-convert:jar:1.2:compile
[INFO] | +- io.kubernetes:client-java-proto:jar:8.0.0:compile
[INFO] | +- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- org.apache.commons:commons-compress:jar:1.19:compile
[INFO] | +- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] | \- org.bitbucket.b_c:jose4j:jar:0.7.0:compile
[INFO] +- org.bouncycastle:bcprov-jdk15on:jar:1.66:test
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.3.0.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.5:compile
[INFO] | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.4.15.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.24.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.1.3.Final:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.3:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.1:compile
[INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.1:compile
[INFO] | | +- com.sun.istack:istack-commons-runtime:jar:3.0.7:compile
[INFO] | | +- org.jvnet.staxex:stax-ex:jar:1.8:compile
[INFO] | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.15:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.3.0.RELEASE:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.2.6.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.2.6.RELEASE:compile
[INFO] +- org.apache.kafka:kafka-clients:jar:2.5.0:compile
[INFO] | +- com.github.luben:zstd-jni:jar:1.4.4-7:compile
[INFO] | +- org.lz4:lz4-java:jar:1.7.1:compile
[INFO] | \- org.xerial.snappy:snappy-java:jar:1.1.7.3:compile
[INFO] +- **org.springframework.kafka:spring-kafka-test:jar:2.5.1.RELEASE:test**
[INFO] | +- org.springframework:spring-context:jar:5.2.6.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.2.6.RELEASE:compile
[INFO] | +- org.springframework.retry:spring-retry:jar:1.2.5.RELEASE:compile
[INFO] | +- **org.apache.kafka:kafka-clients:jar:test:2.5.0:test**
[INFO] | +- org.apache.kafka:kafka-streams-test-utils:jar:2.5.0:test
[INFO] | +- org.apache.kafka:kafka_2.12:jar:test:2.5.0:test
[INFO] | \- org.junit.jupiter:junit-jupiter-api:jar:5.6.2:test
[INFO] | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | \- org.junit.platform:junit-platform-commons:jar:1.6.2:test
[INFO] +- **org.springframework.kafka:spring-kafka:jar:2.5.1.RELEASE:compile**
[INFO] | \- org.springframework:spring-messaging:jar:5.2.6.RELEASE:compile
[INFO] +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] +- org.flywaydb:flyway-core:jar:6.5.0:compile
[INFO] +- com.bmc.ade:ims-java-sdk:jar:0.0.7:compile
[INFO] | +- org.slf4j:slf4j-log4j12:jar:1.7.21:compile
[INFO] | | \- log4j:log4j:jar:1.2.17:compile
[INFO] | +- com.auth0:java-jwt:jar:3.3.0:compile
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.5.5:compile
[INFO] | \- org.apache.httpcomponents:httpcore:jar:4.4.9:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.3.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.3.0.RELEASE:compile
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.3.0.RELEASE:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.5.1:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] \- io.micrometer:micrometer-registry-prometheus:jar:1.5.3:compile
[INFO] \- io.prometheus:simpleclient_common:jar:0.8.1:compile
[INFO] \- io.prometheus:simpleclient:jar:0.8.1:compile
Spring Boot 2.3 (currently 2.3.6) requires spring-kafka 2.5 (currently 2.5.8).
Generally, you should not specify versions for Boot dependencies; boot will properly bring in its compatible versions.
To add to Gary's comment, if you still want to managed the dependencies yourself, you can consult the compatibility matrix found here: https://spring.io/projects/spring-kafka
spring-kafka 2.5.X + Kafka Client 2.5.0 + Spring Boot 2.3.X
In your case, where I assume spring-boot is leading, you will need to upgrade kafka-client + spring-kafka.
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
I'm having some problems with running neo4j (in embedded mode) with WebAdmin - version 1.6.
I initialize the DB and webadmin as follows:
graphDb = new EmbeddedGraphDatabase( DB_PATH);
srv = new WrappingNeoServerBootstrapper( graphDb);
srv.start();
registerShutdownHook( graphDb, srv );
which is just usual way described in Neo4j documentation.
And my Maven dependencies are:
<dependencies>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>${neo4j-version}</version>
</dependency>
<dependency>
<groupId>org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<version>${neo4j-version}</version>
</dependency>
<dependency>
<groupId>org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<classifier>static-web</classifier>
<version>${neo4j-version}</version>
</dependency>
</dependencies>
The error I get when trying to access http://localhost:7474 is:
Problem accessing /. Reason:
javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer;
Caused by:
java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getRequestURL()Ljava/lang/StringBuffer;
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:638)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
Despite my dependencies and my dependency:tree output looking like this:
[INFO] neo4j-starter:neo4j-starter:jar:0.0.1-SNAPSHOT
[INFO] +- commons-configuration:commons-configuration:jar:1.4:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2:compile
[INFO] | +- commons-lang:commons-lang:jar:2.3:compile
[INFO] | +- commons-logging:commons-logging-api:jar:1.0.4:compile
[INFO] | +- commons-digester:commons-digester:jar:1.8:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.1:compile
[INFO] | | +- logkit:logkit:jar:1.0.1:compile
[INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:compile
[INFO] | +- commons-beanutils:commons-beanutils-core:jar:1.7.0:compile
[INFO] | +- commons-codec:commons-codec:jar:1.3:compile
[INFO] | \- commons-jxpath:commons-jxpath:jar:1.2:compile
[INFO] | +- xerces:xerces:jar:1.2.3:compile
[INFO] | +- javax.servlet:servlet-api:jar:2.2:compile
[INFO] | +- ant:ant-optional:jar:1.5.1:compile
[INFO] | +- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | \- jdom:jdom:jar:b9:compile
[INFO] +- org.neo4j:neo4j:jar:1.6.M03:compile
[INFO] | +- org.neo4j:neo4j-kernel:jar:1.6.M03:compile
[INFO] | | \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
[INFO] | +- org.neo4j:neo4j-lucene-index:jar:1.6.M03:compile
[INFO] | | \- org.apache.lucene:lucene-core:jar:3.5.0:compile
[INFO] | +- org.neo4j:neo4j-graph-algo:jar:1.6.M03:compile
[INFO] | +- org.neo4j:neo4j-udc:jar:1.6.M03:compile
[INFO] | +- org.neo4j:neo4j-graph-matching:jar:1.6.M03:compile
[INFO] | +- org.neo4j:neo4j-cypher:jar:1.6.M03:compile
[INFO] | | \- org.scala-lang:scala-library:jar:2.9.0-1:compile
[INFO] | \- org.neo4j:neo4j-jmx:jar:1.6.M03:compile
[INFO] +- org.neo4j.app:neo4j-server:jar:1.6.M03:compile
[ INFO] | +- org.neo4j:neo4j:pom:1.6.M03:compile
[INFO] | +- org.neo4j:server-api:jar:1.6.M03:compile
[INFO] | | \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] | +- org.slf4j:log4j-over-slf4j:jar:1.6.1:compile
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.6.1:compile
[INFO] | +- org.mortbay.jetty:jetty:jar:6.1.25:compile
[INFO] | | +- org.mortbay.jetty:jetty-util:jar:6.1.25:compile
[INFO] | | \- org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile
[INFO] | +- com.sun.jersey:jersey-server:jar:1.9:compile
[INFO] | | +- asm:asm:jar:3.1:compile
[INFO] | | \- com.sun.jersey:jersey-core:jar:1.9:compile
[INFO] | +- commons-io:commons-io:jar:1.4:compile
[INFO] | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.3:compile
[INFO] | | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.3:compile
[INFO] | +- com.tinkerpop.gremlin:gremlin-groovy:jar:1.4:compile
[INFO] | | +- com.tinkerpop.gremlin:gremlin-java:jar:1.4:compile
[INFO] | | +- com.tinkerpop:pipes:jar:0.9:compile
[INFO] | | +- org.codehaus.groovy:groovy:jar:1.8.4:compile
[INFO] | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | +- asm:asm-commons:jar:3.2:compile
[INFO] | | | +- asm:asm-util:jar:3.2:compile
[INFO] | | | +- asm:asm-analysis:jar:3.2:compile
[INFO] | | | \- asm:asm-tree:jar:3.2:compile
[INFO] | | \- org.fusesource.jansi:jansi:jar:1.5:compile
[INFO] | +- com.tinkerpop.blueprints:blueprints-neo4j-graph:jar:1.1:compile
[INFO] | | \- com.tinkerpop.blueprints:blueprints-core:jar:1.1:compile
[INFO] | | \- org.codehaus.jettison:jettison:jar:1.3:compile
[INFO] | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | +- org.rrd4j:rrd4j:jar:2.0.7:compile
[INFO] | +- com.sun.jersey.contribs:jersey-multipart:jar:1.9:compile
[INFO] | | \- org.jvnet:mimepull:jar:1.6:compile
[INFO] | \- org.neo4j:neo4j-shell:jar:1.6.M03:compile
[INFO] | \- org.apache.servicemix.bundles:org.apache.servicemix.bundles.jline:jar:0.9.94_1:compile
[INFO] +- org.neo4j.app:neo4j-server:jar:static-web:1.6.M03:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.4:compile
[INFO] | \- log4j:log4j:jar:1.2.16:compile
[INFO] \- junit:junit:jar:4.8:compile
I needed to include newer version of servlet-api
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.3</version>
</dependency>