You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by venkat naidu <ve...@gmail.com> on 2006/12/21 15:23:02 UTC

tests compilation error on IBM Aix 5.1 and 5.2 machine

Hi
  All,

    i have sucessfully built commons http client on IBM Aix 5.1 PowerPC
 machine and when i ran the tests i am getting following error



  [echo] AIX
     [exec] Buildfile: build.xml

     [exec] init:
     [exec]      [echo] -------- HttpClient Library 3.0.1 --------

     [exec] prepare:

     [exec] static:
     [exec]      [copy] Copying 1 file to
/home/TechStack/commons-httpclient/temp/commons-httpclient-3.0.1-Tests
/target/conf

     [exec] compile:

     [exec] compile.tests:
     [exec]     [javac] Compiling 98 source files to
/home/TechStack/commons-httpclient/temp/commons-httpclient-3.0.1-Tests
/target/tests
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:43:
package com.sun.net.ssl does not exist
     [exec]     [javac] import com.sun.net.ssl.KeyManager;
     [exec]     [javac]                        ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:44:
package com.sun.net.ssl does not exist
     [exec]     [javac] import com.sun.net.ssl.KeyManagerFactory;
     [exec]     [javac]                        ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:45:
package com.sun.net.ssl does not exist
     [exec]     [javac] import com.sun.net.ssl.SSLContext;
     [exec]     [javac]                        ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:56:
cannot resolve symbol
     [exec]     [javac] symbol  : class SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]     private static SSLContext SSLCONTEXT = null;
     [exec]     [javac]                    ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:58:
cannot resolve symbol
     [exec]     [javac] symbol  : class SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]     private static SSLContext createSSLContext() {
     [exec]     [javac]                    ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:80:
cannot resolve symbol
     [exec]     [javac] symbol  : class SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]     private static SSLContext getSSLContext() {
     [exec]     [javac]                    ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:47:
package com.sun.net.ssl does not exist
     [exec]     [javac] import com.sun.net.ssl.SSLContext;
     [exec]     [javac]                        ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:48:
package com.sun.net.ssl does not exist
     [exec]     [javac] import com.sun.net.ssl.TrustManager;
     [exec]     [javac]                        ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:49:
package com.sun.net.ssl does not exist
     [exec]     [javac] import com.sun.net.ssl.TrustManagerFactory;
     [exec]     [javac]                        ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:55:
cannot resolve symbol
     [exec]     [javac] symbol  : class SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]     private static SSLContext SSLCONTEXT = null;
     [exec]     [javac]                    ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:57:
cannot resolve symbol
     [exec]     [javac] symbol  : class SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]     private static SSLContext createSSLContext() {
     [exec]     [javac]                    ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:79:
cannot resolve symbol
     [exec]     [javac] symbol  : class SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]     private static SSLContext getSSLContext() {
     [exec]     [javac]                    ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:64:
cannot resolve symbol
     [exec]     [javac] symbol  : class KeyManagerFactory
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]             KeyManagerFactory kmfactory =
KeyManagerFactory.getInstance(
     [exec]     [javac]             ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:65:
cannot resolve symbol
     [exec]     [javac] symbol  : variable KeyManagerFactory
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]
KeyManagerFactory.getDefaultAlgorithm());
     [exec]     [javac]                     ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:64:
cannot resolve symbol
     [exec]     [javac] symbol  : variable KeyManagerFactory
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]             KeyManagerFactory kmfactory =
KeyManagerFactory.getInstance(
     [exec]     [javac]                                           ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:67:
cannot resolve symbol
     [exec]     [javac] symbol  : class KeyManager
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]             KeyManager[] keymanagers =
kmfactory.getKeyManagers();
     [exec]     [javac]             ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:68:
cannot resolve symbol
     [exec]     [javac] symbol  : class SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]             SSLContext sslcontext =
SSLContext.getInstance("TLS");
     [exec]     [javac]             ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLSocketFactory.java:68:
cannot resolve symbol
     [exec]     [javac] symbol  : variable SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLSocketFactory
     [exec]     [javac]             SSLContext sslcontext =
SSLContext.getInstance("TLS");
     [exec]     [javac]                                     ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:63:
cannot resolve symbol
     [exec]     [javac] symbol  : class TrustManagerFactory
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]             TrustManagerFactory tmfactory =
TrustManagerFactory.getInstance(
     [exec]     [javac]             ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:64:
cannot resolve symbol
     [exec]     [javac] symbol  : variable TrustManagerFactory
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]
TrustManagerFactory.getDefaultAlgorithm());
     [exec]     [javac]                     ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:63:
cannot resolve symbol
     [exec]     [javac] symbol  : variable TrustManagerFactory
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]             TrustManagerFactory tmfactory =
TrustManagerFactory.getInstance(
     [exec]     [javac]                                             ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:66:
cannot resolve symbol
     [exec]     [javac] symbol  : class TrustManager
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]             TrustManager[] trustmanagers =
tmfactory.getTrustManagers();
     [exec]     [javac]             ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:67:
cannot resolve symbol
     [exec]     [javac] symbol  : class SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]             SSLContext sslcontext =
SSLContext.getInstance("TLS");
     [exec]     [javac]             ^
     [exec]     [javac] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/src/test/org/apache/commons/httpclient/ssl/SimpleSSLTestProtocolSocketFactory.java:67:
cannot resolve symbol
     [exec]     [javac] symbol  : variable SSLContext
     [exec]     [javac] location: class
org.apache.commons.httpclient.ssl.SimpleSSLTestProtocolSocketFactory
     [exec]     [javac]             SSLContext sslcontext =
SSLContext.getInstance("TLS");
     [exec]     [javac]                                     ^
     [exec]     [javac] 24 errors

     [exec] BUILD FAILED
     [exec] /home/TechStack/commons-httpclient/temp/commons-
httpclient-3.0.1-Tests/build.xml:212: Compile failed; see the compiler error
output for details.

     [exec] Total time: 9 seconds
     [exec] Result: 1



  i think the error is related to JSSE.

please help me in this issue

Thanks in advance

  Venkat

Re: tests compilation error on IBM Aix 5.1 and 5.2 machine

Posted by Roland Weber <ht...@dubioso.net>.
Hello Venkat,

the test classes directly reference classes in SUN's JSSE
implementation, which is probably not installed with the
IBM JDK on AIX. You can either download and install the
SUN JSSE, or you can rewrite the tests to reference the
IBM JSSE classes (com.ibm... instead of com.sun...), or
you can delete the SSL related tests and just trust that
the stuff will work anyway. I'd try the latter first :-)

hope that helps,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org