2 Replies Latest reply on Oct 27, 2016 9:10 AM by jaikiran pai

    Wildfly 9.0.2 SSL

    Daniel Dębny Newbie

      After put my 100% working keystore.jks and truststore.jks into /opt/wildfly/standlone/configration

      and edit standlone.xml

       

       

      /management/security-realms :

      <security-realm name="UndertowRealm">

        <server-identities>

        <ssl>

        <keystore path="keystore.jks" relative-to="jboss.server.config.dir" keystore-password="changeit" alias="xample.pl" key-password="changeit"/>

        </ssl>

        </server-identities>

        <authentication>

        <truststore path="truststore.jks" relative-to="jboss.server.config.dir" keystore-password="changeit"/>

        </authentication>

      </security-realm>

       

       

      profile/subsystem[xmlns="urn:jboss:domain:undertow:2.0"]/server :

      <https-listener name="https" socket-binding="https" security-realm="UndertowRealm" verify-client="REQUESTED"/>

       

       

       

      After run i have error:

       

      [root@localhost etc]# /opt/wildfly/bin/standalone.sh

      =========================================================================

       

        JBoss Bootstrap Environment

        JBOSS_HOME: /opt/wildfly

        JAVA: /opt/jdk1.8.0_111/bin/java

        JAVA_OPTS:  -server -XX:+UseCompressedOops  -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

       

      =========================================================================

       

      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

      02:53:58,154 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final

      02:53:58,460 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final

      02:53:58,565 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) starting

      02:53:59,565 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)

              at org.jboss.as.server.ServerService.boot(ServerService.java:350)

              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:271)

              at java.lang.Thread.run(Thread.java:745)

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[59,2]

      Message: WFLYCTL0198: Unexpected element '{urn:jboss:domain:3.0}security-realm' encountered

              at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:89)

              at org.jboss.as.domain.management.parsing.ManagementXml.parseManagement_1_5(ManagementXml.java:389)

              at org.jboss.as.domain.management.parsing.ManagementXml.parseManagement(ManagementXml.java:297)

              at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:452)

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:144)

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:106)

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

              at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)

              ... 3 more

       

      02:53:59,567 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

      02:53:59,603 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.

      02:53:59,636 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) stopped in 28ms