[JBoss] Business Central not showing Deployment Unit

Discussão em 'StackOverflow' iniciado por Stack, Julho 22, 2021.

  1. Stack

    Stack Membro Participativo

    I'm deploying KJAR to kie server with REST API. I'm using jboss/jbpm-server-full docker image with default configuration to start the kie server and business central.

    curl -u "wbadmin:wbadmin" -X PUT -H "Content-Type: application/xml" -d '@/opt/jboss/kie_deploy_msg.xml' "http://localhost:8080/kie-server/services/rest/server/containers/pensionpayment"

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <kie-container>
    <config-items>
    <itemName>RuntimeStrategy</itemName>
    <itemValue>SINGLETON</itemValue>
    <itemType>java.lang.String</itemType>
    </config-items>
    <config-items>
    <itemName>MergeMode</itemName>
    <itemValue>MERGE_COLLECTIONS</itemValue>
    <itemType>java.lang.String</itemType>
    </config-items>
    <config-items>
    <itemName>KBase</itemName>
    <itemValue></itemValue>
    <itemType>java.lang.String</itemType>
    </config-items>
    <config-items>
    <itemName>KSession</itemName>
    <itemValue></itemValue>
    <itemType>java.lang.String</itemType>
    </config-items>
    <!-- This is where you define your kjar as an artifactid so that
    the kie-server can find and deploy it. -->
    <release-id>
    <artifact-id>pensionpayment</artifact-id>
    <group-id>pensionpayment</group-id>
    <version>0.1.0</version>
    </release-id>
    <scanner poll-interval="5000" status="STARTED"/>
    </kie-container>



    The deployment succeeds, and Process Definitions and Instances shows them correctly. Engine is functioning correctly.

    However, the business central deployments is empty, and when I try to click the remote server, I get an error.

    [​IMG]

    | Uncaught exception: CDI Event exception: CommandType=CDIEvent, BeanType=org.kie.server.controller.api.model.events.ServerInstanceUpdated, ToSubject=cdi.event:eek:rg.kie.server.controller.api.model.events.ServerInstanceUpdated, BeanReference=ServerInstanceUpdated{serverInstance=ServerInstanceKey{serverInstanceId='sample-server@localhost:8080', serverName='sample-server@localhost:8080', serverTemplateId='sample-server', url='http://localhost:8080/kie-server/services/rest/server'}} sent to [unavailable] Caused by: Parameter named 'value' should be not null! | Uncaught exception: CDI Event exception: CommandType=CDIEvent, BeanType=org.kie.server.controller.api.model.events.ServerInstanceUpdated, ToSubject=cdi.event:eek:rg.kie.server.controller.api.model.events.ServerInstanceUpdated, BeanReference=ServerInstanceUpdated{serverInstance=ServerInstanceKey{serverInstanceId='sample-server@localhost:8080', serverName='sample-server@localhost:8080', serverTemplateId='sample-server', url='http://localhost:8080/kie-server/services/rest/server'}} sent to [unavailable] Caused by: Parameter named 'value' should be not null! | Uncaught exception: CDI Event exception: CommandType=CDIEvent, BeanType=org.kie.server.controller.api.model.events.ServerInstanceUpdated, ToSubject=cdi.event:eek:rg.kie.server.controller.api.model.events.ServerInstanceUpdated, BeanReference=ServerInstanceUpdated{serverInstance=ServerInstanceKey{serverInstanceId='sample-server@localhost:8080', serverName='sample-server@localhost:8080', serverTemplateId='sample-server', url='http://localhost:8080/kie-server/services/rest/server'}} sent to [unavailable] Caused by: Parameter named 'value' should be not null!


    This warning also shows up in the server log

    08:39:01,007 WARN [org.kie.server.common.KeyStoreHelperUtil] (Thread-196) Unable to load key store. Using password from configuration

    Why the deployment and remote server isn't showing up, and how to fix it?

    Here is relevant sample from my Dockerfile

    RUN mkdir -p "${HOME}/.m2/repository/pensionpayment/pensionpayment/0.1.0"
    COPY --chown=jboss:jboss kie.m2.settings.xml /opt/jboss/.m2/settings.xml
    COPY --chown=jboss:jboss target/pensionpayment.jar /opt/jboss/.m2/repository/pensionpayment/pensionpayment/0.1.0/pensionpayment-0.1.0.jar
    COPY --chown=jboss:jboss pom.xml /opt/jboss/.m2/repository/pensionpayment/pensionpayment/0.1.0/pensionpayment-0.1.0.pom
    COPY --chown=jboss:jboss kie_deploy_msg.xml /opt/jboss/

    RUN nohup bash -c "/opt/jboss/wildfly/bin/start_jbpm-wb.sh &" && \
    ( tail --retry -f /opt/jboss/wildfly/standalone/log/server.log & ) | sed '/Initialize deployments task finished successfully/ q' && \
    echo "Deploying pensionpayment.jar..." && \
    curl -u "wbadmin:wbadmin" -X PUT -H "Content-Type: application/xml" -d '@/opt/jboss/kie_deploy_msg.xml' "http://localhost:8080/kie-server/services/rest/server/containers/pensionpayment"

    Continue reading...

Compartilhe esta Página