0 Replies Latest reply on Aug 16, 2017 2:22 AM by Mostafa Farhadi

    use custom data base on KIE-workbench  7.0.0.Final

    Mostafa Farhadi Newbie

      Hi team

      i installed KIE-workbench  7.0.0.Final on wildfly 10 .server

      as you know by default  KIE workbench using H2 database . i am going to use PostgreSQL .step by step like hear

      1 . download postgresql-42.1.4 .jar and putted on path from wildfly server  --->  modules/ sysytem/layers/base/org/postgresql/main/  (hear ) + module.xml

      2 - changed stanelone.xml file like hear

      <datasources>

                      <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">

                          <connection-url>jdbc:postgresql://127.0.0.1:5432/jbpm</connection-url>

                          <driver>postgresql</driver>

                          <security>

                              <user-name>postgres</user-name>

                              <password>postgres</password>

                          </security>

                      </datasource>

                      <drivers>

                          <driver name="postgresql" module="org.postgresql">

                              <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>

                          </driver>

                      </drivers>

                  </datasources>

      3- copy above part to  to some file on wildfly server such as domain.xml , host.xml , host-master.xml  ,host-slave.xml and appclient.xml

      4- create user both (admin server and admin app ) with command ./adduser

      5 - run server with ./standalone.sh

      6 - downloaded  KIE-workbench  7.0.0.Final

      -7 changed stanelone.xml  from source code like part 2

      8 - got dependency by maven and built  it successfully

      9- deployed  kie-wb-7.0.0.Final-wildfly10.war  file on server

      Unfortunately i get some error  such as

      02:30:44,197 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/itorders/src/main/resources/META-INF/kmodule.xml: package could not be resolved.

      02:30:46,328 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/package-names-white-list: package could not be resolved.

      02:30:46,374 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/pom.xml: package could not be resolved.

      02:30:46,438 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/project.imports: package could not be resolved.

      02:30:46,532 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/project.repositories: package could not be resolved.

      02:30:47,495 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 1) KieModule was added: MemoryKieModule[releaseId=mortgages:mortgages:1.0.0-SNAPSHOT]

      02:30:48,028 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/src/main/resources/META-INF/kmodule.xml: package could not be resolved.

      02:30:51,439 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/package-names-white-list: package could not be resolved.

      02:30:51,525 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/pom.xml: package could not be resolved.

      02:30:51,619 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/project.imports: package could not be resolved.

      02:30:51,715 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/project.repositories: package could not be resolved.

      02:30:52,304 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 1) KieModule was added: MemoryKieModule[releaseId=optacloud:optacloud:1.0.0-SNAPSHOT]

      02:30:52,825 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/src/main/resources/META-INF/kmodule.xml: package could not be resolved.

      02:30:53,475 INFO  [org.uberfire.ext.metadata.io.BatchIndex] (EJB default - 1) Completed indexing of default://master@examples-.kie-wb-playground/

      finally .the  major issue is that when i created project and add process after that i click on button (build and deploy)  every thing is good . and i get successful message .

      but when i go to process defecation menu . OOPs    there arent any process

      ******************************************************************************************

      i researched from   KIE-workbench  and i got it

      in  6.5 version it used persistence.xml file for work to database . but in  7.0.0.0.Final that file is not exist

      please help me for use custom data base like (PostgreSQL) on KIE-workbench  7.0.0.Final

      thanks allot 

       

       

       

       

       

      02:30:44,197 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/itorders/src/main/resources/META-INF/kmodule.xml: package could not be resolved.02:30:46,328 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/package-names-white-list: package could not be resolved.02:30:46,374 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/pom.xml: package could not be resolved.02:30:46,438 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/project.imports: package could not be resolved.02:30:46,532 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/project.repositories: package could not be resolved.02:30:47,495 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 1) KieModule was added: MemoryKieModule[releaseId=mortgages:mortgages:1.0.0-SNAPSHOT]02:30:48,028 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/mortgages/src/main/resources/META-INF/kmodule.xml: package could not be resolved.02:30:51,439 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/package-names-white-list: package could not be resolved.02:30:51,525 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/pom.xml: package could not be resolved.02:30:51,619 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/project.imports: package could not be resolved.02:30:51,715 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/project.repositories: package could not be resolved.02:30:52,304 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 1) KieModule was added: MemoryKieModule[releaseId=optacloud:optacloud:1.0.0-SNAPSHOT]02:30:52,825 ERROR [org.kie.workbench.common.screens.impl.LibraryIndexer] (EJB default - 1) Unable to index default://master@examples-.kie-wb-playground/optacloud/src/main/resources/META-INF/kmodule.xml: package could not be resolved.02:30:53,475 INFO  [org.uberfire.ext.metadata.io.BatchIndex] (EJB default - 1) Completed indexing of default://master@examples-.kie-wb-playground/