I am trying to use JBOSS as application server for my application. Error message while deploying the EAR
23:28:27,461 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."smcfs.ear"."sma.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."smcfs.ear"."sma.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of subdeployment "sma.war" of deployment "smcfs.ear"
Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed for security-domain
at org.jboss.msc.service.ServiceName.of(ServiceName.java:90)
at org.jboss.msc.service.ServiceName.append(ServiceName.java:117)
Solution Tried - Based on Google search
Update jboss-web.xml file - Both of the below options done work
<jboss-web>
<security-domain flushOnSessionInvalidation="false" />
<context-root>/</context-root>
</jboss-web>
AND
<jboss-web>
<security-domain flushOnSessionInvalidation="false">other</security-domain>
<context-root>/</context-root>
</jboss-web>
What else can I try?