Drools Setup

473 views
Skip to first unread message

Tamil Tamila

unread,
Apr 25, 2016, 9:32:13 AM4/25/16
to Drools Setup
Hello there,

i need some suggestions/help. I am a little bit confused about the architecture of drools.

I have a tool which is developed in .net (C#). Currently the rules for that are hard coded. I want to exclude the rules out of the tools with the help of rules.
I saw that rules supports rest api. In future i want my users (12-15 users are using that tool currently) to decide their rules according their project and they should be able to create the rule in real time.

For that I think workbench is a good. And the execution server to run the rules.

Currently i am testing (version 6.4) to setup workbench and execution server on same tomcat server. But the workbench fails to find the execution server as a remote server.
I don't what i am doing wrong. I configured that according the readme file.

So my next doubt is it possible to execute the drl file directly on the execution server over rest api? That would be easier for to create the drl file and submit to the kie execution server directly form my .net tool without the workbench. If it is not possible, is it possible to integrate the workbench over rest api in my .net tool? The reason behind that thought is, that i want my users to use only one tool.

My thought is

.net Tool ----> uses workbench api to create the drl ----> after that it should rest api for the kie server to execute.

If that is possible my users have to configure only their login details for drools and can use it directly from the .net tools.

The other thing is it possible to integrate my users over ldap into workbench? If that is possible then my admin doesn't need to setup each user seperatly for wb.

I hope that I explained my doubt clearly and it would be nice if somebody can give any suggestions.

Thanks.

 

amit kohli

unread,
Apr 25, 2016, 10:24:52 AM4/25/16
to Drools Setup
Did you configured the  workbench on windows environment. If Yes I appreciate if you share the steps as i have also same requirement. 

 
Thanks in advance

Maciej Swiderski

unread,
Apr 25, 2016, 12:00:44 PM4/25/16
to drools...@googlegroups.com
-- 
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/fa0e2bd1-04e5-42ff-bc7e-0c0b15bbd739%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

amit kohli

unread,
Apr 26, 2016, 11:08:42 AM4/26/16
to Drools Setup
Hi Maciej,

Thanks for the reply.. Can you please suggest the reason kie-server is throwing error while running... below is the log for you reference..

2016-04-26 20:34:57,329 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
2016-04-26 20:34:57,755 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
2016-04-26 20:34:57,989 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
2016-04-26 20:34:57,999 DEBUG [org.jboss.as.config] (MSC service thread 1-1) Configured system properties:
awt.toolkit = sun.awt.windows.WToolkit
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = C:\wildfly-10.0.0.Final\jboss-modules.jar
java.class.version = 52.0
java.endorsed.dirs = C:\Program Files\Java\jre1.8.0_60\lib\endorsed
java.ext.dirs = C:\Program Files\Java\jre1.8.0_60\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home = C:\Program Files\Java\jre1.8.0_60
java.io.tmpdir = C:\Users\ACERLA~1\AppData\Local\Temp\
java.library.path = C:\ProgramData\Oracle\Java\javapath;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\wildfly-10.0.0.Final\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\nodejs\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Python27;C:\Python27;C:\Users\ACER LAPTOP\AppData\Roaming\npm;C:\Users\ACER LAPTOP\AppData\Local\Programs\Python\Python35-32;C:\opencv\build\x86\vc12\bin;C:\Users\ACER LAPTOP\Downloads\opencv\build\python\2.7\x86;C:\opencv\build\x86\vc12\bin;.
java.net.preferIPv4Stack = true
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_60-b27
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.util.logging.manager = org.jboss.logmanager.LogManager
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.version = 1.8.0_60
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = Oracle Corporation
java.vm.version = 25.60-b23
javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
jboss.home.dir = C:\wildfly-10.0.0.Final
jboss.host.name = acerlaptop-pc
jboss.modules.dir = C:\wildfly-10.0.0.Final\modules
jboss.modules.system.pkgs = org.jboss.byteman
jboss.node.name = acerlaptop-pc
jboss.qualified.host.name = acerlaptop-pc
jboss.server.base.dir = C:\wildfly-10.0.0.Final\standalone
jboss.server.config.dir = C:\wildfly-10.0.0.Final\standalone\configuration
jboss.server.data.dir = C:\wildfly-10.0.0.Final\standalone\data
jboss.server.deploy.dir = C:\wildfly-10.0.0.Final\standalone\data\content
jboss.server.log.dir = C:\wildfly-10.0.0.Final\standalone\log
jboss.server.name = acerlaptop-pc
jboss.server.persist.config = true
jboss.server.temp.dir = C:\wildfly-10.0.0.Final\standalone\tmp
line.separator = 

logging.configuration = file:C:\wildfly-10.0.0.Final\standalone\configuration/logging.properties
module.path = C:\wildfly-10.0.0.Final\modules
org.jboss.boot.log.file = C:\wildfly-10.0.0.Final\standalone\log\server.log
org.jboss.resolver.warning = true
org.kie.server.id = wildfly-kieserver
org.xml.sax.driver = __redirected.__XMLReaderFactory
os.arch = x86
os.name = Windows 7
os.version = 6.1
path.separator = ;
program.name = standalone.bat
sun.arch.data.model = 32
sun.boot.class.path = C:\Program Files\Java\jre1.8.0_60\lib\resources.jar;C:\Program Files\Java\jre1.8.0_60\lib\rt.jar;C:\Program Files\Java\jre1.8.0_60\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_60\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_60\lib\jce.jar;C:\Program Files\Java\jre1.8.0_60\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_60\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_60\classes
sun.boot.library.path = C:\Program Files\Java\jre1.8.0_60\bin
sun.cpu.endian = little
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = C:\wildfly-10.0.0.Final\jboss-modules.jar -mp C:\wildfly-10.0.0.Final\modules org.jboss.as.standalone -Djboss.home.dir=C:\wildfly-10.0.0.Final --server-config=standalone-full.xml -Dorg.kie.server.id=wildfly-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = Cp1252
sun.management.compiler = HotSpot Client Compiler
sun.os.patch.level = Service Pack 1
sun.stderr.encoding = cp437
sun.stdout.encoding = cp437
user.country = US
user.dir = C:\Users\ACER LAPTOP
user.home = C:\Users\ACER LAPTOP
user.language = en
user.name = ACER LAPTOP
user.script = 
user.timezone = Asia/Calcutta
user.variant = 
2016-04-26 20:34:58,002 DEBUG [org.jboss.as.config] (MSC service thread 1-1) VM Arguments: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\wildfly-10.0.0.Final\standalone\log\server.log -Dlogging.configuration=file:C:\wildfly-10.0.0.Final\standalone\configuration/logging.properties 
2016-04-26 20:35:00,826 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment kie-server.war
2016-04-26 20:35:02,418 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 3) WFLYDR0001: Content added at location C:\wildfly-10.0.0.Final\standalone\data\content\6c\b920f319aab6b92c7599d841f85bc44ecdbe69\content
2016-04-26 20:35:02,462 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
2016-04-26 20:35:02,548 INFO  [org.xnio] (MSC service thread 1-1) XNIO version 3.3.4.Final
2016-04-26 20:35:02,569 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.3.4.Final
2016-04-26 20:35:02,669 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 41) WFLYCLINF0001: Activating Infinispan subsystem.
2016-04-26 20:35:02,723 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 48) WFLYJSF0007: Activated the following JSF Implementations: [main]
2016-04-26 20:35:02,766 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 52) WFLYNAM0001: Activating Naming Subsystem
2016-04-26 20:35:02,920 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 60) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
2016-04-26 20:35:02,938 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 62) WFLYWS0002: Activating WebServices Extension
2016-04-26 20:35:02,970 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 59) WFLYSEC0002: Activating Security Subsystem
2016-04-26 20:35:03,132 INFO  [org.wildfly.iiop.openjdk] (ServerService Thread Pool -- 42) WFLYIIOP0001: Activating IIOP Subsystem
2016-04-26 20:35:03,172 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 40) WFLYIO001: Worker 'default' has auto-configured to 4 core threads with 32 task threads based on your 2 available processors
2016-04-26 20:35:03,259 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 36) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
2016-04-26 20:35:03,259 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 61) WFLYUT0003: Undertow 1.3.15.Final starting
2016-04-26 20:35:03,452 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 4.0.18.Final
2016-04-26 20:35:03,559 INFO  [org.jboss.as.security] (MSC service thread 1-4) WFLYSEC0001: Current PicketBox version=4.9.4.Final
2016-04-26 20:35:03,571 INFO  [org.jboss.as.connector] (MSC service thread 1-1) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.2.Final)
2016-04-26 20:35:03,657 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0003: Undertow 1.3.15.Final starting
2016-04-26 20:35:03,723 INFO  [org.jboss.as.naming] (MSC service thread 1-1) WFLYNAM0003: Starting Naming Service
2016-04-26 20:35:03,771 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 61) WFLYUT0014: Creating file handler for path 'C:\wildfly-10.0.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
2016-04-26 20:35:03,803 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
2016-04-26 20:35:03,905 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = h2
2016-04-26 20:35:03,920 INFO  [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 8 (per class), which is derived from the number of CPUs on this host.
2016-04-26 20:35:03,919 INFO  [org.jboss.as.ejb3] (MSC service thread 1-4) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 32 (per class), which is derived from thread worker pool sizing.
2016-04-26 20:35:04,037 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0012: Started server default-server.
2016-04-26 20:35:04,055 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0018: Host default-host starting
2016-04-26 20:35:04,177 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
2016-04-26 20:35:04,270 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) WFLYDS0013: Started FileSystemDeploymentService for directory C:\wildfly-10.0.0.Final\standalone\deployments
2016-04-26 20:35:04,281 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "kie-server.war" (runtime-name: "kie-server.war")
2016-04-26 20:35:04,315 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-3) WFLYMSGAMQ0001: AIO wasn't located on this platform, it will fall back to using pure Java NIO.
2016-04-26 20:35:04,703 INFO  [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBossWS 5.1.3.Final (Apache CXF 3.1.4) 
2016-04-26 20:35:04,779 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
2016-04-26 20:35:04,777 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
2016-04-26 20:35:04,954 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221000: live Message Broker is starting with configuration Broker Configuration (clustered=false,journalDirectory=C:\wildfly-10.0.0.Final\standalone\data\activemq\journal,bindingsDirectory=C:\wildfly-10.0.0.Final\standalone\data\activemq\bindings,largeMessagesDirectory=C:\wildfly-10.0.0.Final\standalone\data\activemq\largemessages,pagingDirectory=C:\wildfly-10.0.0.Final\standalone\data\activemq\paging)
2016-04-26 20:35:04,977 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
2016-04-26 20:35:05,006 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221013: Using NIO Journal
2016-04-26 20:35:05,405 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221043: Protocol module found: [artemis-server]. Adding protocol support for: CORE
2016-04-26 20:35:05,420 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221043: Protocol module found: [artemis-amqp-protocol]. Adding protocol support for: AMQP
2016-04-26 20:35:05,440 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221043: Protocol module found: [artemis-hornetq-protocol]. Adding protocol support for: HORNETQ
2016-04-26 20:35:05,448 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221043: Protocol module found: [artemis-stomp-protocol]. Adding protocol support for: STOMP
2016-04-26 20:35:05,769 INFO  [org.wildfly.iiop.openjdk] (MSC service thread 1-1) WFLYIIOP0009: CORBA ORB Service started
2016-04-26 20:35:06,918 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-3) WFLYMSGAMQ0016: Registered HTTP upgrade for activemq-remoting protocol handled by http-acceptor acceptor
2016-04-26 20:35:06,952 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-2) WFLYMSGAMQ0016: Registered HTTP upgrade for activemq-remoting protocol handled by http-acceptor-throughput acceptor
2016-04-26 20:35:06,950 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-1) WFLYMSGAMQ0016: Registered HTTP upgrade for activemq-remoting protocol handled by http-acceptor acceptor
2016-04-26 20:35:07,009 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-2) WFLYMSGAMQ0016: Registered HTTP upgrade for activemq-remoting protocol handled by http-acceptor-throughput acceptor
2016-04-26 20:35:07,590 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221007: Server is now live
2016-04-26 20:35:07,602 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 64) AMQ221001: Apache ActiveMQ Artemis Message Broker version 1.1.0.wildfly-011 [nodeID=35b050f0-0b08-11e6-9dad-fd717c3b8724] 
2016-04-26 20:35:07,675 INFO  [org.wildfly.extension.messaging-activemq] (ServerService Thread Pool -- 64) WFLYMSGAMQ0002: Bound messaging object to jndi name java:/ConnectionFactory
2016-04-26 20:35:07,820 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-1) WFLYJCA0007: Registered connection factory java:/JmsXA
2016-04-26 20:35:07,907 INFO  [org.wildfly.extension.messaging-activemq] (ServerService Thread Pool -- 66) WFLYMSGAMQ0002: Bound messaging object to jndi name java:jboss/exported/jms/RemoteConnectionFactory
2016-04-26 20:35:07,917 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 67) AMQ221003: trying to deploy queue jms.queue.ExpiryQueue
2016-04-26 20:35:07,940 INFO  [org.apache.activemq.artemis.ra] (MSC service thread 1-1) Resource adaptor started
2016-04-26 20:35:07,963 INFO  [org.jboss.as.connector.services.resourceadapters.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-1) IJ020002: Deployed: file://RaActivatoractivemq-ra
2016-04-26 20:35:07,972 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-1) WFLYJCA0002: Bound JCA ConnectionFactory [java:/JmsXA]
2016-04-26 20:35:07,975 INFO  [org.wildfly.extension.messaging-activemq] (MSC service thread 1-1) WFLYMSGAMQ0002: Bound messaging object to jndi name java:jboss/DefaultJMSConnectionFactory
2016-04-26 20:35:07,997 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 65) AMQ221003: trying to deploy queue jms.queue.DLQ
2016-04-26 20:35:16,673 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry jaxb-api.jar in /C:/Users/ACER LAPTOP/content/kie-server.war/WEB-INF/lib/jaxb-core-2.2.11.jar  does not point to a valid jar for a Class-Path reference.
2016-04-26 20:35:16,682 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry jaxb-core.jar in /C:/Users/ACER LAPTOP/content/kie-server.war/WEB-INF/lib/jaxb-impl-2.2.11.jar  does not point to a valid jar for a Class-Path reference.
2016-04-26 20:35:16,697 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry jaxb-core.jar in /C:/Users/ACER LAPTOP/content/kie-server.war/WEB-INF/lib/jaxb-xjc-2.2.11.jar  does not point to a valid jar for a Class-Path reference.
2016-04-26 20:35:16,698 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry jaxb-impl.jar in /C:/Users/ACER LAPTOP/content/kie-server.war/WEB-INF/lib/jaxb-xjc-2.2.11.jar  does not point to a valid jar for a Class-Path reference.
2016-04-26 20:35:17,172 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."kie-server.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."kie-server.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "kie-server.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYMSGAMQ0055: Could not parse file C:\wildfly-10.0.0.Final\standalone\tmp\vfs\temp\tempcb6109913223b4da\content-6a32f21e7720ca3a\META-INF\kie-server-jms.xml
at org.wildfly.extension.messaging.activemq.deployment.MessagingXmlParsingDeploymentUnitProcessor.deploy(MessagingXmlParsingDeploymentUnitProcessor.java:98)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYMSGAMQ0055: Could not parse file C:\wildfly-10.0.0.Final\standalone\tmp\vfs\temp\tempcb6109913223b4da\content-6a32f21e7720ca3a\META-INF\kie-server-jms.xml
at org.wildfly.extension.messaging.activemq.deployment.MessagingXmlParsingDeploymentUnitProcessor.deploy(MessagingXmlParsingDeploymentUnitProcessor.java:95)
... 6 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
Message: Unexpected element '{urn:jboss:messaging-deployment:1.0}messaging-deployment'
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.wildfly.extension.messaging.activemq.deployment.MessagingXmlParsingDeploymentUnitProcessor.deploy(MessagingXmlParsingDeploymentUnitProcessor.java:89)
... 6 more

