Https on JBoss web server
fatbatman May 27, 2007 6:02 PMHow do I get https working on JBoss web server?
I'm trying to migrate my applciation from jbossweb-tomcat55.sar in Jboss 4.0.x to JBossweb.
I've modified;
jboss-5.0.0.Beta2\server\default\deployers\jbossweb.deployer\server.xml
so that it reads;
<Server> <Service name="jboss.web"> <Connector port="80" address="${jboss.bind.address}" maxThreads="250" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" enableLookups="false" redirectPort="443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"/> <!-- A AJP 1.3 Connector on port 8009 --> <Connector port="8009" address="${jboss.bind.address}" emptySessionPath="true" enableLookups="false" redirectPort="443" protocol="AJP/1.3"/> <!-- SSL/TLS Connector configuration using the admin devl guide keystore <Connector port="443" address="${jboss.bind.address}" maxThreads="100" strategy="ms" maxHttpHeaderSize="8192" emptySessionPath="true" scheme="https" secure="true" clientAuth="false" keystoreFile="${jboss.server.home.dir}/conf/mykeyfile.key" keystorePass="mypass" sslProtocol="TLS" /> .....
Do I need to do anything else?
On startup in the log I see;
..............
22:52:42,777 INFO [ServiceEndpointManager] jbossws-2.0.0.DEV (build=200703312135)
22:52:45,965 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found o
n the java.library.path: C:\Program Files (x86)\Java\jdk1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System
32\Wbem;D:\apache-ant-1.6.5\bin;C:\Program Files (x86)\Java\jdk1.5.0_11\bin;d:\workspace\jruby\bin; C:\Program Files (x86)\Mozilla Firefox\;D:\groovy-
1.0/bin
22:52:46,152 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-80
22:52:46,168 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
22:52:46,168 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-443
22:52:46,168 INFO [Catalina] Initialization processed in 1058 ms
22:52:46,168 INFO [StandardService] Starting service jboss.web
22:52:46,183 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.dev
22:52:46,371 INFO [Catalina] Server startup in 200 ms
22:52:52,074 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
.........
But when I try to go to https://localhost or there is no repsponse, and nothing in the log.
If I go to http://localhost:443 I see the web app, although it doesn't appear to be https.
What do I need to do?
Thanks in advance
James