Cannot Register Kie Server (No Remote Servers) in Workbench (Drools 6.4.0 in WildFly 8.1.0)

8,169 views
Skip to first unread message

Quin Zhou

unread,
Jun 7, 2016, 12:59:47 PM6/7/16
to Drools Setup
Hi,

I deployed both kie-server.war and kie-wb.war in WildFly 8.1.0 and was able to successfully test kie server by accessing

http://localhost:8080/kie-server/services/rest/server and also able to login to the workbench with the user credential created for workbench access.


However when clicking on Deploy-> Rule Deployment, I don't see any Register button (to the contrary of Drools document) but a New Server Template button. After creating a Server Template, I can add a KIE Container, but the REMOTE SERVERS list is empty, showing No Remote Servers and the newly created container is not associated with any KIE Server. So I am not given any opportunity to create/configure Kie Server definition (Configuration first approach), neither the Kie Server is auto-registered (Registration First approach).

 
Does someone have a clue on why this is happening or point me to the right steps to get the KIE Server registered? I used below command line to start up the WildFly server, with or w/o -Dorg.kie.server.controller=http://localhost:8080/kie-wb/rest/controller, but either way the KIE Server doesn't show up or cannot be register in workbench:

./standalone.sh  

--server-config=standalone-full.xml 

-Dorg.kie.server.id=wildfly8-kieserver 

-Dorg.kie.server.location= http://localhost:8080/kie-server/services/rest/server

 


Or with:


./standalone.sh  

--server-config=standalone-full.xml 

-Dorg.kie.server.id=wildfly8-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.kie.server.user=kieUser

-Dorg.kie.server.pwd=xyz



With -Dorg.kie.server.controller set, I did get below exception:


[org.kie.server.services.impl.controller.DefaultRestControllerImpl] (MSC service thread 1-11) Exception encountered while syncing with controller at http://localhost:8080/kie-wb/rest/controller/server/wildfly8-kieserver error Error while sending PUT request to http://localhost:8080/kie-wb/rest/controller/server/wildfly8-kieserver response code 405


followed by:



[org.kie.server.services.impl.controller.DefaultRestControllerImpl] (KieServer-ControllerConnect) Exception encountered while syncing with controller at http://localhost:8080/kie-wb/rest/controller/server/wildfly8-kieserver error Error while sending PUT request to http://localhost:8080/kie-wb/rest/controller/server/wildfly8-kieserver response code 401


 

      




NoRemoteServer.docx

Maciej Swiderski

unread,
Jun 7, 2016, 3:42:09 PM6/7/16
to drools...@googlegroups.com
See this article for exact setup for managed server http://mswiderski.blogspot.com/2015/09/unified-kie-execution-server-part-3.html

And this one regarding running both workbench and kie server on single server http://mswiderski.blogspot.com/2015/10/installing-kie-server-and-workbench-on.html

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/2fba6073-6792-4e2a-98d8-a75963926367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Quin Zhou

unread,
Jun 7, 2016, 6:46:26 PM6/7/16
to Drools Setup
Thanks Maciej for the prompt response.

