[rules-dev] Using JAAS with BRMS on Weblogic

Harris Trevor Trevor.Harris at uk.fujitsu.com
Fri Nov 2 04:52:24 EDT 2007


No I was not able to get it to work. BRMS uses seam which I have not
used before. As you can see it just does not seem to register the
configuration.

Sorry I cannot be of more help 

Regards Trevor


-----Original Message-----
From: rules-dev-bounces at lists.jboss.org
[mailto:rules-dev-bounces at lists.jboss.org] On Behalf Of Paul Browne
Sent: 01 November 2007 20:56
To: Rules Dev List
Subject: Re: [rules-dev] Using JAAS with BRMS on Weblogic

Trevor,

Did you get anywhere with this? Does it work when you don't have the 
JAAS policy in place? Are you able to secure other non-BRMS webapps?

Not really Drools related, but I'm curious.

Regards

Paul

Harris Trevor wrote:
>
> I have been doing some research and I have found that I set this up 
> wrong but it still does not work?
>
> I have now done the following:
>
> Edited components.xml and added
>
> <security:identity authenticate-method="#{authenticator.authenticate}"

> jaas-config-name="brms"/>
>
> Added the following to the weblogic server jvm startup
>
> -Djava.security.auth.login.config=d:\jass.config
>
> Created a file jass.config containing
>
> brms {
>
> weblogic.security.auth.login.UsernamePasswordLoginModule required 
> debug=false;
>
> };
>
> The stack trace has the following error
>
> <29-Oct-2007 10:49:02 o'clock GMT> <Error> <ServletContext-/drools2> 
> <000000> <Exception while dispatching incoming RPC call
>
> java.lang.IllegalArgumentException: No Configuration was registered 
> that can handle the configuration named brms
>
> at 
>
com.bea.common.security.jdkutils.JAASConfiguration.getAppConfigurationEn
try(JAASConfiguration.java:103)
>
> at javax.security.auth.login.LoginContext.init(LoginContext.java:243)
>
> at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
>
> at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
>
> at org.jboss.seam.security.Identity.getLoginContext(Identity.java:313)
>
> Truncated. see log file for complete stacktrace
>
> >
>
> Clearly weblogic is trying to load the brms configuration but it does 
> not find it.
>
>
------------------------------------------------------------------------
>
> *From:* rules-dev-bounces at lists.jboss.org 
> [mailto:rules-dev-bounces at lists.jboss.org] *On Behalf Of *Harris
Trevor
> *Sent:* 26 October 2007 15:39
> *To:* rules-dev at lists.jboss.org
> *Subject:* [rules-dev] Using JAAS with BRMS on Weblogic
>
> We are using BRMS on Weblogic 9.2 and we want to use JAAS 
> authentication. We have configured components.xml to include the line:
>
> <security:identity authenticate-method="#{authenticator.authenticate}"

> jaas-config-name="myrealm"/>
>
> We get an error message "An error has occurred on the server. See 
> serverl log for details."
>
> The server log shows
>
> <26-Oct-2007 15:22:32 o'clock BST> <Error> <ServletContext-/drools2> 
> <000000> <E
>
> xception while dispatching incoming RPC call
>
> java.lang.IllegalArgumentException: No Configuration was registered 
> that can han
>
> dle the configuration named myrealm
>
> at
com.bea.common.security.jdkutils.JAASConfiguration.getAppConfiguratio
>
> nEntry(JAASConfiguration.java:103)
>
> at javax.security.auth.login.LoginContext.init(LoginContext.java:243)
>
> at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
>
> at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
>
> at org.jboss.seam.security.Identity.getLoginContext(Identity.java:313)
>
> Truncated. see log file for complete stacktrace
>
> >
>
> "myrealm" is what weblogic call a security realm is the same as a jaas

> configuration name.
>
> Regards Trevor Harris.
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>   

_______________________________________________
rules-dev mailing list
rules-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev




More information about the rules-dev mailing list