Bug 724509 (BRMS-455) - Installing BRMS out-of-the-box on EWS fails - users cannot login - javax.security.auth.login.LoginException: No LoginModules configured for jmx-console
Summary: Installing BRMS out-of-the-box on EWS fails - users cannot login - javax.sec...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: BRMS-455
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: Documentation
Version: unspecified
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: ---
: future
Assignee: Len DiMaggio
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-23 20:38 UTC by Len DiMaggio
Modified: 2011-05-10 17:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-10 17:04:19 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 724398 0 high CLOSED QE Review - BRMS Users Guide 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker BRMS-455 0 Blocker Closed Installing BRMS out-of-the-box on EWS fails - users cannot login - javax.security.auth.login.LoginException: No LoginMo... 2012-10-05 02:56:04 UTC

Internal Links: 724398

Description Len DiMaggio 2010-11-23 20:38:59 UTC
securitylevel_name: Public

I was unable to (simply) reference the    

   <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

It looks looks like we will have to document creating a new JAAS realm for deploying BRMS on EWS. 

See the server.log fragment below - is "jmx-console" hard-coded for BRMS?


INFO  23-11 15:01:43,227 (SecurityServiceImpl.java:login:78)     Logging in user [admin]
ERROR 23-11 15:01:43,230 (SecurityServiceImpl.java:login:98)     Unable to login.
javax.security.auth.login.LoginException: No LoginModules configured for jmx-console
        at javax.security.auth.login.LoginContext.init(LoginContext.java:273)
        at javax.security.auth.login.LoginContext.<init>(LoginContext.java:382)
        at javax.security.auth.login.LoginContext.<init>(LoginContext.java:459)
        at org.jboss.seam.security.Identity.getLoginContext(Identity.java:406)
        at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
        at org.drools.guvnor.server.security.SecurityServiceImpl.login(SecurityServiceImpl.java:96)
        at org.drools.guvnor.server.SecurityServiceServlet.login(SecurityServiceServlet.java:73)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
        at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
        at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
        at java.lang.Thread.run(Thread.java:636)

Comment 1 Len DiMaggio 2010-11-23 20:39:23 UTC
Link: Added: This issue is related to BRMS-344


Comment 2 Tihomir Surdilovic 2010-11-24 14:41:54 UTC
There is no JAAS LoginModule defined at all in EWS. You have to follow the tomcat docs on how to define one manually. Otherwise to get this working in 
/webapp/jboss-brms/WEB-INF/components.xml change the authentication to either:

<!-- bypasses security login screen completely -->
<security:identity
                authenticate-method="#{nilAuthenticator.authenticate}"/>

OR

<!--
		default (will take any username, useful if you want to keep track of
		users but not authenticate
	
	<security:identity authenticate-method="#{defaultAuthenticator.authenticate}" />

Comment 3 Tihomir Surdilovic 2010-11-24 14:45:24 UTC
Don't forget to delete $ews_home/work/Catalina/localhost/jboss-brms/ directory after making changes to components.xml :)

Comment 4 Tihomir Surdilovic 2010-11-24 15:32:12 UTC
This Jira  is specific for $ews_home/tomcat6..for tomcat5 there are more changes needed btw.

Comment 5 Len DiMaggio 2011-01-05 19:20:22 UTC
Link: Added: This issue depends JBPAPP-5724


Comment 6 Len DiMaggio 2011-04-08 03:08:26 UTC
See:

https://access.redhat.com/kb/docs/DOC-43162



Comment 7 Len DiMaggio 2011-05-10 17:04:19 UTC
Resolved in KBase article:  https://access.redhat.com/kb/docs/DOC-43162


Note You need to log in before you can comment on or make changes to this bug.