errors of deploying Guvnor 5.2.0 to JBoss 7.0
by cross.cy
Hi, I'm trying to deploy Guvnor 5.2 in JBoss AS 7.0. JBoss is running in
standalone mode. However i came across with the following error which failed
the deployment:
09:19:33,330 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2)
MSC00001: Failed to start service
jboss.deployment.unit."guvnor.war".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."guvnor.war".POST_MODULE: Failed to process phase
POST_MODULE of deployment "guvnor.war"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_24]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_24]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
Caused by: java.lang.LinkageError: Failed to link
org/apache/cxf/jaxrs/servlet/CXFNonSpringJaxrsServlet (Module
"deployment.guvnor.war:main" from Service Module Loader)
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
at org.jboss.modules.Module.loadModuleClass(Module.java:588)
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
at
org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:310)
at
org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scanWebDeployment(JaxrsScanningProcessor.java:164)
at
org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:113)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/cxf/transport/servlet/CXFNonSpringServlet
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_24]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) [:1.6.0_24]
at java.lang.ClassLoader.defineClass(ClassLoader.java:616) [:1.6.0_24]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[:1.6.0_24]
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
... 16 more
Caused by: java.lang.ClassNotFoundException:
org.apache.cxf.transport.servlet.CXFNonSpringServlet from [Module
"deployment.guvnor.war:main" from Service Module Loader]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
... 21 more
I then downloaded cxf-rt-transports-http.jar and tried to put it in both
standalone/lib/ext folder and the modules folder but I still got the same
error. Could anyone please help? Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/errors-of-deploying-Guvnor-5-2-0-to-JBo...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
ERROR: stream classdesc serialVersionUID = 5166066541265170937, local class serialVersionUID = 8808844570772337501
by gbelin
Hi there,
I am trying load the example package mortgages with
/
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent(
"MortgageAgent" );
kagent.applyChangeSet( ResourceFactory.newUrlResource(
"http://localhost:8080/guvnor-webapp/org.drools.guvnor.Guvnor/package/mort..."
) );
KnowledgeBase kbase = kagent.getKnowledgeBase();/
the execution of the "applyChangeSet" produces the error:
/java.lang.RuntimeException: KnowledgeAgent exception while trying to
deserialize KnowledgeDefinitionsPackage
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:732)
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:965)
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:774)
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:646)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:190)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:172)
at com.sample.DroolsTest.main(DroolsTest.java:42)
Caused by: java.io.InvalidClassException:
org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream
classdesc serialVersionUID = 5166066541265170937, local class
serialVersionUID = 8808844570772337501
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
/
I suppose it is a problem with different versions of any library, but I do
not know which one, I think I have the latest version of all libraries ...
My development environment:
Server:
Apache Tomcat 6.0.26
Guvnor server Version 5.2.0.Final
Client:
Eclipse 3.5 Galileo
Java jre6
mvel2.jar version 2.0.19
drools-api.jar Bundle-Version: 5.2.0.SNAPSHOT
drools-core.jar Bundle-Version: 5.2.0.SNAPSHOT
Thanks in advance.
--
View this message in context: http://drools.46999.n3.nabble.com/ERROR-stream-classdesc-serialVersionUID...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Verifying drools running version
by Hezi Stern
Is there any way to verify which drools version is actually running? E.g.
print inside a rule which rule engine version is running?
Regards,
Hezi
14 years, 8 months
Drools Planner Solver Type
by DroolersEye
Geoffrey,
Please help me to understand clearly,
1. What are the solver type drools planner currently support or use?
2. From the examples I learned Local search(SA, tabu..), is this type
applicable to all kind of problems?
3. How to select or build a solver? (eg.scenario.....100 doctors 1000
patients, administrator needs to schedule an appoinment with doctors based
on the patient type and doctor specialization)
Thanks,
-----
with kind regards,
Prabakar
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Planner-Solver-Type-tp3172464p31...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
drools-JBPM integration
by DroolersEye
Hi,
Please let me understand (not understand completely using the
documentation), regarding drools integration I have two questions....
1. Why do we need to use Spring, can I ignore spring in this integration
process, if so what is the alternative for that?
2. Is the there any simple way for this integration process, It seems bit
difficult for me to see lots of technologies involved in this process
(drools, JBPM, REST, CFX, spring and Camal than some ESB..)
thanks,
-----
Drooler
--
View this message in context: http://drools.46999.n3.nabble.com/drools-JBPM-integration-tp3167306p31673...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Is my project a suitable candidate for Drools?
by bolsover
Although a reasonably experienced Java programmer, I'm completely new to
Drools and am just in the process of exploring some options for my current
project. Advice from practioners here would be very welcome.
An existing web based b2b application allows clients to select products from
the available range by selecting items from a product tree where nodes are
used to group similar items.
The new requirement is for and expert engine that guides the client through
a series of qestions and can accept a range of parameters that describe the
product (in terms such as RPM, pressure, flow rate, size, colour, etc.). The
engine should then select an appropriate solution from a range of existing
product or, propose a new custom product (that might actaully get designed
in the fly) based on the client requirements. If no suitable solution is
found, the collected data should be referred to human engineers for
consideration.
I had originally considered a simple Question/Answer mechanism where the
Answer to a Question simply points the user to the next Question or the
Solution. But this seems to lack sophistication and has difficulty when
applied to questions that give rise to multi-dimensional (spatial) and
multi-type (double, boolean, string etc.) answers.
Can practitioners advise, is Drools a suitable solution? Or is it overkill
for what is actually a reasonably simple problem?
db
--
View this message in context: http://drools.46999.n3.nabble.com/Is-my-project-a-suitable-candidate-for-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Filtering eligible records for authorization - Is a rules engine right solution ?
by gmkumar2005
I have an authorization screen for say payments
A list of transactions is displayed. This is a filtered list. Each
transaction listed in this screen needs to satisfy following conditions
A) Meets Authorization Verification Matrix (AVM) conditions
B) .. few more conditions not imp at this time
In simplest form AVM is defined as below
Below 5000 -- ApproverRole
Above 5000 -- SeniorApproverRole
Hence if the loggedIn user belongs to ApproverRole , all the transactions
which are below 5000 should be displayed.
I am trying to solve this problem using drools.
Proposed solution.
Create a rule "AVMRULE"
Each payment is modeled as a FACT.
Payment has two interesting properties 1) amount 2) isEligible
When payment object is asserted into working memory the "AVMRULE" modifies
the payment.isEligible. The user interface displays or hides the transaction
based on payment.isEligible
*Problem :* Average number of payments in a system can go up to a million.
The above solution implies that the application has to fetch all the million
records to the business layer.
It can be optimized to fetch batch of records and stop reading as soon as we
find first 10 records which have isEligible true. This works if the user
wants to see first page. Doesn't work if he wants to see the last page. I am
not sure if overall performance will improve in a multi-user environment
at-least 20 concurrent users
*Question :* Please note the problem is to display the filtered list. Also
consider that there are more conditions to handle and AVM is much complex
than what is defined above.
Is rules engine appropriate to solve this problem ?
--
View this message in context: http://drools.46999.n3.nabble.com/Filtering-eligible-records-for-authoriz...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Should update be called moving from one rule task to another in a ruleflow
by Wishing Carebear
Hi,
If I have a ruleflow with a sequence of rule tasks, should an update be
called to reflect the state of the fact in the working memory? In another
words If all the rules are mutually exclusive within a rule task, will the
changes made in first rule task, if used as a condition in the next rule
task will be reflected without calling explicit update.
Thanks for your time and help.
14 years, 8 months