2016-04-26 20:35:17,179 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "kie-server.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"kie-server.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"kie-server.war\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"kie-server.war\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYMSGAMQ0055: Could not parse file C:\\wildfly-10.0.0.Final\\standalone\\tmp\\vfs\\temp\\tempcb6109913223b4da\\content-6a32f21e7720ca3a\\META-INF\\kie-server-jms.xml
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYMSGAMQ0055: Could not parse file C:\\wildfly-10.0.0.Final\\standalone\\tmp\\vfs\\temp\\tempcb6109913223b4da\\content-6a32f21e7720ca3a\\META-INF\\kie-server-jms.xml
    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
Message: Unexpected element '{urn:jboss:messaging-deployment:1.0}messaging-deployment'"}}
2016-04-26 20:35:17,236 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "kie-server.war" (runtime-name : "kie-server.war")
2016-04-26 20:35:17,240 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."kie-server.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."kie-server.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "kie-server.war"

2016-04-26 20:35:17,391 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
2016-04-26 20:35:17,393 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
2016-04-26 20:35:17,394 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) started (with errors) in 20734ms - Started 309 of 595 services (1 services failed or missing dependencies, 386 services are lazy, passive or on-demand)
2016-04-26 20:35:18,503 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment kie-server.war (runtime-name: kie-server.war) in 1073ms
2016-04-26 20:35:18,596 INFO  [org.jboss.as.repository] (DeploymentScanner-threads - 1) WFLYDR0002: Content removed from location C:\wildfly-10.0.0.Final\standalone\data\content\6c\b920f319aab6b92c7599d841f85bc44ecdbe69\content
2016-04-26 20:35:18,597 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "kie-server.war" (runtime-name: "kie-server.war")
2016-04-26 20:35:18,597 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."kie-server.war".PARSE


