Integrate Guvnor with Weblogic server user authentication
by jasonxzhong
Has anyone been able to configure Guvnor so it can use Weblogic user
authentication? Our goal is to allow users created and managed in Weblogic
security realm being able to log in to Guvnor after being autheticated by
Weblogic.
There is an article that describes how to enable authentication using JAAS
for weblogic but when we tried to follow the instructions it did not work.
Basically jaas.config file is not being picked up.
I'd appreciate it if someone who has done similar work can post the
components.xml and some instructions.
Thanks in advance,
Jason
-----
Jason
--
View this message in context: http://drools.46999.n3.nabble.com/Integrate-Guvnor-with-Weblogic-server-u...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
Rules Deployment
by RulesUsers
Hi all,
We are using rules in our java based project that connects to jboss for jms.
To implement rules, we include drools specific jar files in the code itself.
When this code is executed, rules also get executed and our purpose is
served.
Rules file is written manually and is called from within the java code.
Going forward, we want to deploy java application together with rules on
jboss.
I want to know the standard way of doing it ?
Please provide pointers on this.
Regards
Samya Maiti
--
View this message in context: http://drools.46999.n3.nabble.com/Rules-Deployment-tp4019302.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
NPE loading Drools 5.4.0.Beta1 using drools-spring
by lhorton
I am trying to load up 5.4.0.Beta1. I'm using Spring configuration xml that
works fine in 5.2.0.Final. In the xml, my grid-node is defined as:
<drools:grid-node id="droolsClusterNode1"/>
The exception is a NPE on a method in WhitePagesClient. Any idea what the
cause might be? Has anyone successfully loaded 5.4.0 using Spring?
The full exception is:
ERROR 2012-01-06 15:51:05,998
[org.springframework.web.context.ContextLoader] - Context initialization
failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'droolsClusterNode1': Invocation of init method failed; nested
exception is java.lang.NullPointerException
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1399)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
at
org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:252)
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.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
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:291)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at
org.drools.grid.service.directory.impl.WhitePagesClient.getGsd(WhitePagesClient.java:32)
at
org.drools.grid.service.directory.impl.WhitePagesClient.create(WhitePagesClient.java:80)
at org.drools.grid.impl.GridImpl.createGridNode(GridImpl.java:107)
at
org.drools.container.spring.beans.GridNodeBeanFactory.afterPropertiesSet(GridNodeBeanFactory.java:63)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 47 more
--
View this message in context: http://drools.46999.n3.nabble.com/NPE-loading-Drools-5-4-0-Beta1-using-dr...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
Re: [rules-users] modifying the problem facts while running the solver - Drools Planner
by ge0ffrey
spinjala wrote
>
> Once the solver finds that a workorder (WO1) couldn't be assigned to any
> resource in the list of resources (due to the constraints), it simply
> picks up the 1st resource in the list with highest hard score and assigns
> it (even though this assignment breaks all constraints). My question is,
> why is it generating a solution by assigning the wrong resource to the
> workorder instead of say, throwing a message saying this workorder cannot
> be assigned to a resource or something like that. In my opinion, a solver
> should generate a solution only when it is possible to generate but not
> just assign something that has highest score. I may be wrong but would
> really appreciate if you can help here, i am unable to proceed further in
> evaluating this product for my project.
>
Planner perceives an planning variable with the planning value as being
"uninitialized", not as "unassigned". This is due to
https://issues.jboss.org/browse/JBRULES-3317
Add a planning value resource that represents "unassigned". Then add a hard
constraint rule that gets trigged if something is assigned to that planning
value. Give a lower weight than 2 entities being assigned to the same value
and make the 2 entities being assigned to the same value not trigger if they
are assigned to that "unassigned" value.
--
View this message in context: http://drools.46999.n3.nabble.com/modifying-the-problem-facts-while-runni...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
Maps as Object in Drools
by Frank Wilson
Hi All,
I was reading the following thread from august 2009:
http://lists.jboss.org/pipermail/rules-users/2009-August/010178.html
I would like write a clojure DSL for drools similar to what André was
trying to do and I also feel that using maps as fact-objects would be the
most idiomatic for Clojure (at least in the general case!).
I am interested by the idea of implementing ObjectType and Accessor
interfaces proposed by Edson. It seems that this would be a good fit with
Drools and that (if understand correctly!) it would allow the map
properties to be properly indexed by the rules engine. However I cannot
seem to find these interfaces (ObjectType and *Accessor) in the current API.
http://docs.jboss.org/drools/release/5.4.0.CR1/knowledge-api-javadoc/inde...
Could someone show me where these classes are documented? Or were they
moved or replaced? Maybe there is some source code that would make a good
example?
Thanks for your help,
Frank
12 years, 4 months
How to execute knowledeg base remotely?
by jasonxzhong
In Guvnor 5.4.0 manual it states
/Service Config is a special asset that defines an execution service
configuration. This execution service is a war file (generated automatically
by the editor) which you can deploy to execute KnowledgeBases remotely for
any sort of client application./
This is very interesting from the point of integration as we have both JVM
and .NET based solutions. However even though the manual explains in details
how to create a service config asset and deploy it, I cannot find any
reference as how the service interface is exposed (REST, SOAP?) and any
description of the definition of the remote APIs that can be invoked by a
client application.
Maybe I missed something...
Jason
-----
Jason
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-execute-knowledeg-base-remotely-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months
Re: [rules-users] modifying the problem facts while running the solver - Drools Planner
by Garf
spinjala wrote
>
> THis is what is happening now with my sample solution that I am writing..
> Once the solver finds that a workorder (WO1) couldn't be assigned to any
> resource in the list of resources (due to the constraints)...
Well, it's a slightly different problem them. Planner's approach is to solve
problems in parallel, where it's not trivial to determine where a given item
can be matched.
Part of the motivation beyond using Planner is that whether one item fits
may be dependent on how the other items are arranged.
If workorders are coming in one at a time, why not apply the rules to that
item alone -- and that remove it from the planning scenario if it can't be
fit?
Jon
--
View this message in context: http://drools.46999.n3.nabble.com/modifying-the-problem-facts-while-runni...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 4 months