KIE server in Spring Boot - Sync Issue with business-central

1,102 views
Skip to first unread message

neelanjan banerjee

unread,
Apr 16, 2019, 5:45:22 AM4/16/19
to jbpm-...@googlegroups.com
Hi,

I am using kie-server with sping boot in development mode and connected to a business-central server.

But Sync between business-central and spring-boot kie-server is not happening.
Getting a 401 error in the kie-server spring-boot logs :-

Spring Boot Logs :-

[ntrollerConnect] o.k.s.s.i.c.DefaultRestControllerImpl    : Exception encountered while syncing with controller at http://localhost:8080/business-central/rest/controller/server/spring-boot-rhbpm-application-service-dev error Error while sending PUT request to http://localhost:8080/business-central/rest/controller/server/spring-boot-rhbpm-application-service-dev response code 401 


Business-central logs :-

  [org.jbpm.workbench.ks.integration.KieServerDataSetManager] (Thread-214) Timeout while trying to register query definitions on 'spring-boot-rhbpm-application-service-dev@localhost:8090' 

Any help on this would be appreciated.

Regards,
Neelanjan   
   


Maciej Swiderski

unread,
Apr 17, 2019, 5:39:02 AM4/17/19
to neelanjan banerjee, jbpm-...@googlegroups.com
Looks like mismatch with user/roles of business central and your spring boot app. Make sure that default user is there (kieserver/kieserver1! wilh role kie-server)

Maciej

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/CAERvgXfw-s2R_UHL0woKTO9WfyASv%2BH%2Bhpr3fLB9JirJnZfr-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

neelanjan banerjee

unread,
Apr 18, 2019, 8:07:32 AM4/18/19
to Maciej Swiderski, jbpm-...@googlegroups.com
Thanks a  lot Maciej. This worked. In case I want to user another user name/password what other configuration change is required?
As I had defined the associated configuration in standalone.xml

        <property name="org.kie.server.controller.user" value="sysAdmin"/>
        <property name="org.kie.server.controller.pwd" value="abc-2019"/>

Regards,
Neelanjan

Donato Marrazzo

unread,
Apr 22, 2019, 2:47:16 AM4/22/19
to jBPM Usage

In the business application, you can configure the user/password to connect with the controller (Business Central) through the following system properties:

org.kie.server.controller.user=<user>
org.kie.server.controller.pwd=<password>

There are two ways to pass these system properties:

  • edit the server xml (e.g. business-application-service-dev.xml)

    <config-item>
        <name>org.kie.server.controller.user</name>
        <value>actual_user</value>
        <type>java.lang.String</type>
    </config-item>
    <config-item>
        <name>org.kie.server.controller.pwd</name>
        <value>actual_password</value>
        <type>java.lang.String</type>
    </config-item>
    
  • pass the properties in the java command line, edit launch-dev.sh

    java -Dspring.profiles.active=dev -Dorg.kie.server.controller.user=<user> -Dorg.kie.server.controller.pwd=<password> -jar "$executable"

On Thursday, April 18, 2019 at 2:07:32 PM UTC+2, neelanjan banerjee wrote:
Thanks a  lot Maciej. This worked. In case I want to user another user name/password what other configuration change is required?
As I had defined the associated configuration in standalone.xml

        <property name="org.kie.server.controller.user" value="sysAdmin"/>
        <property name="org.kie.server.controller.pwd" value="abc-2019"/>

Regards,
Neelanjan

On Wed, Apr 17, 2019 at 3:09 PM Maciej Swiderski <swiders...@gmail.com> wrote:
Looks like mismatch with user/roles of business central and your spring boot app. Make sure that default user is there (kieserver/kieserver1! wilh role kie-server)

Maciej

On 16 Apr 2019, at 11:45, neelanjan banerjee <nelban...@gmail.com> wrote:

Hi,

I am using kie-server with sping boot in development mode and connected to a business-central server.

But Sync between business-central and spring-boot kie-server is not happening.
Getting a 401 error in the kie-server spring-boot logs :-

Spring Boot Logs :-

[ntrollerConnect] o.k.s.s.i.c.DefaultRestControllerImpl    : Exception encountered while syncing with controller at http://localhost:8080/business-central/rest/controller/server/spring-boot-rhbpm-application-service-dev error Error while sending PUT request to http://localhost:8080/business-central/rest/controller/server/spring-boot-rhbpm-application-service-dev response code 401 


Business-central logs :-

  [org.jbpm.workbench.ks.integration.KieServerDataSetManager] (Thread-214) Timeout while trying to register query definitions on 'spring-boot-rhbpm-application-service-dev@localhost:8090' 

Any help on this would be appreciated.

Regards,
Neelanjan   
   



--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-...@googlegroups.com.

neelanjan banerjee

unread,
Apr 22, 2019, 5:23:30 AM4/22/19
to Donato Marrazzo, jBPM Usage
Thanks a lot... This works.

Regards,
Neelanjan

To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.

To post to this group, send email to jbpm-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages