You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wang Yanlin (JIRA)" <ji...@apache.org> on 2019/07/10 12:59:00 UTC
[jira] [Updated] (SPARK-28337) spark jars do not contain
commons-jxpath jar, cause ClassNotFound exception
[ https://issues.apache.org/jira/browse/SPARK-28337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wang Yanlin updated SPARK-28337:
--------------------------------
Attachment: exception_stack_trace.jpg
> spark jars do not contain commons-jxpath jar, cause ClassNotFound exception
> ---------------------------------------------------------------------------
>
> Key: SPARK-28337
> URL: https://issues.apache.org/jira/browse/SPARK-28337
> Project: Spark
> Issue Type: Bug
> Components: Spark Submit
> Affects Versions: 3.0.0
> Reporter: Wang Yanlin
> Priority: Major
> Attachments: exception_stack_trace.jpg
>
>
> When submit a spark application using XPathExpressionEngine, a ClassNotFound exception will be thrown, even though I shade then class of commons-jxpath:commons-jxpath into my jar.
> The main class of my jar is as follows:
> object StaticTestMain {
> def main(args: Array[String]): Unit = {
> println(s"yanzhi class loader info ${getClass.getClassLoader}")
> val engine = new XPathExpressionEngine() // exception happends in this line
> // some other codes.
> }
> }
> The exception stack trace is in the attached picture file "exception_stack_trace.jpg".
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org