title: Spark application throws javax.servlet.FilterRegistration
body: <p>I'm using Scala to create and run a Spark application locally.</p>
  
  <p>My build.sbt:</p>
  
  <pre><code>name : "SparkDemo"
  version : "1.0"
  scalaVersion : "2.10.4"
  libraryDependencies += "org.apache.spark" %% "spark-core" % "1.2.0"    exclude("org.apache.hadoop", "hadoop-client")
  libraryDependencies += "org.apache.spark" % "spark-sql_2.10" % "1.2.0"
  libraryDependencies += "org.apache.hadoop" % "hadoop-common" % "2.6.0"  excludeAll(
  ExclusionRule(organization = "org.eclipse.jetty"))
  libraryDependencies += "org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.6.0"
  libraryDependencies += "org.apache.hbase" % "hbase-client" % "0.98.4-hadoop2"
  libraryDependencies += "org.apache.hbase" % "hbase-server" % "0.98.4-hadoop2"
  libraryDependencies += "org.apache.hbase" % "hbase-common" % "0.98.4-hadoop2"
  mainClass in Compile := Some("demo.TruckEvents")
  </code></pre>
  
  <p>During runtime I get the exception:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.ExceptionInInitializerError
    during calling of... Caused by: java.lang.SecurityException: class
    "javax.servlet.FilterRegistration"'s signer information does not match
    signer information of other classes in the same package</p>
  </blockquote>
  
  <p>The exception is triggered here:</p>
  
  <pre><code>val sc = new SparkContext("local", "HBaseTest")
  </code></pre>
  
  <p>I am using the IntelliJ Scala/SBT plugin.</p>
  
  <p>I've seen that other people have also this problem <a href="https://ileriseviye.wordpress.com/2014/12/04/how-to-fix-class-javax-servlet-filterregistrations-signer-information-does-not-match-signer-information-of-other-classes-in-the-same-package-when-unit-testing-with-spark-streaming/" rel="nofollow noreferrer">suggestion solution</a>. But this is a maven build... Is my sbt wrong here? Or any other suggestion how I can solve this problem?</p>