Deploying Drools Guvnor – unable to find LoginModule

I was doing another new deployment of Drools Guvnor on Apache Tomcat 6.0.20 today on a co-worker’s machine.  Once again, I received the Security Exception for unable to locate a login configuration.  I was able to quickly fix that error.  But then I received this error:

INFO  20-06 11:35:50,343 (      Logging in user \[drools1\]
ERROR 20-06 11:35:50,345 (      Unable to login. unable to find LoginModule class:
    at Method)
    at org.drools.guvnor.server.SecurityServiceServlet.login(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(

After a little bit of trial and error, I finally remembered to check the JAVA_HOME environment variable.  It was set to a Java 5 JRE.  I switched the JAVA_HOME to be a Java 6 JRE and restarted Tomcat.  The error was fixed then.


About stevewall123

I am a Lead Software Engineer in Minneapolis working for Thomson Reuters. I am currently working on projects using Java, JavaScript, Spring, Drools, Hazelcast, Liquibase and Tomcat. Previously, I used C#, GWT, Grails, Groovy, JMS and JBoss Drools Guvnor. In the past I have worked on projects using J2EE, Swing, Webwork, Hibernate, Spring, Spring-WS, JMS, JUnit and Ant.
This entry was posted in Drools Guvnor and tagged , . Bookmark the permalink.

Leave a Reply

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

You are commenting using your 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