Getting rid of “Exception in thread “main” java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console”

When I tried to stop the server I always got this annoying exception, and could only stop it by kill.

A quick google search found this post: http://community.jboss.org/message/246272#246272
The solution there is to comment out the interceptor named “org.jboss.jmx.connector.invoker.AuthenticationInterceptor” in the file [server]/deploy/jmx-invoker-service.xml

It worked, Oh joy 🙂

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Getting rid of “Exception in thread “main” java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console”

  1. Ankam says:

    Hi,

    1)Go to Shutdown.jar in your bin folder,open it there you will find jndi.properties
    Add the jnp://hostname:portno
    2) check your /conf/props/jmx-console-users.properties file for username and password
    3) while you shutdown type the command as sh shutdown.sh -S -s hostname:portnum -u -p

    I have tried this many times and it’ll works

  2. Ankam says:

    -u username -p password

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s