Hi,there,
We are customer of HXTT3.0 and are happy about it. However, recently we have encountered a problem because we switch to IBM JVM which doesn't have com.sun.net.ssl.internal.ssl and using com.ibm.jsse2.IBMJSSEProvider2 instead.Provider.class and using . We get a NoClassDefFoundError. Could you solve this issue for us? It will be better if the ssl provider can be configurable, Thanks!
|
Configure the Java Runtime Environment for the SSL socket factory providers by adding entries to the java.security file.
The format of SSL socket factory provider entries are:
ssl.SocketFactory.provider=provider-package-name
ssl.ServerSocketFactory.provider=provider-package-name
Specify the SSL socket factory provider for the Java security provider that you are using.
Example: Include SSL socket factory provider entries like these in the java.security file when you enable FIPS mode in the IBMJSSE2 provider:
# Set the SSL socket factory provider
ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl
Example: Include SSL socket factory provider entries like these in the java.security file when you enable FIPS mode in the IBMJSSE provider:
# Set the SSL socket factory provider
ssl.SocketFactory.provider=com.ibm.fips.jsse.JSSESocketFactory
ssl.ServerSocketFactory.provider=com.ibm.fips.jsse.JSSEServerSocketFactory
Example: Include SSL socket factory provider entries like these when you use the Sun JSSE provider:
# Set the SSL socket factory provider
ssl.SocketFactory.provider=com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl
ssl.ServerSocketFactory.provider=com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl
|
Thanks for your answer. However it does not work for version3.0. Could you send me a demo of version4.0 to see if it will work? And if it does not, could you fix it in the new version?
Thanks!
Lucy
|
I downloaded the latest evaluation version. It seems to still have this problem. Could you fix it for us? Thanks a lot!
|
Thanks for your patience. According to our test for IBM JDK, you should be using an older JDK version belows JDK 1.4 so that HXTT Text (CSV) think you should download JSSE 1.0.3 package for https support in JDK 1.2.x and 1.3.x, and try to load com.sun.net.ssl.internal.ssl to check it. For IBM JRE 5.0, it seems that issue won't happen without any special setting. We will support it soon.
|
The latest package detects automatically IBM JVM. Please download it.
|
Thanks! However I downloaded the latest package and still have some problem.
This is my test:
import java.sql.*;
import java.util.*;
public class HxttTest
{
public static void main(String[] args) throws Exception {
Class.forName("com.hxtt.sql.text.TextDriver");
Properties prop = new Properties();
Connection con = DriverManager.getConnection("jdbc:csv:ftp://jumbo", prop);
con.close();
}
}
The environment is IBMJDK1.6 for linux
After I compile and run the following command:
/home/ibm-java-i386-60-6.0-7.0/bin/java -cp .:/tmp/Text_JDBC40.jar:jcifs.jar HxttTest
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.net.ssl.internal.ssl.Provider
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.hxtt.sql.bq.a(Unknown Source)
at com.hxtt.sql.bq.a(Unknown Source)
at com.hxtt.sql.text.e.(Unknown Source)
at com.hxtt.sql.text.EmbeddedDriver.connect(Unknown Source)
at com.hxtt.global.SQLState.getConnection(Unknown Source)
at com.hxtt.sql.HxttDriver.if(Unknown Source)
at com.hxtt.sql.HxttDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:317)
at java.sql.DriverManager.getConnection(DriverManager.java:297)
at HxttTest.main(HxttTest.java:9)
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider
at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 13 more
Could you run the same test and help us solve this issue? It is important for us, Thanks!
Rui
|
Supported. Please download the latest package, which needn't special setting or jar file. If you wish your older package disappear that issue, yon can try to add JSSE package.
|