Enabling Role Base Authorization in Guvnor.
by Manohar Kokkula
Hi all,
I am trying to enable the Role Base Authorization in Guvnor after it was
running
fine with the default login mechanism.
But, encountered some problem with the attempt.
I followed given steps:
Step 1:
I exploded guvnor-5.2.0.Final-jboss-as-5.1.war file, got
guvnor-5.2.0.Final-jboss-as-5.1 folder,
in this I located component.xml(guvnor-5.2.0.Final-jboss-as-5.1/WEB-INF/)
What I did was that in the components.xml,
- commented out the default <security:identity
authenticate-method="#{defaultAuthenticator.authenticate}"/>
- uncomment the <security:identity
authenticate-method="#{authenticator.authenticate}"
jaas-config-name="other"/>
- change the role base authorization to true,
<security:role-based-permission-resolver
enable-role-based-authorization="true"/>
Step 2:
And at the login-config.xml from jboss-5.0.0.GA/server/default/conf/
I have changed the "other" application policy to
<application-policy name = "other">
<authentication>
<login-module code =
"org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required" >
<module-option
name="usersProperties">props/guvnor-users.properties</module-option>
<module-option
name="rolesProperties">props/guvnor-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
guvnor-users.properties
admin=admin123
guvnor-roles.properties
admin=admin
Step 3:
At last I created new guvnor-5.2.0.Final-jboss-as-5.1.war file from
guvnor-5.2.0.Final-jboss-as-5.1 folder and deployed the updated war file
into boss-5.0.0.GA/server/default/deploy
At last I am unable to login into BRMS,
I got following error message in Browser,
HTTP Status 404 - /guvnor-5.2.0.Final-jboss-as-5.1/
type Status report
message /guvnor-5.2.0.Final-jboss-as-5.1/
description The requested resource (/guvnor-5.2.0.Final-jboss-as-5.1/) is
not available.
JBoss Web/2.1.1.GA
Please guide me any one.
Thanks and regards
Manohar Kokkula
Mailto: manohar.kokkula(a)tcs.com
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
14 years, 5 months
programming classes to represent domain in Drools like templates
by santiago carbonell
Hi,
I'm new in drools and I'm doing some test with this fantastic engine. With
Drools, I've loaded a drl file with some rules and ran with drools engine
and works perfect, but I got to preset/programming some classes in Java
about the domain where rules worked.
I'd like to load this domain, this "classes" as a file, like drl files, but
insted of rules, I'd like to load classes, or domain, so I'd needn't to
preset/programming this classes in Java.
My question is how can I load this classes in some file, like drl files with
rules? Is like templates in clips.
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/programming-classes-to-represent-domain...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
Showstopper issues for Drools Adoption in our organization
by kapokfly
Not sure if these are also your questions you might have with the rule engine
adoption, but we have seen 2 showstopper issues for drools adoption in our
organization, or it is just because we are lack of some necessary knowledge.
Issue 1) : pattern match for large data
There are cases in a rule we need find matched records against a large
population of data and perform some actions.
Example:
From 2 millions employee directory, find those belongs to Depart1 and
with salary increased by 10% last year.
Inserting all these employee's data into WorkingMemory is HUGE and
mission impossible, we can't simply load the entire db into the working
memory, do we have any other approach to accomplish or this is just not a
use case can be resolved by a rule engine?
Issue 2): Map business object to real engineering implementation
What we are trying to do is to build a rule UI which a business user without
engineering background of our codebase can work with; the business object we
show on the UI might be different with the real engineering objects already
in system, for example, on the UI a user might be able to able to see
something like person.address.addressLine1 but the actually implementation
might not be an object traverse implementation.
Example, the model could be Long Person.addressId ; then referring to his
address we need another lookup and we want to hide such complexity to the
end user.
The approach we took is to design a translation layer to translate the user
input to drools rule string, is this the right approach?
If not, any suggestions? I know Drools is mainly designed for developers but
just trying to see if there is any way we can work it around.
Thanks and looking forward to your recommendations.
Ivan
-----
Ivan, your Panda, forever
--
View this message in context: http://drools.46999.n3.nabble.com/Showstopper-issues-for-Drools-Adoption-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
drools + AWS
by Bobby Richards
anyone running a drools app or more specifically guvnor on amazon's web
service?
14 years, 5 months
Bug in org.drools.core.util.DateUtils after changing value of drools.dateformat?
by prasad.deshpande
Hi,
I need to change value of system property drools.dateformat dynamically. If
I change the property, I still get error while executing rule
15:49:21,828 ERROR [STDERR] Unable to create a Field value of type
'ValueType = 'Date'' and value '"01-11-2011"' : [Rule name='EFP_14']
java.lang.IllegalArgumentException: Invalid date input format: [01-11-2011]
it should follow: [dd-MMM-yyyy]
15:49:21,831 ERROR [WorkplaceController]
904C7394BB64620F6B0738EA27C6B08B[runNestedRuleFromLayout] Error evaluating
ruleset "asfsd" of type "DRL" with resource 16306 (type 104).
Could not parse knowledge.
I tried to look into the source-code & found that class
org.drools.core.util.DateUtils does not make use of changed value of
property "drools.dateformat". Also, looking at code it is clear that once
the class is loaded by classloader, any change in system property will not
be reflected.
Anyone any comments before I raise a bug?
--
View this message in context: http://drools.46999.n3.nabble.com/Bug-in-org-drools-core-util-DateUtils-a...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
jbpm 3.2.x verssion .....
by Sumeet Karawal
Hi,
Can any body let me know whether jbpm v 3.2.8 is compatible with sun
solaris. If not then which of the versions among v3.2.x is compatible with
it. As I have to install it in both Windows and Sun Solaris.
Thanks in advance,
Sumeet Karawal
Mailto: sumeet.karawal(a)tcs.com
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
14 years, 5 months
Collecting properties in a rule
by LCode
I am trying to write a rule via the guided rule editor and I am really
struggling.
The following is a simplified explanation of my scenario:
I have a model where there are lots of 'Town' objects, each town has any
number of 'Supermarket' objects and each supermarket has a list of integers
'locationID'.
Something like this....
<Town>
<Supermarket name = 'asda'>
<LocationID>15</LocationID>
<LocationID>18</LocationID>
</Supermarket>
<Supermarket name = 'tesco'>
<LocationID>13</LocationID>
</Supermarket>
<Supermarket name = 'lidl'>
<LocationID>13</LocationID>
<LocationID>15</LocationID>
<LocationID>18</LocationID>
</Supermarket>
</Town>
(apologies to the Sainsburys shoppers!!)
I need to write a rule that fires when there are precisely 3 unique location
ID's in the whole town.
So in the example above the complete list of locationIDs would be 13, 13,
15, 15, 18, 18
With the following unique numbers 13, 15, 18
therefore the rule would fire as there are 3 unique numbers.
I hope that makes some sense.
I understand that I should collect the locationIDs into a java.util.Set in
order to count unique entries and I can collect together all supermarkets
into an arraylist. However I cannot for the life of me seem to collect
LocationID across all supermarkets.
Thank you so much in anticipation, I realise this was rather long-winded!
--
View this message in context: http://drools.46999.n3.nabble.com/Collecting-properties-in-a-rule-tp35035...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
Using Drools with JSP application.
by sachintaware
Hello Everyone,
I am learning Drools engine and have come across an
issue.I am not able to configure the Rules,for using it in a web
application.I want a UI from which the user selects some values and based on
it the rules are executed by drools.I studied the examples and got them
working but they seem to be worked with standalone features.I would like to
seek some help over it.
Use Case:
A html-jsp form having a select box for states of a country.
When user selects a state,candidates from that state should be displayed by
the rule engine.
I have got the database connection working,but not able to configure rules
over jsp.I am using a Apache tomcat 5.0 server.
Thanks
Sachin
--
View this message in context: http://drools.46999.n3.nabble.com/Using-Drools-with-JSP-application-tp349...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months
How to use RepositorySessionUtil.getRepository()?
by Praveen
Hi All,
I am using below piece of code from a standalone system to access the Rules
repository.
RulesRepository repository = RepositorySessionUtil.getRepository();
But we are getting RulesRepository Exception as below:
org.drools.repository.RulesRepositoryException
at
org.drools.repository.RepositorySessionUtil.getRepository(RepositorySessionUtil.java:69)
at TestSample.main(TestSample.java:45)
Do we need to initialise something before using the above piece of code?
Please suggest, TIA.
Regards,
Praveen.
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-use-RepositorySessionUtil-getRep...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 5 months