[ 
https://issues.apache.org/jira/browse/HDFS-4629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031489#comment-14031489
 ] 

pascal oliva commented on HDFS-4629:
------------------------------------

No, there wasn't a dependency on xerces .

With IBM JVM the build works fine without xerces dependency in the pom.xml

But by using OpenJDK
i have got the following errors :
[ERROR] 
/home/pascal/patchI/hadoop-common/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/XmlEditsVisitor.java:[33,31]
 error: package org.apache.xml.serialize does not exist
 [ERROR] 
/home/pascal/patchI/hadoop-common/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/XmlEditsVisitor.java:[55,4]
 error: cannot find symbol
[ERROR]   symbol:   class OutputFormat
  location: class XmlEditsVisitor

And by adding :
+ <groupId>xerces</groupId>
 + <artifactId>xercesImpl</artifactId>
 + <version>2.9.0</version>
 + </dependency>

The build passed successfully with the both JVM : IBM and OpenJDK

To test the patch, I used :
mvn compile ; mvn test -fn
There is no new functionnality delivered on that patch, so i used the existing 
tests.


> Using com.sun.org.apache.xml.internal.serialize.* in XmlEditsVisitor.java is 
> JVM vendor specific. Breaks IBM JAVA
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-4629
>                 URL: https://issues.apache.org/jira/browse/HDFS-4629
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 2.0.3-alpha
>         Environment: OS:fedora and RHEL (64 bit)
> Platform: x86, POWER, and SystemZ
> JVM Vendor = IBM
>            Reporter: Amir Sanjar
>         Attachments: HDFS-4629-1.patch, HDFS-4629.patch
>
>
> Porting to a non-JVM vendor solution by replacing:
> import com.sun.org.apache.xml.internal.serialize.OutputFormat;
> import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
> with 
> import org.apache.xml.serialize.OutputFormat;
> import org.apache.xml.serialize.XMLSerializer;



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

Reply via email to