-
1. Re: How to load a class from jsse.jar
jaikiran May 22, 2013 11:43 PM (in response to bes.comcom)Those classes are Java vendor specific classes and aren't part of the core Java API. That's the reason why they aren't visible by "default". Some of those have been added to sun.jdk module as and when required. Can you post more details including the exception stacktrace where you are seeing this problem.
-
2. Re: How to load a class from jsse.jar
bes.comcom May 23, 2013 9:56 AM (in response to jaikiran)The stack trace isn't going to tell us anything we don't already know. It tells us that a method in my middleware has a dependancy on the com.sun ssl classes.
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider from [Module "deployment.pz3.ear.pz3Business.ejb3:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1-redhat-1]
... 105 more
More relevant is probably how I'm trying to add this class set to the sun.jdk module Here's my modification:
I added
<path name="com/sun/ssl/internal/ssl" />
to the paths element of the sun.jdk:main module.xml
I also added the sun.jdk module as a dependency in my jboss-deployment-structure.xml for good measure. none of this has resolved the error.
-
3. Re: How to load a class from jsse.jar
sfcoy May 27, 2013 6:47 AM (in response to bes.comcom)Show us the whole stacktrace anyway.
Or are referencing the "com.sun.net.ssl.internal.ssl.Provider" class directly?
-
4. Re: How to load a class from jsse.jar
bes.comcom May 28, 2013 10:04 AM (in response to sfcoy)Stephen, Yes the Provider class was being referenced directly. Back when the servlet that was using it was written that was standard practice. I refactored it to use the security manager so this is no longer an issue. But the original question remains. How to import similar classes in the future.