[ 
https://issues.apache.org/jira/browse/SPARK-28337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Owen resolved SPARK-28337.
-------------------------------
    Resolution: Not A Problem

> 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, shde_in_pom.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.
>     }
>  }
> And configuration of shade plugin as the attached picture file 
> "shade_in_pom.jpg"
> The exception stack trace is in the attached picture file 
> "exception_stack_trace.jpg".



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to