2 Replies Latest reply on Jun 5, 2015 2:11 AM by karthigeyan vellasamy

    Disable Http access only Https without using security-constraint in web.xml (Migrate from jboss 6 to wildfly8.2)

    karthigeyan vellasamy Newbie

      Migrate Jboss6 to WildFly8.2

      Working on https keystone connection in wildlfy8.2. After configuring my application on standalone-full.xml conf using http://blog.eisele.net/2015/01/ssl-with-wildfly-8-and-undertow.html. I was able to access both http and https on my application. I have to access https alone blocking http. After adding security-constraint inside web.xml i was able to redirect to https. But i don't want to include anything in web.xml in my new version it affects my old jboss users.

      In a situation there are people who use jboss6 application without SSL keystore configuration and people using same applications in Https . Older version of jboss allows both http and https to be configured in server.xml itself. In wildfly we have to edit application war file instead of server config files.

      Note : I got this link having same issue got resolved in  https://developer.jboss.org/thread/253008?_sscc=t. made the changes as instructed. But it doesn't work, we are using standalone-full.xml instead of standalone.xml.


      I dont know where my http port set reffered from or it looks into default standalone.xml insted of standalone-full.xml

      After making changes i am getting

       

      jboss.deployment.subunit."XXX.ear"."XXXEJB3.jar".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "XXXEJB3.jar" of deployment "XXX.ear"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_31]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_31]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_31]
      Caused by: java.lang.IllegalStateException: JBAS017350: Could not find the port number listening for protocol HTTP/1.1
      at org.wildfly.extension.undertow.WebServerService.getPort(WebServerService.java:67)

      at org.jboss.as.webservices.config.WebServerInfoImpl.getPort(WebServerInfoImpl.java:36)