I did  follow the link on running both workbench/kie server on a single server BEFORE posting my question (my understanding is,  that's using the Register First or auto registration approach), the results is while both kie server and workbench are up running, I cannot see the auto-registered Remote server in workbench, neither can I configure it in workbench. (please pay attention to attached screen shot, which is very different from what you showed in the video from this link for exact setup for managed server http://mswiderski.blogspot.com/2015/09/unified-kie-execution-server-part-3.html).

So this time I followed above link on exact setup for managed server (using Configuration first approach, to my understanding), but again while both kie server and workbench are up running, when I login to workbench and click on Deploy-> Rule Deployment, the  only choice for me is the New Server Template button,  I cannot see the Server Management Browser tab and so cannot access the Register Server pop up window.

Looks like I am on a totally different version of Drools Workbench/KIE-Server - I am on 6.4.0, is your link pertaining to 6.3 or even earlier? If that's the case do you have documentation for 6.4 that details exact steps on defining a server configuration, starting from below:

To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.
Auto Generated Inline Image 1

Maciej Swiderski

unread,
Jun 8, 2016, 3:45:25 AM6/8/16
to drools...@googlegroups.com
Even tough the screencast was done on previous version registration mechanism is exactly the same.

You should see in server logs messages why kie server cannot connect, usually it's related to wrong user name/password which prevents from connecting to controller.

Maciej
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/2fba6073-6792-4e2a-98d8-a75963926367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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.

Quin Zhou

unread,
Jun 8, 2016, 12:20:05 PM6/8/16
to Drools Setup
Thanks Maciej.

I reverted back to launching WildFly with system properties including -Dorg.kie.server.controller, -Dorg.kie.server.user, -Dorg.kie.server.pwd, after recreating user name and password. This time there is no 405 or 401 error on sending PUT request to the controller and kie server was auto-registered in the workbench. So you are right that looks like user/password mismatch is the reason that prevented the connection.

Kind regards,

Quin
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@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/2fba6073-6792-4e2a-98d8-a75963926367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

Nizamudeen K

unread,
Aug 4, 2016, 2:21:51 PM8/4/16
to Drools Setup
I am facing the same issue on tomcat 7, the bootstraps/jvm args are supplied as mentioned in the thread. Both work bench and kie server works independently. Managed server runs and i am able to create container using rest call. When going to workbench -> deploy -> rules deploy -> create new server template, it shows No Remote servers. Kindly help

Thanks,
Nizam

srinivas rao

unread,
Sep 26, 2016, 10:59:09 PM9/26/16
to Drools Setup
even i am facing same issues from past 2 week not able to find resolution .i am using 6.4 final and wild fly 9 

ia m able to register container using rest cal but i dont see server under remote server http://mswiderski.blogspot.in/2015/10/installing-kie-server-and-workbench-on.html
i follwd this url to configure kie server .i dont know what mistake  iam doing this isssue is critical not able to find solution can anyone help me?
see my config i deplyed both kie server and kie workbench on same server .


if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"
   JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true -Dorg.kie.server.id=kie-server -Dorg.kie.server.location=http://localhost:8080/kie-server/services/rest/server -Dorg.kie.server.controller=http://localhost:8080/kie-wb/services/rest/controller -Dorg.uberfire.nio.git.ssh.port=8001 -Dorg.kie.example=false -Dorg.kie.demo=false -Dorg.kie.server.controller.user=kieserver -Dorg.kie.server.controller.pwd=kieserver1! -Dorg.kie.server.user=kieserver -Dorg.kie.server.pwd=kieserver1!"

srinivas rao

unread,
Sep 26, 2016, 11:01:27 PM9/26/16
to Drools Setup
hi Maciej,
i followed this URL to configure kie server and kie workbench issue still there


regards
srinivas
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.

caicongyang

unread,
Oct 20, 2016, 11:17:55 PM10/20/16
to Drools Setup
Hi man,
           I found issue still here ,can you give me some suggest  about  No Associated Containers!

在 2016年9月27日星期二 UTC+8上午11:01:27,srinivas rao写道:

Victor Savkov

unread,
Mar 6, 2017, 10:34:01 AM3/6/17
to Drools Setup
Summary: WildFly fails to deploy kie-wb.war after re-start because Lucene did not complete indexing on the previous start on one of the following: datasets, plugins, jbpm-playground, uf-playground.

Workaround: remove .index directory before each WildFly start.
kie-wb.war will be deployed. But Lucene won't complete indexing.

Details:
WildFly 10.1.0.Final
Kie Server and WB 6.5.0.Final

Kie Server was running from an external hard drive attached to thunderbolt port. That was causing Lucene failure.

Moving Kie Server to SSD resolved the issue. Workaround was not needed when Kie Server was starting from SSD.
Message has been deleted

vivek gupta

unread,
Mar 27, 2018, 6:23:45 AM3/27/18
to Drools Setup
Do Anyone find any solution as I am having same issues with 6.5 final and and tomcat 7,8,8.5, wild fly 8,9 . I have tried with all server but didn't get solution.
Please provide some solution or guide me to some blogs if anyone have gotten.

Thanks

Kind Regards
Vivek Gupta


On Tuesday, June 7, 2016 at 10:29:47 PM UTC+5:30, Quin Zhou wrote:

Smith

unread,
Mar 12, 2019, 10:46:37 AM3/12/19
to Drools Setup
Hi   Maciej Swiderski,

    I am using jbpm-server  7.15 for implementing the rules and deploying. But my requirement is after implementing the rules, need to execute in other server without using kie workbench.
   I was able to create container and execute the rules. 

  Here i found one that if i am stopping the server and again restarting it. All the created containers are getting deleted. 

 I see so containers are there. So again i have to run the PUT method for creating.

 So can you please help me solving this issue. As i created one container thru curl  PUT ........ command. So that is should not get deleted even after i stop the running server.

Thanks
Smith

Maciej Swiderski

unread,
Mar 12, 2019, 4:08:09 PM3/12/19
to drools...@googlegroups.com
That means you’re running in managed mode with controller not having any containers defined. See this article for some details

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.

Smith

unread,
Mar 13, 2019, 7:13:38 AM3/13/19
to Drools Setup
Thank you so much Maciej Swiderski, I have gone thru the link you provided. its says about the manged mode at last. But as per my requirement i required how to develop unmanaged mode. As i need to execute on kie execution server only without kie workbench 

Please let me know where i need to change in the configuration file or  Is there any system property, so that if once i created the container thru "curl PUT commmand". It should be in started state even though if the server is restarted.

Smith

unread,
Mar 13, 2019, 8:45:25 AM3/13/19
to Drools Setup
Please suggest me how can i define the containers with out kie workbench.

Maciej Swiderski

unread,
Mar 13, 2019, 4:00:29 PM3/13/19
to drools...@googlegroups.com
Make sure you don’t have any controllers defined (either through system properties or within kiesever-id.xml) and then send initial requests to create containers. Once done, it will be loaded on each restart from the kieserver-id.xml file

Kieserver-id is actually the id you assign to your kid server

Maciej

On 13 Mar 2019, at 13:45, Smith <srinivasa...@gmail.com> wrote:

Please suggest me how can i define the containers with out kie workbench.

--
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.

Smith

unread,
Mar 15, 2019, 3:03:55 AM3/15/19
to Drools Setup
Hi Maciej Swiderski,

Its very happy to get suggestion which helping me  in  learning steps.
Here i have taken jbpm7.15,after extracting it, I removed the jbpm-console war which are related to the controller.
i put only kie-server war and created own user given all the access like kie-server,kiemgmt,admin.
Now i started the server using standalone-full.xml. Once started it and then i executed the curl commands to create conatiners.
Its is getting created and working fine when we are calling the rest GET call.

But when i stop the server and again restart it. All my created containers are getting delete. So before stopping the server all my created containers are in STARTED status only.

As per you suggestion given above i don't have any controller or defined in the standalone-full.xml.  Even then also i facing the same issue.

Can you please suggest me how can i proceed.

Thanks
Smit






 

Maciej Swiderski

unread,
Mar 16, 2019, 9:00:59 AM3/16/19
to drools...@googlegroups.com
You need to remove .org.kie.server.controller from standalone.xml file. 

Maciej

Wiadomość napisana przez Smith <srinivasa...@gmail.com> w dniu 15.03.2019, o godz. 08:03:

--
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.

Smith

unread,
Mar 18, 2019, 8:37:35 AM3/18/19
to Drools Setup
Hi Maciej Swiderski,

I have done it as you suggested above. But i didn't see the expected. I have removed the controller from the standalone.xml and standalone-full.xml.
Following is the command i am executing 

 nohup sh  standalone.sh -b 0.0.0.0 -server-config=standalone-full.xml &

i have created the containers using curl command.

I have stopped the server and again i restarted it. But i see there is no containers, Even though the containers are in Started status before the server is down.

Can you please suggest me,how can i proceed.

Maciej Swiderski

unread,
Mar 18, 2019, 2:54:58 PM3/18/19
to drools...@googlegroups.com
Try with this command
nohup sh  standalone.sh -b 0.0.0.0 -server-config=standalone-full.xml -Dorg.kie.server.id=newserver &

And see if that is still does not work. Next time if it does not work upload your standalone…xml file 

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.

Smith

unread,
Mar 19, 2019, 4:00:08 AM3/19/19
to Drools Setup
Hi  Maciej,

I have tried as per your suggstion in the above mail.its still not working. I am uploading the standalone-full.xml and also standalone.xml file. please let me know whether i have to do any configuration.


Thanks
smith
standalone.xml
standalone-full.xml

Smith

unread,
Mar 20, 2019, 3:20:08 AM3/20/19
to Drools Setup
Hi  Maciej GoodMorning,

Can you please share me any more suggestion or solution. As i was looking for this from long time. 

It will be a great help.

Thanks
Smith


Maciej Swiderski

unread,
Mar 21, 2019, 3:30:42 AM3/21/19
to drools...@googlegroups.com
There are xml files named as your Kie Server is in wildfly-home/bin directory. Removed them and restart the server. It should create new file there and assuming there is no controller defined for it it will reload configured from that file. 

You can also remove/disc ale deployment of business central/jBPM console to see if it tries to connect to controller 

Maciej 

Wiadomość napisana przez Smith <srinivasa...@gmail.com> w dniu 20.03.2019, o godz. 08:20:

--
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.

Smith

unread,
Mar 22, 2019, 2:57:23 AM3/22/19
to Drools Setup
Hi Maciej Swiderski, 

Thank you soooooooooo much. This problem got solved for me. Please let me know is there link so that i thank you, through that. So that it may increase the count like no.of views and etc.

Thanks
Smith

Maciej Swiderski

unread,
Mar 22, 2019, 6:15:36 AM3/22/19
to drools...@googlegroups.com
Glad to hear it worked out well for you.

I don’t think we have any kind of site like that, so just replying here is already enough I’d say, thanks

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.

Smith

unread,
Mar 22, 2019, 9:32:19 AM3/22/19
to Drools Setup
Hi Maciej Swiderski,

Thanks for the response, today i was very happy after my  issue  was resolved. I really thanks alot.

I have some requirement like from single kie workbench, i need to deploy the container in more than  two remote machine where kie server is exists.

I mean to say that if i create rule and deploy in this workbench. The same should be deployed in all the kie server remote machine automatically.

I have tried by adding the server URL to the workbench. The containers are not getting started status.

i was not supposed to manually run the "curl put" command by login into each and every machine by copying the jar file.


Please tell me whether it is possible in jbpm7.15. If so can you please help with steps. so that i follow it. Or if you have any document also can you send it. 

Please suggest me how can i processed it.


Thanks
Smith






Maciej Swiderski

unread,
Mar 23, 2019, 3:23:14 AM3/23/19
to drools...@googlegroups.com
That’s what you get if you run Kie Server in managed mode. When you start Kie Server you point it to controller it registers itself with Kie Server id (.org.kie.seever.id system property) and then you can just add containers to that server template/configuration 

So if you have many Kie servers that should get the same containers deployed then you should start them with the same controller and Kie Server is properties so they will be considered instances of the same template/configuration and thus updated as one

Maciej

Wiadomość napisana przez Smith <srinivasa...@gmail.com> w dniu 22.03.2019, o godz. 14:32:

--
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.

Smith

unread,
Mar 26, 2019, 9:54:17 AM3/26/19
to Drools Setup
Hi Maciej Swiderski,

I am running only kie server on one remote machine. And following are the system properties
       <property name="org.kie.server.id" value="Kie-server"/>
      <property name="org.kie.server.location" value="http://localhost:8181/kie-server/services/rest/server"/> -->
      <property name="org.kie.server.user" value="user4"/>
      <property name="org.kie.server.pwd" value="user4"/>
  <property name="org.kie.server.controller" value="http://xyzmachine:8080/jbpm-console/rest/controller"/>
  <property name="org.kie.server.controller.user" value="wbadmin"/>
      <property name="org.kie.server.controller.pwd" value="wbadmin"/>
For the above kie server i have created a user(user4).
i am executing using standalone-full.xml
--------------------------------------------------------------------------------------
And i have deployed workbench and kie server in xyz(another) machine. here are the follwing system properites.
<property name="org.kie.server.id" value="sample-server"/>
        <property name="org.kie.server.controller" value="http://localhost:9292/jbpm-console/rest/controller"/>
        <property name="org.kie.server.location" value="http://localhost:9292/kie-server/services/rest/server"/>
As for  this(workbench)  i am using only the default user and password.
I am executing using standalone.xml

I have tried as you suggested  per the previous  mail.

Please suggest me with some sample system properties and also  xml file if possible please.

Thanks
Smith











Maciej Swiderski

unread,
Mar 26, 2019, 4:04:32 PM3/26/19
to drools...@googlegroups.com
Send your standalone.xml files for both kie servers and workbench

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.

Smith

unread,
Mar 28, 2019, 7:28:35 AM3/28/19
to Drools Setup
Hi Maciej Swiderski,

As explained earlier, I am running the the workbench(BusinessCentral) in one machine and running the kie server on another machine. Both of them are running in the managed mode only.
As you suggested in previous comments. i have added all the controller in the kie server' standalone-full.xml. I am attaching the standalone-full.xml also. I have created different user for both the machine.
When i run the kie workbench, i was able to see the remote server under remote server. But when i deploy any container in the workbench,it is not getting deployed automatically in the remote server.
Here we are not maintaining  any central repository.
Is there any way to solve this issue without using the central repository.
If central repository is mandatory? Can you please send the setting.xml file. so by which we can deploy it automatically.

Thanks
smith
BusinessCentralRunning_Machine.zip
RemoteServerRunning_Machine.zip

Smith

unread,
Mar 28, 2019, 7:30:31 AM3/28/19
to Drools Setup
Both the users are haveing all the admin,kie-server,kiemgmt


Maciej Swiderski

unread,
Mar 28, 2019, 1:27:25 PM3/28/19
to drools...@googlegroups.com
Since you have it different machines don’t use localhost as org.kie.server.location and controller as they will simply not be accessible. Use proper machines hostname or ip 

Maciej

Wiadomość napisana przez Smith <srinivasa...@gmail.com> w dniu 28.03.2019, o godz. 12:30:

Both the users are haveing all the admin,kie-server,kiemgmt


--
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.
Message has been deleted

Smith

unread,
Mar 29, 2019, 6:58:22 AM3/29/19
to Drools Setup
Hi Maciej Swiderski,

As per your suggestion, I made changes in both the files. Instead of localhost, I replaced with the actual hostname. After restarting both the servers(workbench along with kie server  in one machine and remote kie server on another machine)

Even though i was not able to create container in the remote machine.

i see one more problem is even in workbench when i deploy it any container. it appears in red cross that is failed status. If I restart the same server then it is getting deployed and i see green tick button.

I am attaching the screen shot for the behavior of the remote server

Thanks
smith 
Remote_Deploy_Server_Error.docx

Maciej Swiderski

unread,
Mar 29, 2019, 2:42:41 PM3/29/19
to drools...@googlegroups.com
You have specified new users in standalone.xml file (user3 and user4) make sure you have them properly defined in application server’s authentication properties. Or simply go back to defaults as they already exist there to make sure it all works. Then update properties for new users.

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.

For more options, visit https://groups.google.com/d/optout.
<Remote_Deploy_Server_Error.docx>

Smith

unread,
Apr 15, 2019, 9:14:17 AM4/15/19
to Drools Setup
Hi Maciej Swiderski,

I have tried as per your suggestion given in the above mail. 

I have tried with the default users(wbadmin). i was able to see the remote server in the workbench. But when i tried to deploy through the deployment unit, i was not able to  create container id for the remote server.

As it was throughing the error like no kieModule jar.

So i manually executed the jar ,which created in current workbench machine on remote machine through the mvn install command.
After that i tried deploying through the deployment unit. Now i am getting it the container created and the state is in Started mode.

But i cannot execute every jar, if i have 10 machines.

Please suggest me how i come across this issue. As it get deployed on to the remote machine without executing any mvn install command on the remote machine.

Please let me any suggestion, so that i can come across this issue.

Thanks
Smith



Smith

unread,
May 20, 2019, 9:41:44 AM5/20/19
to Drools Setup
Hi Maciej Swiderski.


1.Not Able to deploy the generated Jar to remote(Nexus/Artifactory) maven repository automatically:
----------------------------------------------------------------------------------------------------------------------------------------------------
I have installed jbpm7.15, And I have configured the remote maven repository using the setting.xml,
as we canot modifiy the pom in the business central(Kie workbench). The pom is getting generated automatically when i click on deploy button. So we are setting remote repository globally in the setting.xml

Folling is the code snippet in the setting.xml
<settings>
 <localRepository>/home/.m2/repository</localRepository>
<mirrors>
<mirror>
<id>leidaRnd</id>
        <name>leidaRnd-snapshots</name>
      <mirrorOf>*</mirrorOf> 
    </mirror>
 </mirrors>
<profiles>
  <profile>
     <id>allow-snapshots</id>
        <activation>
<activeByDefault>true</activeByDefault>
</activation>
     <repositories>    
      <repository>
         <id>LEIDA_RnD_Client</id>
         <url>http://hostname:8081/artifactory/Test</url>
         <releases><enabled>false</enabled></releases>
         <snapshots><enabled>true</enabled></snapshots>
       </repository>
     </repositories>
   </profile>
 </profiles>
<servers>
  <server>
    <id>leidaRnd</id>
    <username>XXXXXXXXX</username>
    <password>YYYYYYYYY</password>
  </server>
  </servers>
</settings>

In are specifying the above setting.xml in standaalone-full.xml by the following system property.
<property name="kie.maven.settings.custom" value="/opt/KieWorbenchRelaeseTest/standalone/configuration/settings.xml"/>

I have gone as  mentioned in the Jboss Red HAT site. I have tried all the ways mentioned in the document.

Please  provide any solution for this problem as i am running out of time for this task.




Smith

unread,
May 20, 2019, 9:43:32 AM5/20/19
to Drools Setup
Please any one in the community/group can give the solution for this. As it is very urgent for me.

Maciej Swiderski

unread,
May 21, 2019, 1:49:37 AM5/21/19
to drools...@googlegroups.com
to me this looks like missconfiguration of the ids of the repository and server config in settings.xml. Make sure you have these aligned meaning same id used for both.

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.

Smith

unread,
May 21, 2019, 10:32:35 AM5/21/19
to Drools Setup
Hi Maciej Swiderski,

Thank you for your reply, i have changed as per your suggestion. But it did not work.
Please check the changes in my standalone-full.xml(Kie WorkBench with kieserver)
  <system-properties>
        <property name="org.kie.server.id" value="kie-workbench-server"/>
        <property name="org.kie.server.controller" value="http://localhost:8080/jbpm-console/rest/controller"/>
        <property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server"/>
        <property name="org.jbpm.casemgmt.showcase.url" value="/jbpm-casemgmt"/>
        <property name="org.jbpm.ht.admin.group" value="admin"/>
        <property name="org.jbpm.task.cleanup.enabled" value="false"/>
        <property name="org.kie.server.persistence.ds" value="java:jboss/datasources/jBPMDS"/>
        <property name="appformer.experimental.features" value="true"/>
        <property name="org.guvnor.m2repo.dir" value="/opt/KieWorbenchRelaeseTest/standalone/m2repo" />
        <property name="kie.maven.settings.custom" value="/opt/KieWorbenchRelaeseTest/standalone/configuration/settings.xml"/>

    </system-properties>


Please check the attached file which shows the repository locations





RepositoryLocationScreen.png
Message has been deleted

Smith

unread,
Feb 5, 2020, 3:13:24 AM2/5/20
to Drools Setup
Hi Maciej,

I have downloaded jbpm-7.32 version from the official site of jbpm.

I executed the standalone.sh and able to login using the default user  wbadmin/wbadmin and also i am able to deploy the container in the kieserver.

But when i created my own username and password by giving the role admin, kie-server, kiemgt.
I was able to login and import/create the project and when i tried to deploy it.
I was getting the success message. But i am not able to see the container in the server in UI (Execution server page)even when i execute the rest url in browser also i am not able to see the deployed conatiners . 

Following are the system properties i put in the standalone-full.xml file

<system-properties>
        <property name="org.kie.server.id" value="sample-server"/>
        <property name="org.kie.server.controller" value="http://localhost:8080/business-central/rest/controller"/>
    <property name="org.kie.server.controller.user" value="username"/>
    <property name="org.kie.server.controller.pwd" value="password"/>

        <property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server"/>
    <property name="org.kie.server.user" value="username"/>
    <property name="org.kie.server.pwd" value="password"/>

        <property name="org.jbpm.casemgmt.showcase.url" value="/jbpm-casemgmt"/>
        <property name="org.jbpm.ht.admin.group" value="process-admin"/>

        <property name="org.jbpm.task.cleanup.enabled" value="false"/>
        <property name="org.kie.server.persistence.ds" value="java:jboss/datasources/jBPMDS"/>
        <property name="appformer.experimental.features" value="true"/>
        <property name="org.kie.prometheus.server.ext.disabled" value="false"/>
        <property name="kie.keystore.keyStoreURL" value="file:///${jboss.server.config.dir}/jBPMKeystore.jceks"/>
        <property name="kie.keystore.keyStorePwd" value="jBPMKeyStorePassword"/>
        <property name="kie.keystore.key.server.alias" value="jBPMAlias"/>
        <property name="kie.keystore.key.server.pwd" value="jBPMKeyPassword"/>
        <property name="kie.keystore.key.ctrl.alias" value="jBPMAlias"/>
        <property name="kie.keystore.key.ctrl.pwd" value="jBPMKeyPassword"/>
    </system-properties>

In previous version like 7.15 i was not getting this issue. Please let me know how can i proceed.

I have tried 2 ways

1) Providing the username and password in the <system-property> of standalone-full.xml and start the server using below command

