I've attached the results of mvn dependency:tree for the java-exec module. Pushed the code to my repo... https://github.com/srihari/incubator-drill/blob/master/sandbox/prototype/exec/java-exec/src/main/java/org/apache/drill/exec/http/engine/HttpEngine.java
On Mon, Jul 8, 2013 at 11:40 PM, Jacques Nadeau <[email protected]> wrote: > I suggest taking a look at the maven dependency tree and figuring out > whether you have two different servlet transitive dependencies. You > probably need to manually exclude one of these. Are you structuring > this as a separate drill/maven module? We should probably do that and > make java-exec a dependency, then use a hocon extension to manage > loading and running as part of drillbit. > > If you can't figure out the dependency issue, please post the code on > GitHub so we can help you through it. > > thanks, > Jacques > > > On Mon, Jul 8, 2013 at 10:45 AM, Srihari Srinivasan > <[email protected]> wrote: > > Hi Folks, > > > > Have got a basic setup of Jetty integrated with the Drillbit. Next I am > > working on integrating Jersey in order to create the REST resources. I've > > introduced this dependency - > > <dependency> > > <groupId>com.sun.jersey</groupId> > > <artifactId>jersey-server</artifactId> > > <version>1.8</version> > > </dependency> > > > > After which some of the tests started to fail with the following error - > > > > *java.lang.SecurityException: class > > "javax.servlet.ServletRegistration$Dynamic"'s signer information does not > > match signer information of other classes in the same package* > > > > Googling led me to believe that this is possibly happening because > servlet > > API classes are getting loaded from two different jars (one of Jetty and > > another Jersey) each signed differently. Confirmed this by removing the > > above dependency (and the jersey code I introduced) and the tests were > > green once again. > > > > Does anyone know how to deal with this issue? Kind of stuck at this point > > because of this.. > > > > Thanks, > > Hari >
[INFO] ------------------------------------------------------------------------ [INFO] Building java-exec 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ java-exec --- [INFO] org.apache.drill.exec:java-exec:jar:1.0-SNAPSHOT [INFO] +- asm:asm-util:jar:3.3.1:compile [INFO] | \- asm:asm-tree:jar:3.3.1:compile [INFO] +- asm:asm-commons:jar:3.3.1:compile [INFO] +- org.codehaus.janino:commons-compiler-jdk:jar:2.6.1:compile [INFO] | \- org.codehaus.janino:commons-compiler:jar:2.6.1:compile [INFO] +- net.hydromatic:optiq:jar:0.3.2:compile [INFO] | +- eigenbase:eigenbase-xom:jar:1.3.1:compile [INFO] | | +- xerces:xercesImpl:jar:2.5.0:compile [INFO] | | \- org.apache.ant:ant:jar:1.7.1:compile [INFO] | | \- org.apache.ant:ant-launcher:jar:1.7.1:compile [INFO] | +- eigenbase:eigenbase-properties:jar:1.1.2:compile [INFO] | +- eigenbase:eigenbase-resgen:jar:1.3.1:compile [INFO] | +- net.hydromatic:linq4j:jar:0.1.1:compile [INFO] | +- org.jgrapht:jgrapht-jdk1.5:jar:0.7.3:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.1.1:compile [INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.1.1:compile [INFO] | +- org.codehaus.janino:janino:jar:2.6.1:compile [INFO] | \- commons-dbcp:commons-dbcp:jar:1.4:compile [INFO] | \- commons-pool:commons-pool:jar:1.5.4:compile [INFO] +- com.twitter:parquet-column:jar:1.0.0-SNAPSHOT:compile [INFO] | \- commons-codec:commons-codec:jar:1.7:compile [INFO] +- com.yammer.metrics:metrics-core:jar:3.0.0-BETA1:compile [INFO] +- org.apache.drill:common:jar:1.0-SNAPSHOT:compile [INFO] | +- com.typesafe:config:jar:1.0.0:compile [INFO] | +- org.apache.commons:commons-lang3:jar:3.1:compile [INFO] | +- org.msgpack:msgpack:jar:0.6.6:compile [INFO] | | +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile [INFO] | | \- org.javassist:javassist:jar:3.16.1-GA:compile [INFO] | +- org.reflections:reflections:jar:0.9.8:compile [INFO] | | +- javassist:javassist:jar:3.12.1.GA:compile [INFO] | | \- dom4j:dom4j:jar:1.6.1:compile [INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile [INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.1.1:compile [INFO] | +- org.hibernate:hibernate-validator:jar:4.3.1.Final:compile [INFO] | | +- javax.validation:validation-api:jar:1.0.0.GA:compile [INFO] | | \- org.jboss.logging:jboss-logging:jar:3.1.0.CR2: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] +- org.apache.drill:common:jar:tests:1.0-SNAPSHOT:compile [INFO] +- com.beust:jcommander:jar:1.30:compile [INFO] +- com.netflix.curator:curator-x-discovery:jar:1.1.9:compile [INFO] | +- com.netflix.curator:curator-framework:jar:1.1.9:compile [INFO] | | \- com.netflix.curator:curator-client:jar:1.1.9:compile [INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.2:compile [INFO] | | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.2:compile [INFO] | \- org.apache.zookeeper:zookeeper:jar:3.4.3:compile [INFO] | +- jline:jline:jar:0.9.94:compile [INFO] | \- org.jboss.netty:netty:jar:3.2.2.Final:compile [INFO] +- org.xerial.snappy:snappy-java:jar:1.0.5-M3:compile [INFO] +- org.apache.hadoop:hadoop-core:jar:1.1.0:compile [INFO] | +- commons-cli:commons-cli:jar:1.2:compile [INFO] | +- xmlenc:xmlenc:jar:0.52:compile [INFO] | +- commons-io:commons-io:jar:2.1:compile [INFO] | +- commons-httpclient:commons-httpclient:jar:3.0.1:compile [INFO] | +- org.apache.commons:commons-math:jar:2.1:compile [INFO] | +- commons-configuration:commons-configuration:jar:1.6:compile [INFO] | | +- commons-collections:commons-collections:jar:3.2.1:compile [INFO] | | +- commons-lang:commons-lang:jar:2.4: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] | +- commons-net:commons-net:jar:1.4.1: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:compile [INFO] | +- tomcat:jasper-runtime:jar:5.5.12:compile [INFO] | +- tomcat:jasper-compiler:jar:5.5.12:compile [INFO] | +- org.mortbay.jetty:jsp-api-2.1:jar:6.1.14:compile [INFO] | | \- org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:compile [INFO] | +- org.mortbay.jetty:jsp-2.1:jar:6.1.14:compile [INFO] | | \- ant:ant:jar:1.6.5:compile [INFO] | +- commons-el:commons-el:jar:1.0:compile [INFO] | +- net.sf.kosmosfs:kfs:jar:0.3:compile [INFO] | +- hsqldb:hsqldb:jar:1.8.0.10:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | \- org.eclipse.jdt:core:jar:3.1.1:compile [INFO] +- org.eclipse.jetty:jetty-server:jar:9.0.4.v20130625:compile [INFO] | +- org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:compile [INFO] | +- org.eclipse.jetty:jetty-http:jar:9.0.4.v20130625:compile [INFO] | | \- org.eclipse.jetty:jetty-util:jar:9.0.4.v20130625:compile [INFO] | \- org.eclipse.jetty:jetty-io:jar:9.0.4.v20130625:compile [INFO] +- org.eclipse.jetty:jetty-servlet:jar:9.0.4.v20130625:compile [INFO] | \- org.eclipse.jetty:jetty-security:jar:9.0.4.v20130625:compile [INFO] +- com.sun.jersey:jersey-server:jar:1.8:compile [INFO] | +- asm:asm:jar:3.1:compile [INFO] | \- com.sun.jersey:jersey-core:jar:1.8:compile [INFO] +- com.carrotsearch:hppc:jar:0.4.2:compile [INFO] +- io.netty:netty-all:jar:4.0.0.CR2:compile [INFO] +- com.google.protobuf:protobuf-java:jar:2.5.0:compile [INFO] +- com.hazelcast:hazelcast:jar:2.5.1:compile [INFO] +- com.google.guava:guava:jar:13.0.1:compile [INFO] +- org.slf4j:slf4j-api:jar:1.7.2:compile [INFO] +- org.slf4j:jul-to-slf4j:jar:1.7.2:compile [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.2:compile [INFO] +- org.slf4j:log4j-over-slf4j:jar:1.7.2:compile [INFO] +- com.googlecode.jmockit:jmockit:jar:1.2:test [INFO] +- junit:junit:jar:4.11:test (scope not updated to compile) [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] +- ch.qos.logback:logback-classic:jar:1.0.7:test [INFO] | \- ch.qos.logback:logback-core:jar:1.0.7:test [INFO] \- de.huxhorn.lilith:de.huxhorn.lilith.logback.appender.multiplex-classic:jar:0.9.43:test [INFO] +- de.huxhorn.lilith:de.huxhorn.lilith.data.logging.protobuf:jar:0.9.43:test [INFO] | \- de.huxhorn.lilith:de.huxhorn.lilith.data.logging:jar:0.9.43:test [INFO] | +- de.huxhorn.sulky:de.huxhorn.sulky.formatting:jar:0.9.16:test [INFO] | \- de.huxhorn.lilith:de.huxhorn.lilith.data.eventsource:jar:0.9.43:test [INFO] +- de.huxhorn.lilith:de.huxhorn.lilith.logback.appender.multiplex-core:jar:0.9.43:test [INFO] | \- de.huxhorn.lilith:de.huxhorn.lilith.sender:jar:0.9.43:test [INFO] +- de.huxhorn.sulky:de.huxhorn.sulky.codec:jar:0.9.16:test [INFO] | \- de.huxhorn.sulky:de.huxhorn.sulky.io:jar:0.9.16:test [INFO] \- de.huxhorn.lilith:de.huxhorn.lilith.logback.converter-classic:jar:0.9.43:test [INFO] +- de.huxhorn.lilith:de.huxhorn.lilith.logback.classic:jar:0.9.43:test [INFO] \- de.huxhorn.lilith:de.huxhorn.lilith.data.converter:jar:0.9.43:test [INFO] [INFO] ------------------------------------------------------------------------
