[ https://issues.apache.org/jira/browse/KNOX-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14137382#comment-14137382 ]
pascal oliva commented on KNOX-422: ----------------------------------- I tested successfully that patch with OpenJKD, JVM IBM and Oracle JVM. I also tested and proposed this patch for HADOOP-10847 and for HBASE-11542. The use of Bouncy Castle library : org.bouncycastle.x509.X509V1CertificateGenerator could be a first step to build knox with no link with a specific JVM. and as we can read in the Knox README (https://github.com/apache/knox/) the Bouncy Castle tools are already used with the knox dependency ApacheDS. The use of Bouncy Castle library does not break anything. You are right, a second step as you proposed, could be to implement a mechanism to get a Certificate Factory X509 available in the system. > Build break with JVM IBM JAVA > ----------------------------- > > Key: KNOX-422 > URL: https://issues.apache.org/jira/browse/KNOX-422 > Project: Apache Knox > Issue Type: Bug > Components: Build > Affects Versions: 0.4.0 > Environment: RHEL 7 - power pc 64 - maven 3.2.1 - Java home: > /home/jdk/ibm/ibm-java-ppc64-71/jre > Reporter: pascal oliva > Fix For: 0.5.0 > > Attachments: KNOX-422-1.patch > > > The build failed with JVM IBM JAVA : Java version: 1.7.0, vendor: IBM > Corporation > [INFO] 30 errors > [INFO] ------------------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] gateway ........................................... SUCCESS [ 0.510 s] > [INFO] gateway-test-utils ................................ SUCCESS [ 1.631 s] > [INFO] gateway-i18n ...................................... SUCCESS [ 0.290 s] > [INFO] gateway-util-common ............................... SUCCESS [ 0.566 s] > [INFO] gateway-util-launcher ............................. SUCCESS [ 0.190 s] > [INFO] gateway-util-urltemplate .......................... SUCCESS [ 0.345 s] > [INFO] gateway-test-ldap ................................. SUCCESS [ 0.349 s] > [INFO] gateway-test-ldap-launcher ........................ SUCCESS [ 0.030 s] > [INFO] gateway-i18n-logging-log4j ........................ SUCCESS [ 0.064 s] > [INFO] gateway-i18n-logging-sl4j ......................... SUCCESS [ 0.060 s] > [INFO] gateway-spi ....................................... FAILURE [ 0.701 s] > ... > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] > /home/pascal/release/ibmsoe/knox/gateway-spi/src/main/java/org/apache/hadoop/gateway/services/security/impl/BaseKeystoreService.java:[88,9] > cannot find symbol > symbol: class X509CertInfo > ... > On > /home/pascal/release/ibmsoe/knox/gateway-spi/src/main/java/org/apache/hadoop/gateway/services/security/impl/BaseKeystoreService.java > import sun.security.x509.*; is not available with the JVM IBM JAVA -- This message was sent by Atlassian JIRA (v6.3.4#6332)