samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad Greenberg <>
Subject Re: Jar conflicts after upgrading from 0.10.0 to 0.11.0
Date Tue, 14 Feb 2017 08:20:25 GMT
Thanks Liu. I already know of all that. The conflicts I see are with Samza and the version
of Hadoop that Samza depends on. I would love to upgrade Hadoop, but it is Samza that is using
the older version.

From: Liu Bo <>
Sent: Tuesday, February 14, 2017 2:14:05 AM
Subject: Re: Jar conflicts after upgrading from 0.10.0 to 0.11.0

Hi chad,

there should be conflicts on maven dependency, and it's very likely to be jetty related as
you mentioned, we end up remove all other jetty related dependencies and only keep the ones
in samza-core

you can check it using mvn dependency:tree
at the project that handles packaging your job's tar.gz and find out which project cause that
conflict, then you can remove it using maven exclusion.


IDE such as eclipse or idea has a nicer visualization of this dependency tree.  The jetty
dependencies in samza-core is attached for reference

On 14 February 2017 at 13:44, Chad Greenberg <<>>
I received the following error after upgrading from 0.10.0 to 0.11.0. I understand the underlying
issue, but I am not finding the exact cause. No other jar contains ServletRegistration except
for avax.servlet-3.0.0.v201112011016.jar which is a dependency of samza-core. Hadoop has a
dependency on older servlet and jetty jars. Would love to upgrade everything, but many of
the transitive dependencies are quite old.

I have seen this error in the mailing list (triggered by an integration test), but there was
no resolve. Hoping someone has encountered and fixed this issue.

2017-02-13 21:29:33.397 [main] JobModelManager$ [INFO] Saving task-to-changelog partition
mapping: Map(Partition 0 -> 0)
Exception in thread "main" java.lang.SecurityException: class "javax.servlet.ServletRegistration$Dynamic"'s
signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(
    at java.lang.ClassLoader.preDefineClass(
    at java.lang.ClassLoader.defineClass(
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at org.apache.samza.coordinator.server.HttpServer$.$lessinit$greater$default$4(HttpServer.scala:63)
    at org.apache.samza.coordinator.JobModelManager$.getJobCoordinator(JobCoordinator.scala:128)
    at org.apache.samza.coordinator.JobModelManager$.apply(JobCoordinator.scala:109)
    at org.apache.samza.coordinator.JobModelManager$.apply(JobCoordinator.scala:115)
    at org.apache.samza.job.local.ThreadJobFactory.getJob(ThreadJobFactory.scala:40)
    at org.apache.samza.job.JobRunner$.main(JobRunner.scala:65)
    at org.apache.samza.job.JobRunner.main(JobRunner.scala)

All the best

Liu Bo

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message