Questions asked by tuannvhttps://answers.axonivy.com/questions/asked-by/1214/tuannv/?type=rssQuestions asked by <a href="/users/1214/tuannv" >tuannv</a>enWed, 27 Nov 2019 23:05:21 -0500how to work with database in Axon Ivy 7.4.0 use Hibernate for modelinghttps://answers.axonivy.com/questions/4217/how-to-work-with-database-in-axon-ivy-7-4-0-use-hibernate-for-modeling<p>Hi Ivy team,</p> <p>I've used axon ivy 7.3.1 with standard persistency library for CRUD app, every thing is ok so does the Axon ivy 7.4.0 still work with persistence lib or use other way to connect with database ?</p> <p>if not then how to work with 7.4.0 with hibernate model if it still can work with that lib , can you give a step to do that</p> <p>I tried configured in pom.xml file: </p> <pre><code>&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.axonivy&lt;/groupId&gt; &lt;artifactId&gt;persistence&lt;/artifactId&gt; &lt;version&gt;0.0.1&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre> <hr> <p>use maven build I get a error:</p> <p><strong><em>Could not resolve dependencies for project my.app:my-app:iar:1.0.0-SNAPSHOT: Failure to find com.axonivy:persistence:jar:0.0.1 in <a href="https://repo.maven.apache.org/maven2">https://repo.maven.apache.org/maven2</a> was cached in the local repository</em></strong></p> <p>so How I do fix it ?</p> <p>Thank you guys</p>tuannvWed, 27 Nov 2019 23:05:21 -0500https://answers.axonivy.com/questions/4217/how-to-work-with-database-in-axon-ivy-7-4-0-use-hibernate-for-modelingivyAxon ivy Docker Java referenced class not found exceptionhttps://answers.axonivy.com/questions/4203/axon-ivy-docker-java-referenced-class-not-found-exception<p>Hi Ivy team,</p> <p>I use axon ivy version 7.3.1(Designer and Engine), maven 3.6.2 I've create a dialog form with "add new" button, when user click that button, it will call a method in Java class.</p> <p>after run and build with maven, I have a <strong>"xxx-app-1.0.0-SNAPSHOT.iar"</strong>. </p> <p>I copy this file to deploy folder of <strong>"AxonIvyEngine7.3.1.1904101154_All_x64"</strong> and run Engine and then run web app . everything is ok when I click "add new" button</p> <p>But when I copy that file :<strong>"xxx-app-1.0.0-SNAPSHOT.iar"</strong> in docker file :</p> <pre><code> FROM axonivy/axonivy-engine:7.3.1 LABEL maintainer="xxxx@abc.com" COPY --chown=ivy:ivy target/xxx-app-1.0.0-SNAPSHOT.iar deploy/ ( this command will copy xxx-app-1.0.0-SNAPSHOT.iar to deploy folder on container ) EXPOSE 8080 </code></pre> <p>and then I create a docker-compose file </p> <pre><code>version: '3.3' services: axonivy-engine: image: my-app-test build: . ports: - 8082:8080 restart: always </code></pre> <ul> <li>Run docker-compose up</li> <li>Run web app and then click "add new" button. I've get a errors:</li> </ul> <p>Errorrs:</p> <pre><code>Caused by: ch.ivyteam.ivy.scripting.exceptions.classDef.ReferencedClassNotFoundException: Referenced class 'com/axonivy/persistence/beans/GenericEntity' not found for class 'controller.AddNew' </code></pre> <p>I don't why with same a file <strong>IAR</strong> but when I run it on local it run well and doesn't through any errors .But after run from <strong>docker container</strong> the UI still appear ok, but when user click button, it call method in java class then through errors</p> <p>I've check in zip file on <strong>"work"</strong> folder in Engine in docker container it still exist all file java class</p> <p>can you guy help me please </p> <p>my iar file:</p> <p><a href="https://answers.axonivy.com/upfiles/my-app-1.0.0-SNAPSHOT.png">link text</a></p>tuannvWed, 27 Nov 2019 02:44:21 -0500https://answers.axonivy.com/questions/4203/axon-ivy-docker-java-referenced-class-not-found-exceptiondockerI can't integrated axon-ivy engine with window nano server code in a image on dockerhttps://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker<p>Dear Ivy team, </p> <p>I use window 10 and installed Docker tool. <img alt="alt text" src="https://answers.axonivy.com/upfiles/KjGEs_baJ1saX.png"></p> <p>Because our axon ivy's project use <strong>axon-ivy engine</strong> 7.0.1. it have some <strong>lib call from window's library</strong>. So I have to create a image can run on <strong>linux container</strong> and still call lib of window OS success</p> <p>I use Docker to build a image include axon-ivy engine and window core in docker hub:</p> <p>my docker file is:</p> <pre><code>FROM mcr.microsoft.com/windows/nanoserver:1903 FROM dgauch/axonivy-engine:7.0.1 Expose 8082 </code></pre> <p>I use one of window docker hubs : 1. microsoft/windowscore 2. microsoft/nanoserver</p> <p>But I only can run "<strong>dgauch/axonivy-engine</strong>" if I switched to docker linux container then can't run mcr.microsoft.com/windows/servercore:ltsc2019 there is a error: no matching manifest for linux/amd64 in the manifest list entries.</p> <p>When I switched to window container at docker tool desktop. I can run mcr.microsoft.com/windows/nanoserver:1909 is succesful.</p> <p>but there are error when run docker for <strong>dgauch/axonivy-engine</strong>. There are a error: image operating system "linux" cannot be used on this platform</p> <p>How can I do integrate two image axon-ivy engine and window core to a image, that can run every where on linux or window system ?</p>tuannvWed, 20 Nov 2019 02:57:11 -0500https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-dockerdockerDocker container can't apply IAR newesthttps://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest<p>Hi Ivy Team.</p> <p>I'm using axon ivy designer and engine. both of them user version 7.4.0 I create a dialog mytest and deploy int to folder deloyed in axon iv deploy It's success</p> <p>but now I use docker to create a docker file and and then create a docker container base on that docker image docker ifle:</p> <pre><code>FROM axonivy/axonivy-engine:7.4.0 MAINTAINER Vantuan, tuan.nguyen@axonactive.com RUN mkdir -p E:/Axon7.4/AxonIvyDesigner7.4.0.1909161423_Windows_x64/workspace/mytest/Portal/ RUN chmod 775 deploy ADD target/*.iar E:/Axon7.4/AxonIvyDesigner7.4.0.1909161423_Windows_x64/workspace/mytest/Portal/ ADD target/mytest-1.0.0-SNAPSHOT.iar deploy EXPOSE 8080 </code></pre> <p>after create docker container I run on browser, it only show engine server example, don't show <code>mytest.iar</code></p> <p>with error:</p> <pre><code>axonivy-engine_1 | [ 75%] Background Jobs Stopper started [0ms] axonivy-engine_1 | 01:59:33.338 ERROR [....ivy.deployment.internal.auto.scanner] [Deployment Queue] axonivy-engine_1 | '/var/lib/axonivy-engine-7x/deploy/mytest-1.0.0-SNAPSHOT.iar' not deployed. This file is not writable. </code></pre>tuannvWed, 06 Nov 2019 22:02:32 -0500https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newestdocker