0 Replies Latest reply on Mar 28, 2014 8:43 AM by compauer

    Configure JBoss for HTTPS on Eclipse Windows




      I´m using Jboss wildfly and following this tutorial: https://wiki.jasig.org/display/CASUM/HOWTO+Configure+JBoss+for+HTTPS. So I created a certificate, server.keytore and so on. My Hostname is "MyHost" and I typed it to "Host name" of Server Overview. Also added -c default and -Djavax... as you can see below:


      -mp "C:/Server/jboss-8.0.x/wildfly-8.0.0.Final/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b --server-config=standalone.xml -c default -Djavax.net.ssl.trustStore="C:/Java/jre7/bin/server.keystore"

      My server is working without SSL. When I try to start server with the arguments mentioned before, I´m getting a Error with:

      17:35:11,896 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final
      17:35:12,270 ERROR [stderr] (main) java.lang.IllegalStateException: JBAS014805: Could not get main file: default-01. Specified files must be relative to the configuration dir: C:\Server\jboss-8.0.x\wildfly-8.0.0.Final\standalone\configuration
      17:35:12,272 ERROR [stderr] (main)  at org.jboss.as.controller.persistence.ConfigurationFile.determineMainFile(ConfigurationFile.java:167)
      17:35:12,272 ERROR [stderr] (main)  at org.jboss.as.controller.persistence.ConfigurationFile.<init>(ConfigurationFile.java:94)
      17:35:12,272 ERROR [stderr] (main)  at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:394)
      17:35:12,272 ERROR [stderr] (main)  at org.jboss.as.server.Main.determineEnvironment(Main.java:257)
      17:35:12,273 ERROR [stderr] (main)  at org.jboss.as.server.Main.main(Main.java:88)
      17:35:12,273 ERROR [stderr] (main)  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:35:12,273 ERROR [stderr] (main)  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      17:35:12,273 ERROR [stderr] (main)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      17:35:12,274 ERROR [stderr] (main)  at java.lang.reflect.Method.invoke(Unknown Source)
      17:35:12,274 ERROR [stderr] (main)  at org.jboss.modules.Module.run(Module.java:292)
      17:35:12,274 ERROR [stderr] (main)  at org.jboss.modules.Main.main(Main.java:455)

      Additionally when I try to change the Host name from "localhost" to "myHost" the Server don´t start