System properties not being set when starting server

1,874 views
Skip to first unread message

learner

unread,
Apr 28, 2016, 10:07:42 AM4/28/16
to Drools Setup
I am using drools kie wb and kie server 6.3.0

I usually start server using standalone -c standalone-full.xml
Using this server is starting but containers created in workbench are not reflected in kie server which is deployed on the same server instance( Widlfly 9)

So to solve the issue i got to know to add sys. prop.

To add system properties i use the below,

Standalone -c standalone-full.xml Dorg.kie.server.id=wildfly-kieserver Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller Dorg.jbpm.server.ext.disabled=true



if i use this server is not starting,

 


server log is,

.......................................................

2016-04-28 19:21:36,042 WARN  [ErraiMarshalling] (default task-18) static marshallers were not found.

2016-04-28 19:21:36,045 WARN  [ErraiMarshalling] (default task-18) using dynamic marshallers. dynamic marshallers are designed for development mode testing, and ideally should not be used in production. *

2016-04-28 19:21:37,441 INFO  [org.uberfire.backend.server.security.adapter.WeblogicGroupsAdapter] (default task-21) Unable to find weblogic.security.Security, disabling weblogic adapter

2016-04-28 19:21:37,442 INFO  [org.uberfire.backend.server.security.adapter.WebSphereGroupsAdapter] (default task-21) Unable to look up UserRegistry in JNDI under key 'UserRegistry', disabling websphere adapter

2016-04-28 19:22:00,153 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.

2016-04-28 19:22:00,225 INFO  [org.jboss.as.messaging] (ServerService Thread Pool -- 97) WFLYMSG0006: Unbound messaging object to jndi name java:/queue/KIE.SERVER.EXECUTOR

2016-04-28 19:22:00,234 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 98) WFLYUT0022: Unregistered web context: /kie-wb

2016-04-28 19:22:00,239 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 100) WFLYUT0022: Unregistered web context: /kie-server

2016-04-28 19:22:00,273 INFO  [org.kie.server.services.impl.KieServerImpl] (ServerService Thread Pool -- 100) Server Default Extension has been successfully unregistered as server extension

2016-04-28 19:22:00,277 INFO  [org.kie.server.services.impl.KieServerImpl] (ServerService Thread Pool -- 100) Drools KIE Server extension has been successfully unregistered as server extension

2016-04-28 19:22:00,282 INFO  [org.jbpm.executor.impl.ExecutorImpl] (ServerService Thread Pool -- 100)  >>>>> Destroying Executor !!!

2016-04-28 19:22:00,291 INFO  [org.kie.server.services.impl.KieServerImpl] (ServerService Thread Pool -- 100) jBPM KIE Server extension has been successfully unregistered as server extension

2016-04-28 19:22:00,295 INFO  [org.kie.server.services.Bootstrap] (ServerService Thread Pool -- 100) KieServer (id 15ad5bfa-7532-3eea-940a-abbbbc89f1e8) destroyed successfully

2016-04-28 19:22:00,371 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0019: Host default-host stopping

2016-04-28 19:22:00,406 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 104) WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service 'kie-wb.war#org.jbpm.domain'

2016-04-28 19:22:00,419 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0010: Stopping weld service for deployment kie-wb.war

2016-04-28 19:22:00,432 INFO  [org.jbpm.executor.impl.ExecutorImpl] (MSC service thread 1-3)  >>>>> Destroying Executor !!!

2016-04-28 19:22:00,465 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 104) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'kie-wb.war#org.jbpm.domain'

2016-04-28 19:22:00,599 INFO  [org.jboss.as.messaging] (MSC service thread 1-4) WFLYMSG0006: Unbound messaging object to jndi name java:jboss/DefaultJMSConnectionFactory

2016-04-28 19:22:00,599 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) WFLYWELD0010: Stopping weld service for deployment kie-server.war

2016-04-28 19:22:00,599 INFO  [org.jboss.as.connector.deployment] (MSC service thread 1-5) WFLYJCA0011: Unbound JCA ConnectionFactory [java:/JmsXA]

2016-04-28 19:22:00,602 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]

2016-04-28 19:22:00,639 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0019: Stopped Driver service with driver-name = h2

2016-04-28 19:22:00,638 INFO  [org.hornetq.ra] (ServerService Thread Pool -- 102) HQ151003: HornetQ resource adaptor stopped

2016-04-28 19:22:00,725 INFO  [org.hornetq.core.server] (ServerService Thread Pool -- 102) HQ221002: HornetQ Server version 2.4.7.Final (2.4.7.Final, 124) [e3a24678-016b-11e6-bdb7-653a8e4bc265] stopped

2016-04-28 19:22:00,730 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow HTTP listener default suspending

