JBoss fails to start with ENABLE_MODELER set to true

Solution Verified - Updated

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0.0

Issue

  • We're trying to run the mod_cluster load demo app on EAP 6. This requires org.apache.tomcat.util.ENABLE_MODELER to be set to true.
  • With org.apache.tomcat.util.ENABLE_MODELER set to true, EAP 6 fails to start properly with the following errors:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.web.connector.ajp: org.jboss.msc.service.StartException in service jboss.web.connector.ajp: 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.6.0_18]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_18]
	at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]
Caused by: LifecycleException:  service.getName(): "jboss.web";  Protocol handler start failed: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
	at org.apache.catalina.connector.Connector.start(Connector.java:1065)
	at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:268)
	... 5 more
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.web.connector.http: org.jboss.msc.service.StartException in service jboss.web.connector.http: 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.6.0_18]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_18]
	at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]
Caused by: LifecycleException:  service.getName(): "jboss.web";  Protocol handler start failed: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
	at org.apache.catalina.connector.Connector.start(Connector.java:1065)
	at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:268)
	... 5 more

Resolution


Note: Same issue will happen when APR connector or NIO connector is used along with the system property in EAP 6.1.0 onwards. See this article for details.

Root Cause

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.