Imix workflow deploy with  wildfly

Version 2
                     Imix workflow deploy with  wildfly-10.1.0.Final
    =================================================

      step 1 : https://github.com/imixs/imixs-jsf-example

     

      step 2 : mvn clean install

     

      step 3 : datasource - jar : mysql-5.1.43.jar

     

    create a mysql database name is : workflow_db

     

    <datasource jta="true" jndi-name="java:/jdbc/workflow-db" pool-name="workflow-db" enabled="true" use-ccm="true">
    <connection-url>jdbc:mysql://localhost:3306/workflow_db</connection-url>
    <driver>mysql</driver>
    <pool>
    <min-pool-size>2</min-pool-size>
    <max-pool-size>150</max-pool-size>
    </pool>
    <security>
    <user-name>root</user-name>
    <password>root</password>
    </security>
    <validation>
    <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
    <validate-on-match>true</validate-on-match>
    <background-validation>false</background-validation>
    </validation>
    </datasource>

      step 4 : Migration hibernate to Eclipselink : jar : eclipselink-2.5.2.jar

     

     

    add those line into standalone.xml file
    </extensions>
    <system-properties>
    <property name="eclipselink.archive.factory" value="org.jipijapa.eclipselink.JBossArchiveFactoryImpl"/>
    </system-properties>
    <management>

     

    ----------------------------------------------------------------------------------------------------------------------------

     

    <module xmlns="urn:jboss:module:1.3" name="org.eclipse.persistence">
    <properties>
    <property name="jboss.api" value="private"/>
    </properties>

     

    <resources>
    <resource-root path="jipijapa-eclipselink-10.1.0.Final.jar"/>
    <resource-root path="eclipselink-2.5.2.jar">
    <filter>
    <exclude path="javax/**" />
    </filter>
    </resource-root>
    </resources>

     

    <dependencies>
    <module name="asm.asm"/>
    <module name="javax.api"/>
    <module name="javax.annotation.api"/>
    <module name="javax.enterprise.api"/>
    <module name="javax.persistence.api"/>
    <module name="javax.transaction.api"/>
    <module name="javax.validation.api"/>
    <module name="javax.xml.bind.api"/>
    <module name="org.antlr"/>
    <module name="org.dom4j"/>
    <module name="org.javassist"/>
    <module name="org.jboss.as.jpa.spi"/>
    <module name="org.jboss.logging"/>
    <module name="org.jboss.vfs"/>
    </dependencies>

    </module>

     

      step 5 : security-domain

     

    section 1 : roles (readint this section 1 just , no need to do any thing here.)

        

    org.imixs.ACCESSLEVEL.NOACCESS
    org.imixs.ACCESSLEVEL.READACCESS
    org.imixs.ACCESSLEVEL.AUTHORACCESS
    org.imixs.ACCESSLEVEL.EDITORACCESS
    org.imixs.ACCESSLEVEL.MANAGERACCESS
    section 2 : RoleMapping : imixsrealm.properties

        

    IMIXS-WORKFLOW-Reader=org.imixs.ACCESSLEVEL.READERACCESS
      IMIXS-WORKFLOW-Author=org.imixs.ACCESSLEVEL.AUTHORACCESS
      IMIXS-WORKFLOW-Editor=org.imixs.ACCESSLEVEL.EDITORACCESS
      IMIXS-WORKFLOW-Manager=org.imixs.ACCESSLEVEL.MANAGERACCESS

          section 3 :

          create a file : sampleapp-roles.properties

       

          masum=IMIXS-WORKFLOW-Manager

          sadek=IMIXS-WORKFLOW-Editor

          rajib=IMIXS-WORKFLOW-Author

          ronny=IMIXS-WORKFLOW-Reader

       

       

         section 4 :

       create a file : sampleapp-users.properties
       masum=password1
       sadek=password2
       rajib=password3
       ronny=password4
       guest=password5

     

        

        

    section 3 :  UsersRolesLoginModule is a simple login module that supports multiple users and
       user roles loaded from Java properties files
       <security-domain name="imixsrealm">
    <authentication>
    <login-module code="UsersRoles" flag="required">
    <module-option name="usersProperties" value="${jboss.server.config.dir}/sampleapp-users.properties"/>
    <module-option name="rolesProperties" value="${jboss.server.config.dir}/sampleapp-roles.properties"/>
    </login-module>
    <login-module code="RoleMapping" flag="required">
    <module-option name="rolesProperties" value="file:${jboss.server.config.dir}/imixsrealm.properties"/>
    <module-option name="replaceRole" value="false"/>
    </login-module>
    </authentication>
    </security-domain>

     

     

     

      step 6 : Mail config

     

       <subsystem xmlns="urn:jboss:domain:mail:2.0">

           <mail-session name="default" jndi-name="java:jboss/mail/Default">

           <smtp-server outbound-socket-binding-ref="mail-smtp"/>

           </mail-session>

           <mail-session name="java:/mail/org.imixs.workflow.mail" jndi-name="java:/mail/org.imixs.workflow.mail"/>

        </subsystem>

     

    step 7 : run wildy standalone.bat and put url and login

     

           http://localhost:8080/workflow

          

      step 8 : error

     

      Caused by: org.imixs.workflow.exceptions.InvalidAccessException: no segments* file found in MMapDirectory@E:\2017\Dev- java EE 8\setup\wildfly-10.1.0.Final\bin\imixs-workflow-index lockFactory=org.apache.lucene.store.NativeFSLockFactory@569f689f: files: []