2016-04-28 19:22:00,736 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow HTTP listener default stopped, was bound to example.ca.com/127.0.0.1:8080

2016-04-28 19:22:00,742 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0004: Undertow 1.2.9.Final stopping

2016-04-28 19:22:01,053 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment kie-server.war (runtime-name: kie-server.war) in 867ms

2016-04-28 19:22:02,778 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment kie-wb.war (runtime-name: kie-wb.war) in 2592ms

2016-04-28 19:22:02,782 INFO  [org.jboss.as] (MSC service thread 1-5) WFLYSRV0050: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) stopped in 2596ms

2016-04-28 19:22:26,890 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final

.........................................................................................

Can any one please help me out. Thanks in advance.


ಶಿವರಾಜ್ ಅರಸ್

unread,
Apr 28, 2016, 11:00:33 AM4/28/16
to drools...@googlegroups.com

Not Dorg 
Correct way is -Dorg......

--
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/4920ac13-854e-4a97-a4bb-7026d2e0e03e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

learner

unread,
Apr 28, 2016, 1:31:35 PM4/28/16
to Drools Setup
Actually i tried -Dorg only later i have changed . The scenario i explained happened when it is kept as -Dorg... The server log is also for the same.

shivu shiva shivraj

unread,
Apr 29, 2016, 12:26:08 AM4/29/16
to Drools Setup
tell me how u are configuring step by step 

learner

unread,
Apr 29, 2016, 2:16:56 AM4/29/16
to Drools Setup
Hi Shiva,
            1. Placed kie-wb.war and kie-server.war in deployments folder
            2. I have first added user for management realm and then added users for application realm for roles kie-server and admin. 
            3. Started server using standalone -c standalone-full.xml. workbench and kie server are deployed on widlfy9 and in workbench i have a sample data object and written a sample drl. 
            4. In system management browser, i tried to register server. i only see identifier , name version . I kept endpoint url for kieserver in identifier and added container under the registered server. 



                5. Since system properties -Dorg.. are not set the container created in kie workbench is not showing up in the kie-server .
                    if i type http://localhost:8080/kie-server/services/rest/server/containers/ in browser, 
<response type="SUCCESS" msg="List of created containers">
<kie-containers/>
</response>
is the response

               6. so to set system properties using
                   standalone -c standalone-full.xml -Dorg.kie.server.id=wildfly-kieserver -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller -Dorg.jbpm.server.ext.disabled=true

                    If is start server using this command , server is not starting. 
                             Calling "C:\Users\MOHMO06\Desktop\Wildfly\wildfly-9.0.1.Final\bin\standalone.conf.bat"
Setting JAVA property to "C:\Program Files\Java\jdk1.8.0_65\bin\java"
===============================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: "C:\Users\MOHMO06\Desktop\Wildfly\wildfly-9.0.1.Final"

  JAVA: "C:\Program Files\Java\jdk1.8.0_65\bin\java"

  JAVA_OPTS: "-Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jbos
s.byteman"

===============================================================================

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
11:44:17,680 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final
java.lang.IllegalStateException: WFLYCTL0214: Could not get main file: standalone-full.xml -Dorg.kie.server.id=wildfly-kieserver. Specified files must
 be relative to the configuration dir: C:\Users\MOHMO06\Desktop\Wildfly\wildfly-9.0.1.Final\standalone\configuration
        at org.jboss.as.controller.persistence.ConfigurationFile.determineMainFile(ConfigurationFile.java:309)
        at org.jboss.as.controller.persistence.ConfigurationFile.<init>(ConfigurationFile.java:170)
        at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:432)
        at org.jboss.as.server.Main.determineEnvironment(Main.java:278)
        at org.jboss.as.server.Main.main(Main.java:94)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.jboss.modules.Module.run(Module.java:308)
        at org.jboss.modules.Main.main(Main.java:487)
Press any key to continue . . .

      Thanks in advance Shiva.

shivu shiva shivraj

unread,
Apr 29, 2016, 2:31:58 AM4/29/16
to Drools Setup
follow these steps
  1. remove server , reinstall that  otherwise use  use 8.2.1 final wildfly server and  kie-wb.war and kie-server.war
  2. configure use name and role correctly as u metioned above 
      start command prompt 

Standalone.bat  --server-config=standalone-full.xml -
Dorg.kie.server.id=wildfly-kieserver -
Dorg.jbpm.server.ext.disabled=true

copy paste above as it is , after press enter u have to see full configuration in command prompt k , no need to register server manually watch log after wb started server registerd   

Padma G

unread,
Jul 23, 2016, 9:10:13 AM7/23/16
to Drools Setup
Reply all
Reply to author
Forward
0 new messages