Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1030

Kie server is not able to resolve kjar from Workbench internal Maven repo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • None
    • 7.4.0.GA
    • Kie-Server
    • None
      • rhdm-7.4.0-decision-central-eap7-deployable.zip
      • rhdm-7.4.0-kie-server-ee8.zip
      • rhdm-7.4.0-maven-repository.zip
        Java 1.8
        EAP 7.2.0
    • Hide

      Create two folders named machine1 and machine2, to simulate two different envs. Create a maven folder to be used by each of them:
      mkdir machine1/maven
      mkdir machine2/maven

      Install EAP 7.2.0 on both
      unzip ~/opt/clean/jboss-eap-7.2.0.zip -d machine1
      unzip ~/opt/clean/jboss-eap-7.2.0.zip -d machine2

      Unzip offline maven repo of 7.4.0 in machine1 and machine2
      unzip ~/opt/clean/rhdm-7.4.0-maven-repository.zip -d machine1/maven/
      unzip ~/opt/clean/rhdm-7.4.0-maven-repository.zip -d machine2/maven/}}

      Install *Decision Central on machine1:*
      unzip ~/opt/clean/rhdm-7.4.0-decision-central-eap7-deployable.zip -d machine1/

      Configure offset port in files of decision-central.war in machine1:
      vim machine1/jboss-eap-7.2/standalone/deployments/decision-central.war/WEB-INF/classes/datasource-management.properties
      datasource.management.wildfly.port=10090

      vim machine1/jboss-eap-7.2/standalone/deployments/decision-central.war/WEB-INF/classes/security-management.properties
      org.uberfire.ext.security.management.wildfly.cli.port=10090

      Install Decision Server on machine2:
      unzip ~/opt/clean/rhdm-7.4.0-kie-server-ee8.zip -d machine2/jboss-eap-7.2/standalone/deployments/

      Download attached zips and extracted them respectively inside machine1 and machine1. It contains the settings.xml file along with the standalone-full.xml and application-.properties files.*

      attached folder structure from machine1 and machine2 to facilitate the reproducer.
      ○ → tree -a machine1-files/
      machine1-files/
      ├── jboss-eap-7.2
      │   └── standalone
      │   └── configuration
      │   ├── application-roles.properties
      │   ├── application-users.properties
      │   └── standalone-full.xml
      ├── maven
      │   └── jboss-rhba-7.4.0.GA-maven-repository
      │   └── settings.xml
      └── niogit

      6 directories, 4 files
      Start Decision Central:
      machine1/jboss-eap-7.2/bin/standalone.sh -c standalone-full.xml -Djboss.socket.binding.port-offset=100

      Start Decision Server:
      machine2/jboss-eap-7.2/bin/standalone.sh -c standalone-full.xml

      User: rhdmadmin / rhdmadmin@1

      Create an empty project in Workbench, deploy it into connected Kie server.

      Error is thrown and Kie server doesn't resolve container.

      Show
      Create two folders named machine1 and machine2, to simulate two different envs. Create a maven folder to be used by each of them: mkdir machine1/maven mkdir machine2/maven Install EAP 7.2.0 on both unzip ~/opt/clean/jboss-eap-7.2.0.zip -d machine1 unzip ~/opt/clean/jboss-eap-7.2.0.zip -d machine2 Unzip offline maven repo of 7.4.0 in machine1 and machine2 unzip ~/opt/clean/rhdm-7.4.0-maven-repository.zip -d machine1/maven/ unzip ~/opt/clean/rhdm-7.4.0-maven-repository.zip -d machine2/maven/}} Install *Decision Central on machine1:* unzip ~/opt/clean/rhdm-7.4.0-decision-central-eap7-deployable.zip -d machine1/ Configure offset port in files of decision-central.war in machine1: vim machine1/jboss-eap-7.2/standalone/deployments/decision-central.war/WEB-INF/classes/datasource-management.properties datasource.management.wildfly.port=10090 vim machine1/jboss-eap-7.2/standalone/deployments/decision-central.war/WEB-INF/classes/security-management.properties org.uberfire.ext.security.management.wildfly.cli.port=10090 Install Decision Server on machine2: unzip ~/opt/clean/rhdm-7.4.0-kie-server-ee8.zip -d machine2/jboss-eap-7.2/standalone/deployments/ Download attached zips and extracted them respectively inside machine1 and machine1. It contains the settings.xml file along with the standalone-full.xml and application- .properties files.* attached folder structure from machine1 and machine2 to facilitate the reproducer. ○ → tree -a machine1-files/ machine1-files/ ├── jboss-eap-7.2 │   └── standalone │   └── configuration │   ├── application-roles.properties │   ├── application-users.properties │   └── standalone-full.xml ├── maven │   └── jboss-rhba-7.4.0.GA-maven-repository │   └── settings.xml └── niogit 6 directories, 4 files Start Decision Central: machine1/jboss-eap-7.2/bin/standalone.sh -c standalone-full.xml -Djboss.socket.binding.port-offset=100 Start Decision Server: machine2/jboss-eap-7.2/bin/standalone.sh -c standalone-full.xml User: rhdmadmin / rhdmadmin@1 Create an empty project in Workbench, deploy it into connected Kie server. Error is thrown and Kie server doesn't resolve container.

      When user tries to create a project in Workbench and deploy it into Kie server connected to its internal Maven repository, the deployment fails. With error:

      17:56:39,542 WARN [org.appformer.maven.integration.MavenRepository] (default task-1) Unable to resolve artifact: com.myspace:test:pom:1.0.0-SNAPSHOT
      17:56:39,542 ERROR [org.kie.server.services.impl.KieServerImpl] (default task-1) Error creating container 'test_1.0.0-SNAPSHOT' for module 'com.myspace:test:1.0.0-SNAPSHOT': java.lang.RuntimeException: Cannot find KieModule: com.myspace:test:1.0.0-SNAPSHOT

      The workaround of removing the `<url-pattern>/maven2/*</url-pattern>` from security-constraint in Workbench web.xml did not work.

        1. dc-machine1-files.tgz
          8 kB
          Karina Varela
        2. ds-machine2-files.tgz
          8 kB
          Karina Varela

              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              kvarela@redhat.com Karina Varela (Inactive)
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: