Spark application throws javax.servlet.FilterRegistration

后端 未结 7 1069
别跟我提以往
别跟我提以往 2020-12-30 01:57

I\'m using Scala to create and run a Spark application locally.

My build.sbt:

name : \"SparkDemo\"
version : \"1.0\"
scalaVersion : \"2.10.4\"
librar         


        
7条回答
  •  暖寄归人
    2020-12-30 02:41

    If it is happening in Intellij Idea you should go to the project setting and find the jar in the modules, and remove it. Then run your code with sbt through shell. It will get the jar files itself, and then go back to intellij and re-run the code through intellij. It somehow works for me and fixes the error. I am not sure what was the problem since it doesn't show up anymore.

    Oh, I also removed the jar file, and added "javax.servlet:javax.servlet-api:3.1.0" through maven by hand and now I can see the error gone.

提交回复
热议问题