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.