jboss – shutdown.sh -S Exception in thread “main” java.lang.SecurityException: Failed to authenticate principal=null…

the issue: running shutdown.sh -S causes the following error:

Exception in thread “main” java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)

try: check your jmx-invoker-service.xml file in deploy folder – it may have the AuthenticationInterceptor uncommented indavertently:

<!-- Uncomment to require authenticated users -->
<interceptor code="org.jboss.jmx.connector.invoker.AuthenticationInterceptor" securityDomain="java:/jaas/jmx-console"/>

if you wanted the authentication, edit your login-config.xml and define your own login class that will check if the user has valid roles and credentials for performing the startup.

Previous
Previous

Error: ‘CREATE VIEW’ must be the first statement in a query batch

Next
Next

generate xsd from xml