Re: [rules-users] Can't Deploy drools-server.war to JBoss 5.1.0.GA - ClassCastException
Hi, I'm just re-posting my question because there were no replies. Has anyone had any luck deploying the 5.1 drools-server war to JBoss 5.1.0.GA? I can't get it to deploy - even right out of the box with no config changes. Any input would be appreciated. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Can-t-Deploy-drools-server-war-to-JBoss-5-1-0-GA-ClassCastException-tp2502412p2560733.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] RuleFlow only calling first RuleFlowGroup when called through drools-server
Sorry, I meant that the other way around. The default configuration was: I changed it to: -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/RuleFlow-only-calling-first-RuleFlowGroup-when-called-through-drools-server-tp2514244p2526769.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] RuleFlow only calling first RuleFlowGroup when called through drools-server
I found that my problem was that my drools-server knowledge session was configured as a stateless session. In the knowledge-services.xml, the default session was configured as follows: I changed it to: And now all my rules fire. (Also, I inserted a FireAllRulesCommand after my StartProcessCommand) before invoking the server. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/RuleFlow-only-calling-first-RuleFlowGroup-when-called-through-drools-server-tp2514244p2526748.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] RuleFlow only calling first RuleFlowGroup when called through drools-server
I am new to Drools and I am having the exact same problem. Have you found any resolution yet? How are you starting the ruleflow? I'm creating a StartProcessCommand object and adding it to the BatchExecution Command. I am not sending a FireAllRules command as this seems to make the rules fire independently of the flow. Basically I do something like this: //create an insertCommand object and insert the passed in fact model into it. InsertObjectCommand insertCommand = (InsertObjectCommand) CommandFactory.newInsert(factModel); insertCommand.setObject(factModel); //set the out identifier. This is a string that will be used to identify //this particular fact model in the execution result response. insertCommand.setOutIdentifier(factHandle); insertCommand.setEntryPoint("DEFAULT"); //not sure what this does. //tell the drools server to pass the fact model back to the client //as part of the response insertCommand.setReturnObject(true); StartProcessCommand startProcessCommand = new StartProcessCommand(); startProcessCommand.setProcessId(processId); commandList.add(startProcessCommand); //add the command to the passed in array list commandList.add(insertCommand); BatchExecutionCommand batchCommand = CommandFactory.newBatchExecution(commandList,knowledgeSession); //Use the BatchExecutionHelper class to convert the batch command to an XML stream to be sent to the //drool-server's rest api. String commandXML = BatchExecutionHelper.newXStreamMarshaller().toXML(batchCommand); Then I send the commandXML to the server using HttpClient. Is this similar to what you do? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/RuleFlow-only-calling-first-RuleFlowGroup-when-called-through-drools-server-tp2514244p2520132.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools Server and BPMN2
Hi, Does the Drools Server (v. 5.1) support the new BMPN2 implementation of the drools flow? If so, how do I configure my knowledge session in the knowledge-services.xml? I have tried: and But neither work. Thanks in advance for any help. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-and-BPMN2-tp2511727p2511727.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Can't Deploy drools-server.war to JBoss 5.1.0.GA - ClassCastException
When attempting to deploy version 5.1 of the drools execution server (drools-server.war) to JBoss AS 5.1.0.GA I receive the following ClassCastException: Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory I tried removing the xml-apis-2.0.2.jar from the lib directory of the drools-server.war, but that resulted in xml parsing exceptions for the spring and camel configuration files. I tried adding a JBOSS-WEB.xml with the following class loader configuration: xml-apis:archive=drools-server.war java2ParentDelegation=false but that had no effect. The Drools Integration documentation says the following in regards to deploying the execution server: "Deploy on JBoss AS 4.x / Tomcat 6.x works out-of-the-box, instead some external dependencies must be added and the configuration must be changed to be deployed in JBoss AS 5" Does anyone know what these external dependencies and configuration changes are for JBoss AS 5? By the way, I have been able to successfully deploy and test the server on Tomcat 6.0.29. Thanks in advance for any help; I've been spinning my wheels on this one. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Can-t-Deploy-drools-server-war-to-JBoss-5-1-0-GA-ClassCastException-tp2502412p2502412.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users