You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2014/05/28 18:29:01 UTC

[jira] [Created] (SPARK-1949) Servlet 2.5 vs 3.0 conflict in SBT build

Sean Owen created SPARK-1949:
--------------------------------

             Summary: Servlet 2.5 vs 3.0 conflict in SBT build
                 Key: SPARK-1949
                 URL: https://issues.apache.org/jira/browse/SPARK-1949
             Project: Spark
          Issue Type: Bug
          Components: Build
    Affects Versions: 1.0.0
            Reporter: Sean Owen
            Priority: Minor


[~kayousterhout] mentioned that:

{quote}
I had some trouble compiling an application (Shark) against Spark 1.0,
where Shark had a runtime exception (at the bottom of this message) because
it couldn't find the javax.servlet classes.  SBT seemed to have trouble
downloading the servlet APIs that are dependencies of Jetty (used by the
Spark web UI), so I had to manually add them to the application's build
file:

libraryDependencies += "org.mortbay.jetty" % "servlet-api" % "3.0.20100224"

Not exactly sure why this happens but thought it might be useful in case
others run into the same problem.
{quote}

This is a symptom of Servlet API conflict which we battled in the Maven build. The resolution is to nix Servlet 2.5 and odd old Jetty / Netty 3.x dependencies. It looks like the Hive part of the assembly in the SBT build doesn't exclude all these entirely.

I'll open a suggested PR to band-aid the SBT build.



--
This message was sent by Atlassian JIRA
(v6.2#6252)