[rules-dev] Using JAAS with BRMS on Weblogic
Paul Browne
paulb at firstpartners.net
Thu Nov 1 16:55:35 EDT 2007
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.getAppConfigurationEntry(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
>
More information about the rules-dev
mailing list