Regards,
Amit Kohli

Maciej Swiderski

unread,
Apr 26, 2016, 12:06:59 PM4/26/16
to drools...@googlegroups.com
the reason is that you deploy kie server version that is not suitable for wildfly 10 - only 7.0.0-SNAPSHOT is configured out of the box for wildfly 10. Though it should be just to replace kie-server-jms.xml file content that is inside the kie-server.war/META-INF with following https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-wars/kie-server/src/main/ee7-resources/META-INF/kie-server-jms.xml

and that should do the trick

Maciej

Tamil Tamila

unread,
Apr 27, 2016, 5:53:54 PM4/27/16
to Drools Setup
Any ideas for my purpose? Mainly is it possible to create rules via rest in workbench?
And is workbench required to submit the rules to execution server?
...

amit kohli

unread,
Apr 28, 2016, 9:24:58 AM4/28/16
to Drools Setup
Hi,

Thanks for your all help.

Below is one more query. 

We have created below rule 

package org1.proj1;
rule "MyRule"
when
item : org1.proj1.Employee (id == 12)
then
item.setAge(14);
update(item); 
end
 
Afterwards on invoking rule with rest api url: "http://localhost:8080/kie-server/services/rest/server/containers/instances/mycont" with below request parameter we are getting empty response.

Request Parmeter