nohup sh standalone.sh -b 0.0.0.0  --server-config=standalone-full.xml &

2) Did not provide the username and password in <system-property> of standalone-full.xml and start the server using below command

nohup sh standalone.sh -b 0.0.0.0  --server-config=standalone-
full.xml -Dorg.kie.server.user=username -Dorag.kie.server.pwd=password -Dorg.kie.server.controller.user=username -Dorg.kie.server.controller.pwd=password &

Maciej Swiderski

unread,
Feb 5, 2020, 5:18:33 AM2/5/20
to drools...@googlegroups.com
It might be due to the use of keystore by default which you should update to use different password/users. See docs for how to generate keystore

Alternatively you can just remove the keystore section 
<property name="kie.keystore.keyStoreURL" value="file:///${jboss.server.config.dir}/jBPMKeystore.jceks"/>
        <property name="kie.keystore.keyStorePwd" value="jBPMKeyStorePassword"/>
        <property name="kie.keystore.key.server.alias" value="jBPMAlias"/>
        <property name="kie.keystore.key.server.pwd" value="jBPMKeyPassword"/>
        <property name="kie.keystore.key.ctrl.alias" value="jBPMAlias"/>
        <property name="kie.keystore.key.ctrl.pwd" value="jBPMKeyPassword”/>

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.

