Hi swchan2,
pls. find below the error log regarding the context root error
concerning the http -> https redirection, this does not work at all. If I set
it up correctly li I used to do in SGESv3 from Sun,
the server tells about missing ciphers that have not been available / or
enabled.
just to understand it correctly: I have a virtual host, that has been
assigned to a single IP address.
I setup 2 listener for this host on the same IP, on for port 80 and one for
443.
on the 443 port I enable 'Security' under the 'General' tab and under 'SSL'
tab I enter the cert alias and as well the
pass to the keystore file according ly.
I then return to the port 80 listener to the 'HTTP' tab and enter the
specific server name and default-server and redirect port 443
is that correct? if I do so I got an error message and blank pages. error log
output below.
I have GlassFish 3.2 b-05 in use as this one has not the error assigning
wrong values under dedicated hosts in Application.
thanks for you patience and help
LOGFILE OUTPUT context root error
[#|2011-05-06T22:12:18.802+0200|SEVERE|glassfish3.2|org.apache.catalina.connector.CoyoteAdapter|_ThreadID=29;_ThreadName=Thread-1;|PWC3989:
An exception or error occurred in the container during the request processing
java.lang.ClassCastException: com.sun.grizzly.config.ContextRootInfo cannot
be cast to org.apache.catalina.Context
at
org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:529)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:271)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:172)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]
LOGFILE OUTPUT ssl
[#|2011-05-06T21:54:35.619+0200|WARNING|glassfish3.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=133;_ThreadName=Thread-1;|GRIZZLY0007:
SSL support could not be configured!
java.io.IOException: SSL configuration is invalid due to No available
certificate or key corresponds to the SSL cipher suites which are enabled.
at
com.sun.grizzly.util.net.jsse.JSSE14SocketFactory.checkConfig(JSSE14SocketFactory.java:455)
at
com.sun.grizzly.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:183)
at
com.sun.grizzly.config.SSLConfigHolder.initializeSSL(SSLConfigHolder.java:361)
at
com.sun.grizzly.config.SSLConfigHolder.configureSSL(SSLConfigHolder.java:237)
at
com.sun.grizzly.config.GrizzlyEmbeddedHttps$LazySSLInitializationFilter.execute(GrizzlyEmbeddedHttps.java:202)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.net.ssl.SSLException: No available certificate or key
corresponds to the SSL cipher suites which are enabled.
at
com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.checkEnabledSuites(SSLServerSocketImpl.java:310)
at
com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:255)
at
com.sun.grizzly.util.net.jsse.JSSE14SocketFactory.checkConfig(JSSE14SocketFactory.java:451)
... 14 more
--
[Message sent by forum member 'seagate']
View Post: http://forums.java.net/node/798054