How to access admin console using underscore in hostname in EAP ?
Issue
- While using underscore in hostname to connect to admin conosle with URL
http://my_server:8080/console,there is exception as follows :
08:46:30,114 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].[WelcomeContextConsoleServlet]] (http-/10.115.102.65:8080-2) Servlet.service() for servlet WelcomeContextConsoleServlet threw exception: java.io.IOException: java.net.URISyntaxException: Illegal character in hostname at index 12: http://ed104_node1:9990/console
at org.jboss.as.web.WelcomeContextConsoleServlet.assembleURI(WelcomeContextConsoleServlet.java:121) [jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.jboss.as.web.WelcomeContextConsoleServlet.service(WelcomeContextConsoleServlet.java:102) [jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
---
---
Caused by: java.net.URISyntaxException: Illegal character in hostname at index 12: http://ed104_node1:9990/console
at java.net.URI$Parser.fail(URI.java:2829) [rt.jar:1.7.0_09-icedtea]
at java.net.URI$Parser.parseHostname(URI.java:3368) [rt.jar:1.7.0_09-icedtea]
----
----
- When accessing the
Administration Consolewith URLhttp://my_server:8080, exception occur for URLhttp://my_server:8080/console. However, it works fine through IP or direct URLhttp://my_server:9990.
Environment
- Red Hat JBoss Enterprise Application Server (EAP)
- All Versions
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.