1 Reply Latest reply on Oct 27, 2012 11:50 AM by lafr

    SSL Service Startup Problem

    bill.rosenberg

      I am trying to add SSL to my web app and have the follwoing configuration in standalone.xml with this error:

       

      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

                  <configuration>

                      <jsp-configuration development="true" smap="false"/>

                  </configuration>

                  <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

                 

                   <connector name="https" protocol="HTTP/1.1" socket-binding="https" scheme="https" secure="true">

                      <ssl name="https" password="myPassword" certificate-key-file="../standalone/configuration/lskeystore.jks"/>

                     

                  </connector>

                 

                  <virtual-server name="default-host" enable-welcome-root="false">

                      <alias name="localhost"/>

                      <alias name="example.com"/>

                  </virtual-server>

              </subsystem>

       

       

      09:12:31,581 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.web.connector.https: org.jboss.msc.service.StartException in service jboss.web.connector.https: JBAS018007: Error starting web connector

          at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:271)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]

      Caused by: LifecycleException:  Protocol handler initialization failed: java.io.IOException: Alias name jboss does not identify a key entry

          at org.apache.catalina.connector.Connector.init(Connector.java:985)

          at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)

          ... 5 more

        • 1. Re: SSL Service Startup Problem
          lafr

          Thediff between my standalone-full.xml and the standard one shows:

          366,369c366

          <             <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="9143"/>

          <             <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">

          <                 <ssl certificate-key-file="/home/jboss/security/server.keystore" key-alias="mbicert" password="..."/>

          <             </connector>

          ---

          >             <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

           

          Your ssl element does not provide an key-alias attribute.

          From the error meesage you got I'd assume that "jboss" is the default value if the attribute is missing and you used a different value when creating the certificate file.