dev@glassfish.java.net

Re: admingui java.lang.NoClassDefFoundError: com/sun/web/security/SSLSocketFactory

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Tue, 19 Aug 2008 08:17:29 -0700

Hi Kumar,

Yes, I switch to go through SSLUtils obtained through the habitat to
get the supported cipher suites, and i don't need to specify security
as one of the HK2-Import-Bundles.
Lloyd, do you think it will be easier now to have this API in AMX now
that the list is obtained from SSLUtils ?

thanks
Anissa


V B Kumar Jayanti wrote:
> Amy Roh wrote:
>
>> I have the latest workspace from this morning with clean build but
>> cannot create http-listener using admingui
>>
>> Caused by: java.lang.NoClassDefFoundError:
>> com/sun/web/security/SSLSocketFactory
>> at
>> org.glassfish.admingui.handlers.SSLHandlers.getSupportedCipherSuites(SSLHandlers.java:541)
>>
>> at
>> org.glassfish.admingui.handlers.SSLHandlers.getSSLProperties(SSLHandlers.java:185)
>>
>> ... 73 more
>> |#]
>>
> I have filed Issue :
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=5521, for this.
>
> Please use the following code now :
>
> 1. In your admingui pom.xml remove dependency on :
> <groupId>org.glassfish.security</groupId>
> <artifactId>websecurity</artifactId>
>
> 2. Add dependency on :
> <groupId>org.glassfish.security</groupId>
> <artifactId>securitycommon</artifactId>
> 3. replace the code that was accessing SSLSocketFactory with the
> following :
>
> import com.sun.enterprise.security.ssl.SSLUtils;
>
> Habitat habitat = ....
> SSLUtils sslUtils = habitat.getComponent(SSLUtils.class);
> String[] cipherSuites = sslUtils.getSupportedCipherSuites();
>
> Let me know if this works for you. You can also try and @Inject
> (HK2) SSLUtils since it is a HK2 Service.
>
>
> regards,
> kumar
>