add guvnor-webapp-core as a dependency to project
by kooper
Hi,I'm trying to add guvnor-webapp-core as a dependency to my project, but
after when deploying app to JBOSS 7(tried 7.1.1 and 7.0.2), I have following
exception:
11:19:50,138 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8)
MSC00001: Failed to start service
jboss.deployment.unit."my_app-1.0-SNAPSHOT.war".WeldService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."my_app-1.0-SNAPSHOT.war".WeldService:
org.jboss.weld.exceptions.DeploymentException: Exception List with 3
exceptions:Exception 0 :org.jboss.weld.exceptions.DeploymentException:
WELD-001408 Unsatisfied dependencies for type [RepositoryStartupService]
with qualifiers [@Default] at injection point [[field] @Inject private
org.drools.guvnor.server.repository.RulesRepositoryManager.repositoryStartupService]
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107) at
org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127) at
org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346) at
org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331) at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83) at
org.jboss.as.weld.services.WeldService.start(WeldService.java:76) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)Exception 0
:org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [RepositoryStartupService] with qualifiers [@Default]
at injection point [[field] @Inject private
org.drools.guvnor.server.repository.MailboxService.repositoryStartupService]
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107) at
org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127) at
org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346) at
org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331) at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83) at
org.jboss.as.weld.services.WeldService.start(WeldService.java:76) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)Exception 0
:org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [ConversionService] with qualifiers [@Default] at
injection point [[field] @Inject private
org.drools.guvnor.server.RepositoryAssetService.conversionService] at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107) at
org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127) at
org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346) at
org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331) at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83) at
org.jboss.as.weld.services.WeldService.start(WeldService.java:76) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636) at
org.jboss.as.weld.services.WeldService.start(WeldService.java:83) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA] at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.6.0_18] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.6.0_18] at java.lang.Thread.run(Thread.java:636)
[rt.jar:1.6.0_18]Caused by: org.jboss.weld.exceptions.DeploymentException:
Exception List with 3 exceptions:....
Do I need to add anything to project configuration to be able to add guvnor
as dependency?Thanks.
--
View this message in context: http://drools.46999.n3.nabble.com/add-guvnor-webapp-core-as-a-dependency-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Fill dependent dropdown lists based on a web decision table
by peach_wyss
Hi
I'm using Drools and Guvnor in our project. We have the following Data Model
(simplified):
- Object C
-> has a List
-> has a List
I need to build an easy to edit web decision table in guvnor. We need the
table to fill a dropdown list (Object B) in dependency of another dropdown
list (Object A), when for example creating a new Object C on a form. The
table should look something like this:
[Object A] [Object B]
Test A1 Test B1
Test B2
Test B3
Test A2 Test B4
Test A3 Test B5
Test B6
Test A4 Test B7
Test B8
Test B9
Test B10
...so when a User creates a new Object C (Create-Form) and select on for
example "Test A3" in a dropdown list (Object A), Drools should be firing and
result "Test B5" and "Test B6", which then can be filled in the second
dropdown list (Object B).
How can I achieve such a scenario? We have already Drools Guvnor in use and
the requirement is, to have such a table to easy edit the dependencies of
this two dropdown lists.
Some thoughts:
- Is there a way to fill Objects in a List as a Action-Column in a web
decision table?
- Is there a way to add Objects to a List (global variable) in a web
decision table?
- Is there a way to achieve this with rule templates?
- Are there other ways to achieve this?
Thanks for your help.
Kind regards,
Peter
--
View this message in context: http://drools.46999.n3.nabble.com/Fill-dependent-dropdown-lists-based-on-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Tree iteration with accumulate: is it possible ?
by mcyrb
Hello.
I have a tree, with each leaf containing a random value.
The value of each node is the sum of its children value.
I would like to write a rule which looks like this:
when
nodeValue == 18 (e.g.)
then
// do something with this node
end
The accumulate conditional element looked adequate for this, so I wrote
something like this
when
n: Node()
accumulate( Leaf( parentNode == n, v : value ); nodeValue : sum( v );
nodeValue == 18 )
then
// do something with n
end
So... the problem is that this works only for nodes where its direct childs
are leafs, and not for upper nodes.
Have you got an idea to solve this ?
Thank you
--
View this message in context: http://drools.46999.n3.nabble.com/Tree-iteration-with-accumulate-is-it-po...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Drools / Guvnor 6
by Stephen Masters
Hi folks,
Just wondering whether there's a download available yet for Guvnor v6, or whether I need to build from source.
As mentioned previously I'm tinkering with it on WebSphere, and so far (using WAS 8.5 Liberty Profile) I am experiencing zero issues. It just works! I'm using the Tomcat distribution of Guvnor 5.3. So I'm downloading 5.5 as we speak, and I might as well try out 6 while I'm at it. :)
Steve
12 years, 10 months
How to integrate Declarative Fact created using Guvnor in Java
by IPatel
Hi,
Basic questions on the facts that are created in Guvnor using New
Declaritive Model
I have the facts that are created in Guvnor which i dont have java classes
defined. I am refering to the tutorial provided on Chapter 5 The Fact Model
and in that it shows how to use the declarative facts from Java.
I am having hard time following the steps. So i am going to layout below to
see if my understanding is correct:
Step 1: // get a reference to a knowledge base with a declared type:
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
Step 2:// get the declared FactType
FactType personType = kbase.getFactType( "PackageName", "FactName" );
Step 3:// handle the type as necessary:
Not sure what this means
Step 4:// create instances:
Object bob = personType.newInstance();
Step5: // set attributes values
personType.set( bob,
"name",
"Bob" );
Step 6: // insert fact into a session
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
Step 7:ksession.insert( bob );
Step 8:ksession.fireAllRules();
I am able to understand Step 4 thru Step 8. I guess i am having trouble
understanding step 1 and Step 3.
Can someone please help me clarify or have example for me to refer.
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-integrate-Declarative-Fact-creat...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
planner: when gets a solution cloned?
by Michiel Vermandel
Hi,
I think a planning solution gets cloned in two different scenarios:
1) a better solution is found
2) the solver propagates from one solving phase to another.
Is this right?
If so, how do I know (inside the cloneSolution() method) if the clone is intended for a best-solution or a new working-solution?
Thanks
Michiel
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
12 years, 10 months
Guvnor Configuration file
by IPatel
Hi all,
Somehow starting yesterday Guvnor won't start. I can see no exceptions in my
log file except that the last link it executes and gets stuck at is
following:
..."Brontes" started in 2853ms - Started 133 of 208 services <74 services
are passive or on-demand>
now i have a POC demo next week and i was wondering if guvnor has a way to
store somewhere the rules/packages i created and i can restore them. I
will install the tool again and import the rules/packages. This way I dont
have to re-create them again.
All your help will be greatly appreciated.
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Configuration-file-tp4022617.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Guvnor JBoss 7 Authentication
by rjr201
Hi,
I'm having some problems getting user authentication working with Guvnor on
JBoss AS 7.
I have this in beans.xml:
<security:IdentityImpl>
<s:modifies/>
<security:authenticatorName>jaasAuthenticator</security:authenticatorName>
</security:IdentityImpl>
<security:jaas.JaasAuthenticator>
<s:modifies/>
<s:jaasConfigName>other</s:jaasConfigName>
</security:jaas.JaasAuthenticator>
<guvnorSecurity:RoleBasedPermissionResolver>
<s:modifies/>
<guvnorSecurity:enableRoleBasedAuthorization>true</guvnorSecurity:enableRoleBasedAuthorization>
</guvnorSecurity:RoleBasedPermissionResolver>
And I've created the following files on Guvnors class path:
roles.properties:
admin=admin
users.properties
admin=admin
This initially gave me a '401 This user has no permissions setup.' error. So
I followed this post:
http://drools.46999.n3.nabble.com/How-configure-Guvnor-5-4-JAAS-with-jbos...
And changed the /SecurityServiceImpl.java file as suggested (not sure if
this was the right thing to do or not, but it got rid of the error). However
now it gives me "incorrect username/password" regardless of what I enter.
Has anyone had any success with this, or can see where I'm going wrong? I
feel like I'm really close but can't work out this last step.
As always, thanks for any help anyone can give.
Rich.
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-JBoss-7-Authentication-tp4022620...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months