users@grizzly.java.net

Re: Grizzly with SSL

From: Sabyasachi Biswas <sabyforjava_at_gmail.com>
Date: Thu, 12 Aug 2010 16:35:46 +0200

Hi Alexey,

I have send you my test cases, please can you have a look.

Regards,
Sabyasachi.

On Wed, Aug 11, 2010 at 5:24 PM, Oleksiy Stashok <Oleksiy.Stashok_at_sun.com>wrote:

> Thank you for your response, I was just wondering about one thing if the
> grizzly framework is not able to start in the defined port, does it revert
> back to the default port 8080.
>
> It shouldn't.
>
> I see even if https access is not available http port is available,I do not
> see any stacktraces in the grizzly logs, or on my application logs.
>
> In case of port binding errors as this one shouldn't we expect to see some
> error in the logs.
>
> Yes, we should. Though it may also depend on OS default reuseAddress
> setting, but not sure it's the case.
> Can you pls. send the testcase, so I'll be able to check what's wrong?
>
> Thanks.
>
> WBR,
> Alexey.
>
>
> Please let me know.
>
> Regards,
> Sabyasachi.
>
>
>
> On 8/11/10, Sabyasachi Biswas <sabyforjava_at_gmail.com> wrote:
>>
>> Hi,
>>
>> I have been trying to build a SOAP Message Routing server with Grizzly.
>> Everything was working fine when I was
>> using http to access the server. But, since I have started using the
>> server in the secure mode, clients are receiving 'Connection Refused Error'.
>>
>> Even static resources are not found with https , but those can be found
>> with http on the default port.
>>
>> My code looks like this:
>>
>> GrizzlyWebServer grizzlyWebServer=new
>> GrizzlyWebServer(443,WEB_APP_ROOT,true);
>> SSLConfig sslConfig=new SSLConfig();
>> sslConfig.setKeyStoreFile("-Path-");
>> sslConfig.setKeyStorePass("****");
>> sslConfig.setTrustStoreFile("-Path-");
>> sslConfig.setTrustStorePass("**");
>> sslConfig.validateConfiguration();
>> grizzlyWebServer.setSSLConfig(sslConfig);
>> //server settings
>> grizzlyWebServer.enableProtocol(GrizzlyWebServer.PROTOCOL.HTTP);
>> grizzlyWebServer.setCoreThreads(CORE_THREADS);
>> grizzlyWebServer.setMaxThreads(MAX_THREADS);
>>
>> SOAPMessageAdapter adapter=new SOAPMessageAdapter(WEB_APP_ROOT);
>> adapter.setHandleStaticResources(true);
>> grizzlyWebServer.addGrizzlyAdapter(adapter,new String[]{"/esbgateway"});
>> grizzlyWebServer.start();
>>
>> SOAPMessageAdapter extends the GrizzlyAdapter.
>>
>> With this construction https connection is not working , please can you
>> let me know what am I missing?
>>
>> Regards,
>> Sabyasachi.
>>
>
>
>