Srinivas Rao

unread,
Feb 5, 2020, 6:10:24 AM2/5/20
to drools...@googlegroups.com
Hi Maciej

Thank you for response. I have tried the second option what you suggested.

But i am facing the same issue.


Srinivas Rao

unread,
Feb 5, 2020, 6:17:22 AM2/5/20
to drools...@googlegroups.com
And also i see the below warning message in the logs

2020-02-05 06:15:37,116 WARN  [org.kie.server.controller.impl.KieServerControllerImpl] (default task-7) Server id sample-server capabilities expected [PROCESS, RULE, PLANNING] but there was missing [PROCESS]
2020-02-05 06:15:37,116 WARN  [org.kie.server.controller.rest.RestKieServerControllerImpl] (default task-7) Server with id 'sample-server' failed to connect

Maciej Swiderski

unread,
Feb 5, 2020, 6:56:45 AM2/5/20
to drools...@googlegroups.com
Remove .niogit folder from WILDFLY_HOME/bin and restart server

Maciej

Srinivas Rao

unread,
Feb 5, 2020, 8:54:52 AM2/5/20
to drools...@googlegroups.com
Hi Maciej,

Thank you so much for your response. I have solved the issue by executing  the below command.

nohup sh standalone.sh -b 0.0.0.0 --server-config=standalone-full.xml -Dorg.kie.server.user=username -Dorg.kie.server.pwd=password -Dorg.kie.server.controller.user=username -Dorg.kie.server.controller.pwd=password -Dorg.kie.server.id=wildfly-kieserver &

wildfly-kieserver.xml was created in bin folder and it worked.

Previous i have mention the below proeprty  in the standalone-full.xml file.
<property name="org.kie.server.id" value="sample-server"/>

which was not able to register and create sample-server.xml in bin folder. So i was not able to see the container in the kie server after deployment.

Thank you so much for the response.


Srinivas Rao

unread,
Feb 5, 2020, 9:33:21 AM2/5/20
to drools...@googlegroups.com
Hi Maciej,

Now it is working even if am adding in system properties.
<property name="org.kie.server.id" value="Kie Server Name"/>

Srinivas Rao

unread,
Feb 5, 2020, 9:34:57 AM2/5/20
to drools...@googlegroups.com
This is working only with alternate way which you suggested in the previous mail.

Reply all
Reply to author
Forward
0 new messages