users@grizzly.java.net

Grizzly Webserver SSL Port not configurable

From: Sabyasachi Biswas <sabyforjava_at_gmail.com>
Date: Mon, 23 Aug 2010 11:28:37 +0200

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.