<batch-execution lookup="defaultKieSession">
  <insert out-identifier="MyCustomIdentifier" return-object="true">
    <Org1.proj1.Employee>
      <name>john</name>
       <age>12</age>
    </Org1.proj1.Employee>
  </insert>
  <fire-all-rules/>
</batch-execution>
 
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<response type="SUCCESS" msg="Container mycont successfully called.">
<execution-results>
<results>
<item key="MyCustomIdentifier" />
</results>
<facts>
<item key="MyCustomIdentifier" />
</facts>
 </execution-results>
</response>

Therefore request you to please suggest how this can be rectified.

Thanks in advance. 

Best Regards,
Amit Kohli
...

Maciej Swiderski

unread,
Apr 28, 2016, 1:44:27 PM4/28/16
to drools...@googlegroups.com
looks like your rule is not matching as you check Employee whos id is 12 while you set the age to 12 not id for the request 

Maciej
--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

amit kohli

unread,
Apr 28, 2016, 8:11:08 PM4/28/16
to Drools Setup
oh i will check and revert. However should this not return the same object as  if rule is not applicable..?
...

amit kohli

unread,
Apr 29, 2016, 1:48:17 PM4/29/16
to Drools Setup
Still i am getting empty result after rectifying the condition.. Is there any mapping i m misssing for return type within rule drl file or in configuration... Please suggest... thanks in advance...
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Tamil Tamila

unread,
Apr 29, 2016, 1:57:45 PM4/29/16
to Drools Setup
I can not start kie-wb

getting the following error:
javax.naming.NamingException: no resource registered with uniqueName 'jdbc/jbpm', available resources: []

I followed this instruction:
http://mswiderski.blogspot.de/2015/10/installing-kie-server-and-workbench-on.html
Reply all
Reply to author
Forward
0 new messages