users@grizzly.java.net

Re: Grizzly Webserver SSL Port not configurable

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Mon, 23 Aug 2010 11:45:12 +0200

Hi Sabyasachi,

can I ask you to switch to the latest Grizzly 1.9.19 release and check
if the issue is still there?

Thanks.

WBR,
Alexey.

On Aug 23, 2010, at 11:28 , Sabyasachi Biswas wrote:

> Hi,
>
> We have a problem when using the grizzly webserver on a port other
> than default https port , when we start the server on port 443, it
> runs fine but when the server is set to a port other than 443, the
> server starts up , but client's calling the server gets a Connection
> Refused error.
>
> We are using Grizzly Framework 1.9.18-k.
>
> Please advice.
>
> The server code snippet looks like this:
>
> GrizzlyWebServer grizzlyWebServer=new
> GrizzlyWebServer(1443,WEB_APP_ROOT,true);
> SSLConfig sslConfig=new SSLConfig();
> //SSL Config is set correctly here.
> sslConfig.validateConfiguration();
> grizzlyWebServer.setSSLConfig(sslConfig);
> //server settings
> grizzlyWebServer.setCoreThreads(CORE_THREADS);
> grizzlyWebServer.setMaxThreads(MAX_THREADS);
>
> Statistics statistics=grizzlyWebServer.getStatistics();
> statistics.startGatheringStatistics();
>
> //adapter settings
> SOAPMessageAdapter adapter=new SOAPMessageAdapter(WEB_APP_ROOT);
> adapter.setHandleStaticResources(true);
> grizzlyWebServer.addGrizzlyAdapter(adapter,new String[]{"/
> esbgateway"});
>
> grizzlyWebServer.start();
>
>
> Regards,
> Sabyasachi.
>