[
https://issues.apache.org/jira/browse/SPARK-16068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341023#comment-15341023
]
weijie.tong commented on SPARK-16068:
-------------------------------------
Now ,I exclude the jaxb-impl artifact in the ML model pom.xml ,the problem was
solved. wish to be accepted .
<dependency>
<groupId>org.jpmml</groupId>
<artifactId>pmml-model</artifactId>
<version>1.1.15</version>
<exclusions>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.fastinfoset</groupId>
<artifactId>FastInfoset</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>
> ml model import jpmml which includes wrong jaxb-impl version 2.2.7
> ----------------------------------------------------------------------
>
> Key: SPARK-16068
> URL: https://issues.apache.org/jira/browse/SPARK-16068
> Project: Spark
> Issue Type: Bug
> Components: ML, Spark Core
> Affects Versions: 1.6.1
> Reporter: weijie.tong
> Priority: Minor
>
> ml model import jpmml which includes wrong jaxb-impl version 2.2.7 ,the
> com.sun.xml.bind.v2.model.annotation.RuntimeAnnotationReader interface
> extends AnnotationReader which doesn't appears in jaxb-impl version 2.2.7,
> this interface was packed in the assembly jar causing the spark application
> throw exception,
> Caused by: java.lang.NoClassDefFoundError:
> com/sun/xml/bind/v2/model/annotation/AnnotationReader
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]