Questions Tagged With deploymenthttps://answers.axonivy.com/tags/deployment/?type=rssquestions tagged <span class="tag">deployment</span>enThu, 18 Jun 2020 08:37:11 -0400Deployment errorhttps://answers.axonivy.com/questions/4594/deployment-error<p>When trying to deploy the application on the engine we encountered following error:</p> <p>java.lang.ClassCastException: ch.ivyteam.ivy.application.internal.globalvariable.GlobalVariableConfig cannot be cast to ch.ivyteam.ivy.application.internal.GlobalVariable</p> <p>Can ayone help?</p>FX GarageThu, 18 Jun 2020 08:37:11 -0400https://answers.axonivy.com/questions/4594/deployment-errordeploymentPrinters not found when deployedhttps://answers.axonivy.com/questions/4387/printers-not-found-when-deployed<p>When searching for printers with PrinterJob.lookupPrintServices(); everthing works fine locally in the Designer. After deploying the application, it only finds "Microsoft XPS Document Writer". I was thinking maybe the printers aren't installed on the server, but they are. When installing the Designer on the Server, everything works fine too.</p> <p>I couldn't really find any helpful information about this exact problem/behavior. I've tried to change the Ivy Engine Service user from the local user to the one I used to login to the server, but that didnt help either.</p>Marco KlauenböschThu, 13 Feb 2020 04:00:33 -0500https://answers.axonivy.com/questions/4387/printers-not-found-when-deployedenginedesignerdeploymentMultiple deploy process modules by a single zip filehttps://answers.axonivy.com/questions/4306/multiple-deploy-process-modules-by-a-single-zip-file<p>Dear Ivy team. At the moment, we're using Ivy v 7.0.11 and we need to deploy multiple process modules to the specific Ivy application by using "File based deployment" approach (<a href="http://developer.axonivy.com/doc/7.0.11/EngineGuideHtml/administration.html#administration.deployment).">http://developer.axonivy.com/doc/7.0.11/EngineGuideHtml/administration.html#administration.deployment).</a> It worked well when we only deploy single iar file. But when we create a zip file that contains multiple iars file inside, it got the problem.</p> <p>Our zip file content: <img alt="alt text" src="http://cloud.screenpresso.com/NDJXe/2020-01-02_13h42_30.png"></p> <p>Deployment error log:</p> <pre><code>Fatal error during deploying of project 'app.zip' to application 'Application' java.lang.NullPointerException at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.isLibraryMissing(ProjectDeploymentValidator.java:165) at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.prepareIvyProject(ProjectDeploymentValidator.java:146) at ch.ivyteam.ivy.deployment.ProjectDeploymentValidator.prepareIvyProject(ProjectDeploymentValidator.java:82) at ch.ivyteam.ivy.deployment.internal.auto.AutoProjectDeployer.validate(AutoProjectDeployer.java:81) at ch.ivyteam.ivy.deployment.internal.auto.AutoProjectDeployer.deploy(AutoProjectDeployer.java:46) at ch.ivyteam.ivy.deployment.internal.auto.DeploymentDirectoryScanner.handleFile(DeploymentDirectoryScanner.java:85) at ch.ivyteam.ivy.deployment.internal.auto.DeploymentDirectoryScanner.fileCreated(DeploymentDirectoryScanner.java:75) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.handleEvent(ScannerThread.java:191) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.scanForFiles(ScannerThread.java:164) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1310) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.run(ScannerThread.java:144) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread.access$0(ScannerThread.java:140) at ch.ivyteam.ivy.deployment.internal.auto.ScannerThread$1.run(ScannerThread.java:134) </code></pre> <p>So is there any way to deploy multiple process modules by a single zip file with Ivy 7.0.11? Waiting for your response and many thank for your help</p>lphieuThu, 02 Jan 2020 03:19:36 -0500https://answers.axonivy.com/questions/4306/multiple-deploy-process-modules-by-a-single-zip-fileivydeploymentIvy Engine 8 Deployment APIhttps://answers.axonivy.com/questions/4305/ivy-engine-8-deployment-api<p>I'm setup Ivy Engine 8 successful on remote server. And try to use the deployment API to deploy my iar file. But I got exception.</p> <pre><code>2019-12-27 14:18:37.671 ERROR [ch.ivyteam.ivy.webserver.rest.exception.IvyExceptionMapper] [http-nio-8088-exec-2] [application=0, requestId=4, session=5 (ivyadmin), executionContext=SYSTEM, client=192.168.78.69] null java.lang.NullPointerException at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source) at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source) at java.base/sun.nio.fs.WindowsPath.parse(Unknown Source) at java.base/sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at java.base/java.nio.file.Path.resolve(Unknown Source) at ch.ivyteam.ivy.deployment.restricted.DeploymentService$TemporaryDeployDirectory.getDeploymentFile(DeploymentService.java:126) at ch.ivyteam.ivy.deployment.restricted.DeploymentService$TemporaryDeployDirectory.writeFileToDeploy(DeploymentService.java:100) at ch.ivyteam.ivy.deployment.restricted.DeploymentService.deploy(DeploymentService.java:34) at ch.ivyteam.ivy.webserver.internal.rest.deploy.Deployment.deploy(Deployment.java:94) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at ch.ivyteam.ivy.webserver.internal.rest.resource.project.RestPmvInvocationHandler$PmvAwareInvocator.lambda$0(RestPmvInvocationHandler.java:41) at ch.ivyteam.ivy.webserver.internal.rest.resource.project.RestPmvInvocationHandler$PmvAwareInvocator.call(RestPmvInvocationHandler.java:50) at ch.ivyteam.ivy.webserver.internal.rest.resource.project.RestPmvInvocationHandler$PmvAwareInvocator.lambda$1(RestPmvInvocationHandler.java:42) at ch.ivyteam.ivy.security.exec.Sudo.call(Sudo.java:33) at ch.ivyteam.ivy.webserver.internal.rest.resource.project.RestPmvInvocationHandler$PmvAwareInvocator.invoke(RestPmvInvocationHandler.java:42) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) at org.glassfish.jersey.internal.Errors.process(Errors.java:292) at org.glassfish.jersey.internal.Errors.process(Errors.java:274) at org.glassfish.jersey.internal.Errors.process(Errors.java:244) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680) at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:392) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:365) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:318) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.ivy.webserver.internal.filter.LicenceFilter.doFilter(LicenceFilter.java:13) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.ivy.webserver.internal.exception.ExceptionFilter.doFilter(ExceptionFilter.java:50) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.ivy.webserver.internal.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:32) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28) at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16) at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26) at ch.ivyteam.ivy.webserver.internal.filter.RemoteClientFilter.doFilter(RemoteClientFilter.java:18) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28) at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16) at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26) at ch.ivyteam.ivy.webserver.internal.filter.IvyCurrentHttpRequestFilter.doFilter(IvyCurrentHttpRequestFilter.java:13) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.filter.FilterChain.next(FilterChain.java:33) at ch.ivyteam.util.callable.AbstractExecutionContext.lambda$0(AbstractExecutionContext.java:28) at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16) at ch.ivyteam.util.callable.AbstractExecutionContext.executeInContext(AbstractExecutionContext.java:26) at ch.ivyteam.ivy.security.exec.Sudo.execute(Sudo.java:63) at ch.ivyteam.ivy.webserver.internal.filter.IvyExecuteAsSystemFilter.doFilter(IvyExecuteAsSystemFilter.java:11) at ch.ivyteam.ivy.webserver.internal.filter.AbstractFilter.doFilter(AbstractFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:40) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1579) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Unknown Source) </code></pre> <p>My remote server is:</p> <pre><code>Window server 2012 </code></pre> <p>Java:</p> <pre><code>java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode) </code></pre> <p>Ivy Engine:</p> <pre><code>Axon.ivy Engine Version 8.0 Patch 0 Revision 1912040933 Copyright (c) 2001-2019 AXON Ivy AG ----------------------------------------------------- Java Version 11.0.5 (AdoptOpenJDK) JVM Version 11.0.5+10 (OpenJDK 64-Bit Server VM) </code></pre> <p>I use postman to call API. And Postman generated code for cURL.</p> <pre><code>curl --location --request POST 'http://10.123.0.174:8088/ivy/api/system/apps/ivy8app' \ --header 'X-Requested-By: curl' \ --header 'Authorization: Basic aXZ5YWRtaW46Ym9sdEA3ODk3ODk=' \ --header 'Content-Type: multipart/form-data; boundary=--------------------------880982583403848694607523' \ --form 'fileToDeploy=D:/EMTGRelease/QuickStartTutorial.iar' </code></pre> <p>I already create <strong>ivy8app</strong> by cockpit. Already bring the <strong>QuickStartTutorial.iar</strong> in my local forder D:/EMTGRelease/ to upload. I just think my value of "fileToDeploy" parameter is not correct 100%. Do you have any idea?</p> <blockquote> <p>Thanks &amp; Regards</p> </blockquote>nbthongFri, 27 Dec 2019 04:27:12 -0500https://answers.axonivy.com/questions/4305/ivy-engine-8-deployment-apiengineivydeploymentDocker, applications folder, deploymenthttps://answers.axonivy.com/questions/4154/docker-applications-folder-deployment<p>Dear Ivy team</p> <p>When we are building the KLARA image in windows, we get an issue with long file names. We have decided to keep the deployed IARs inside the image. Therefore the deployed apps are part of it. The folder structure looks like this :</p> <pre><code>jam:~/.../applications/luz$ ls -ltr total 80 drwxr-xr-x 3 jam jam 4096 Mai 1 2019 luz_components drwxr-xr-x 3 jam jam 4096 Mai 1 2019 luz_docs_process drwxr-xr-x 3 jam jam 4096 Mai 1 2019 luz_finance drwxr-xr-x 3 jam jam 4096 Mai 1 2019 luz_xhrm_processes </code></pre> <p>and each folder contains all the Ivy stuff. So no wonder build under Windows is an issue due to long file names.</p> <p>Question : What is needed in these folders ? can we skip some folders/files ?</p> <p>Request for 7.3.2 : Can you provide a "applications"-less Ivy version which does not require 7.4 ? </p> <p>Best regards John Moser</p>John MoserFri, 08 Nov 2019 02:34:12 -0500https://answers.axonivy.com/questions/4154/docker-applications-folder-deploymentdockerdeploymentDeployment of iar is very slowhttps://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow<p>Hi support team,</p> <p>Currently we faced with the problem of deployment process. Whenever we deploy a .iar file to the engine (via adminUi, or ivy_deployment_tool), it will cost us a lot of time (about 5-10 minutes). </p> <p>But after we restart, the first time deployment is much much faster (take around 1 minutes).</p> <p>Is there any hint for me to improve the deployment without restart engine?</p> <p>The ivy version: <strong>Powered by Axon.ivy Engine 7.0.11.1903290958 Copyright © 2001-2019 AXON IVY AG</strong></p> <p>Thank you!</p>khanh11166Thu, 07 Nov 2019 22:23:22 -0500https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slowenginedeploymentDisable zip backup during deploymenthttps://answers.axonivy.com/questions/4125/disable-zip-backup-during-deployment<p>Dear IvyTeam, At the moment, we deploy lots of times a day our projects to the server and ivy server automatically creates zip backups before deploying the new iars. Those files occupy some disk spaces and make the hard drive full quickly.</p> <p>How can we disable the auto backup? Thanks.</p>nam_haSun, 27 Oct 2019 23:34:08 -0400https://answers.axonivy.com/questions/4125/disable-zip-backup-during-deploymentdeployment7.3.1 deployment - is a zip file still suportedhttps://answers.axonivy.com/questions/4104/7-3-1-deployment-is-a-zip-file-still-suported<p>Dear Ivy Team</p> <p>Pre-7.3.1 we deployed a xyz.zip containing the IARs to the deploy folder.</p> <p>What is the preferred way with 7.3.1 ?</p> <p>Best regards John Moser</p>John MoserWed, 16 Oct 2019 04:51:02 -0400https://answers.axonivy.com/questions/4104/7-3-1-deployment-is-a-zip-file-still-suportedivydeploymentExterne JARs im maven buildhttps://answers.axonivy.com/questions/4046/externe-jars-im-maven-build<p>Hi</p> <p>Bei unserem Ivyprojekt haben wir mehrere externe jar libraries (&gt; 40MB). Wir haben grad den maven/jenkins build/deployment umgesetzt. Nach dem export von IARs enthalten aber Pakette immer alle externe libraries.</p> <p>Alle Ivy Projekten waren ja mavenized und koennen maven dependencies enthalten. Damit muessen wir eigentlich im Designer nicht die externe JARs haben - die werden aus public repo automatisch heruntergeladet. </p> <p>Gibt es eine Moeglichkeit, in den target Engine die JARs irgendwie einstecken, um wir dann die JARs in in exportierte IARs nicht haben muessen ? Es wird uns die IARs groesse auf 30% Groesse reduzieren, was waere toll.</p> <p>Danke Josef</p>josef_koupalWed, 02 Oct 2019 03:55:22 -0400https://answers.axonivy.com/questions/4046/externe-jars-im-maven-buildmavenivy7xdeploymentReload Process Model programmatically?https://answers.axonivy.com/questions/3880/reload-process-model-programmatically<p>Hi IvyTeam,</p> <p>I sometime manually replace the deployed classes by the new one. Is there anyway to tell Ivy Engine reload the Process Model contains these classes? Just like when we deploy new Process Model Version.</p> <p>FYI: I'm using Ivy Engine for my local development, everytime I build the modules, I need to copy the iar to deploy folder (or use Admin Tool to deploy), It's really take time, I want to automate it.</p>vinh_Tue, 09 Jul 2019 10:32:06 -0400https://answers.axonivy.com/questions/3880/reload-process-model-programmaticallyenginebuildivydeploymentDocker, IAR deploymenthttps://answers.axonivy.com/questions/3800/docker-iar-deployment<p>Hi Ivy team</p> <p>I have a zip file with IARs (but w/o app.yaml) and I use COPY to copy the zip file to the deploy folder of the Ivy engine, where it should be deployed at startup - according to the doc.</p> <p>a) is this procedure correct ? b) If yes then I get -&gt; Caused by: java.nio.file.FileSystemNotFoundException: /usr/lib/axonivy-engine-7x/applications/projects/authentication_tool_ivy/1.zip</p> <p>There is indeed a authentication_tool_ivy-7.2.0-SNAPSHOT.iar in the zip file.</p> <p>Any idea why this error happens ? Any more specific description how the files have to be named ? Is the order how the IARs are listed in the zip file relevant ?</p> <p>Thanks &amp; Regards John Moser</p>John MoserWed, 15 May 2019 11:10:37 -0400https://answers.axonivy.com/questions/3800/docker-iar-deploymentdockerdeploymentDeployment options for application ziphttps://answers.axonivy.com/questions/3657/deployment-options-for-application-zip<p>Dear ivyteam</p> <p>According to the <a href="https://developer.axonivy.com/doc/latest/EngineGuideHtml/administration.html#administration-deployment-advanced">documentation</a> we can configure additional behaviour for the automatic deployment with a <em>deploy.options.yaml</em> file. Our package currently looks as follows:</p> <pre><code>application.zip projectA-1.0.iar ... deploy.options.yaml projectB-2.4.iar ... deploy.options.yaml </code></pre> <p>In the yaml files we configured properties like <code>fileFormat: EXPANDED</code>. Unfortunately this did not work and the iars were deployed packed. Only after we added a <em>deploy.options.yaml</em> file to the zip the iar were deployed expanded. Is this expected behaviour? The documentation is not very clear about that. (We're using ivy 7.1.x by the way)</p> <p>We would like to have a yaml file per iar as the target version may be different for each iar. Is this supported?</p> <p>Best regards, Lars</p>Lars TuchelTue, 05 Feb 2019 12:04:16 -0500https://answers.axonivy.com/questions/3657/deployment-options-for-application-zipdeploymentHow to execute some code at Ivy Project deployment time for upgrading a database ?https://answers.axonivy.com/questions/3574/how-to-execute-some-code-at-ivy-project-deployment-time-for-upgrading-a-database<p>Hi IvyTeam,</p> <p>We have the following situation: we will have to deploy from time to time an Ivy Application. This application defines a database (MS SQL) for storing the application's data. We would like to create/update this database automatically at Ivy Deployment time with an database updating system like Flyway. (With some SQL Scripts CREATE / UPDATE TABLE ....)</p> <ul> <li>Is that already possible with Ivy? Ivy does it already at Ivy Engine installation or upgrade time with its System database. This would be a great feature if we could create/upgrade our project's databases at application deployment time.</li> <li>If not we should be able to execute some code at Ivy deployment time. Is there some Ivy Server Extension points allowing this easily?</li> </ul> <p>Thanks a lot in advance Cheers Emmanuel</p>Emmanuel CombaWed, 12 Dec 2018 09:49:00 -0500https://answers.axonivy.com/questions/3574/how-to-execute-some-code-at-ivy-project-deployment-time-for-upgrading-a-databasedatabaseivydeploymentHow do I find out from what .jar file my class gets loaded?https://answers.axonivy.com/questions/3356/how-do-i-find-out-from-what-jar-file-my-class-gets-loaded<p>In our project we encountered a problem where we had to re-deploy one of our web services.</p> <p>After changing the web service in Axon.ivy Designer and re-generating the code, we replace the .jar file in our deployment and restarted the engine again.</p> <p>Unfortunately, we couldn't see any of our code updates in the Engine. It seems that the Engine still has a copy of the old .jar file somewhere else in its path, but we can't find another copy.</p> <p>How do I find out where my updated class is loaded from?</p>SupportIvyTeamTue, 17 Jul 2018 07:28:11 -0400https://answers.axonivy.com/questions/3356/how-do-i-find-out-from-what-jar-file-my-class-gets-loadeddeploymentHow to properly integrate and deploy a third-party library in an ivy project and deploy it to the engine?https://answers.axonivy.com/questions/2953/how-to-properly-integrate-and-deploy-a-third-party-library-in-an-ivy-project-and-deploy-it-to-the-engine<p>Hi,</p> <p>we've modeled a process where some IvyScript tasks make use of a third-party library. For usage in the ivy Designer we just added it to our ivy project and it worked. But whenever we try to deploy everything to the engine we get an error which says that a class from the mentioned library is not available. </p> <p>Hence, my question is: What is the standard workflow to integrate and deploy third-party libraries properly? Do we have to add them manually to some special engine folder (I'm just wondering because I've found some lib folders)?</p> <p>Thank you very much in advance and kind regards, Lars</p>LaAckFri, 03 Nov 2017 08:56:59 -0400https://answers.axonivy.com/questions/2953/how-to-properly-integrate-and-deploy-a-third-party-library-in-an-ivy-project-and-deploy-it-to-the-engineivyscriptjarbuildlibrarydeploymentPortal deploymenthttps://answers.axonivy.com/questions/2546/portal-deployment<p>I use the portal for my business processes. There is already a portal deployed as part of the engine. How should I deploy my projects which depends on the portal projects?</p> <p>Variant 1 - One Application: All projects in one application (Portal Projects / Custom Projects).</p> <p>Variant 2 - Multiple Applications: One Application for the portal and one or multiple custom applications for my custom projects? How does the user mangement works in this case?</p>Alex SuterTue, 28 Mar 2017 16:16:56 -0400https://answers.axonivy.com/questions/2546/portal-deploymentportaldeploymentHow to start an Axon.ivy project in a Docker containerhttps://answers.axonivy.com/questions/2388/how-to-start-an-axon-ivy-project-in-a-docker-container<p>I saw, that there is an "unofficial" docker image of the Axon.ivy engine available here: <a href="https://hub.docker.com/r/dgauch/axonivy-engine/">axonivy-engine on Docker Hub</a></p> <p>The Docker way of running an application in a container is to include the application itself in the image, rather than just providing the execution environment in an container. Is there a way to run the whole application (aka Axon.ivy project) in a container?</p>DanielGauchFri, 20 Jan 2017 11:22:37 -0500https://answers.axonivy.com/questions/2388/how-to-start-an-axon-ivy-project-in-a-docker-containerdeploymentruntimeserverException when converting project to version 6.0.5https://answers.axonivy.com/questions/2251/exception-when-converting-project-to-version-6-0-5<p>When every we try to convert one of our existing project to the current Designer version we receive the following exception: </p> <pre><code># Conversion log for project 'xapf_customer' from version 0 to 51917 # Created on 07.12.2016 13:50:18 07.12.2016 13:50:18 : Info : Scanning contents of &lt;L/xapf_customer/src_rd/ch/ivyteam/ivy/addons/commondialogs/MessageDialogOverride/MessageDialogOverride.eventmappings&gt; 07.12.2016 13:50:18 : Info : Scanning contents of &lt;L/xapf_customer/src_rd/ch/ivyteam/ivy/addons/commondialogs/LoginDialogOverride/LoginDialogOverride.eventmappings&gt; 07.12.2016 13:50:18 : New Task : Updating cms/configurations of project. 07.12.2016 13:50:18 : New Task : Removing obsolete content from project cms. 07.12.2016 13:50:18 : New Task : Adding new default HMTL content to project cms. 07.12.2016 13:50:18 : New Task : Creating configuration DB with content. 07.12.2016 13:50:18 : Error : Unexpected error when converting project 'xapf_customer'. 07.12.2016 13:50:18 : Error : ch.ivyteam.ivy.cm.exceptions.CmsExistsAlreadyException: Cms with name/id &lt;config&gt; exists already for process model version &lt;designer$xapf_customer$1&gt; at ch.ivyteam.ivy.cm.internal.ContentManagement.createCms_aroundBody24(ContentManagement.java:700) at ch.ivyteam.ivy.cm.internal.ContentManagement.createCms_aroundBody25$advice(ContentManagement.java:34) at ch.ivyteam.ivy.cm.internal.ContentManagement.createCms(ContentManagement.java:1) at ch.ivyteam.ivy.cm.impl.DesignerContentManagement.createConfigCms(DesignerContentManagement.java:181) at ch.ivyteam.ivy.designer.project.internal.convert.tasks.UpdateContentToVersion3.doConvertProject(UpdateContentToVersion3.java:85) at ch.ivyteam.ivy.designer.project.restricted.convert.AbstractIvyProjectConverterTask.convertProject(AbstractIvyProjectConverterTask.java:96) at ch.ivyteam.ivy.designer.project.restricted.convert.IvyProjectConverter$1.run(IvyProjectConverter.java:293) at ch.ivyteam.eclipse.util.WorkspaceRunnable$1.run(WorkspaceRunnable.java:71) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2295) at ch.ivyteam.eclipse.util.WorkspaceRunnable.execute(WorkspaceRunnable.java:88) at ch.ivyteam.ivy.designer.project.restricted.convert.IvyProjectConverter.convertProject(IvyProjectConverter.java:316) at ch.ivyteam.ivy.designer.project.restricted.convert.IvyProjectConverter$2.run(IvyProjectConverter.java:486) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) </code></pre> <p>Can someone please explain what is going on?</p>ruffzyWed, 07 Dec 2016 13:55:10 -0500https://answers.axonivy.com/questions/2251/exception-when-converting-project-to-version-6-0-5projectdesignercmsconfigurationdeploymentDeployment of IAR throws errorhttps://answers.axonivy.com/questions/1535/deployment-of-iar-throws-error<p>Hi Folks,</p> <p>I have an override project for X.REC, which deploys smoothly on my development server. However I have issues deploying it on the test and prod server of my client.</p> <p>The Ivy Server Version is on both cases 5.1.5 and the dependencies are all resolved. The validation of the IAR ends without errors or warnings. In the designer, there is everything right as well.</p> <p>I tried to deploy over the existing PMV as well as on a new PM and PMV.</p> <p>The following error appears:</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/deployment_error.png"></p> <p>Now I have no Idea what to do, or what causes the error. Thank you very much in advance!</p>Marcel von WylTue, 03 Nov 2015 09:08:18 -0500https://answers.axonivy.com/questions/1535/deployment-of-iar-throws-errordeploymentStrange Error - ServerToServerProjectDeployer.clearCacheshttps://answers.axonivy.com/questions/1236/strange-error-servertoserverprojectdeployer-clearcaches<p>Hello,</p> <p>i want to deploy a new version of a iar and this error is thrown :</p> <p>14:26:50.843 ERROR [ch.ivyteam.ivy.deployment.restricted.helper] [Ivy project deployment] [executionContext=SYSTEM] Could not deploy process model version APEL$Apel$2 java.lang.NullPointerException at ch.ivyteam.ivy.deployment.internal.ServerToServerProjectDeployer.clearCaches(ServerToServerProjectDeployer.java:198) at ch.ivyteam.ivy.deployment.internal.ServerToServerProjectDeployer.deployAsSystem(ServerToServerProjectDeployer.java:141) at ch.ivyteam.ivy.deployment.internal.ServerToServerProjectDeployer$1.call(ServerToServerProjectDeployer.java:111) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1439) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem2(SecurityManager.java:1456) at ch.ivyteam.ivy.deployment.internal.ServerToServerProjectDeployer.deploy(ServerToServerProjectDeployer.java:106) at ch.ivyteam.ivy.deployment.restricted.helper.RichDialogBasedDeployment.deploy(RichDialogBasedDeployment.java:133) at ch.ivyteam.ivy.deployment.restricted.helper.RichDialogBasedDeployment$DeploymentThread$1.call(RichDialogBasedDeployment.java:228) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1439) at ch.ivyteam.ivy.deployment.restricted.helper.RichDialogBasedDeployment$DeploymentThread.run(RichDialogBasedDeployment.java:223)</p> <p>I have no idea what is can be. Could you help me ?</p> <ol> <li>Start adminUI</li> <li>right click on the application and choose deployment wizard</li> <li>get the iar (local or server is the same)</li> <li>validating OK</li> <li>press the deploy button then the error</li> </ol> <p>[INFO] Deploying project '2_203_2' by user 'xivyadmin' from host 'xpert-ivy1' [INFO] Destination: [INFO] - Application: APEL [INFO] - Process Model: Apel [INFO] - Process Model Version: 2</p> <p>[INFO] Synchronize project directory ... [INFO] - Cleaning target directory ... [INFO] - Copying new project files to target directory ... [INFO] Successful synchronized.</p> <p>[ERROR] null ch.ivyteam.ivy.deployment.internal.ServerToServerProjectDeployer.clearCaches(ServerToServerProjectDeployer.java:198) ch.ivyteam.ivy.deployment.internal.ServerToServerProjectDeployer.deployAsSystem(ServerToServerProjectDeployer.java:141) ch.ivyteam.ivy.deployment.internal.ServerToServerProjectDeployer$1.call(ServerToServerProjectDeployer.java:111) ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1439) ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem2(SecurityManager.java:1456) ch.ivyteam.ivy.deployment.internal.ServerToServerProjectDeployer.deploy(ServerToServerProjectDeployer.java:106) ch.ivyteam.ivy.deployment.ProjectDeployment.deploy(ProjectDeployment.java:50) ch.ivyteam.ivy.admin.tool.deploymentwizardserver.deployment.DeploymentManager$DeploymentThread$1.call(DeploymentManager.java:214) ch.ivyteam.ivy.admin.tool.deploymentwizardserver.deployment.DeploymentManager$DeploymentThread$1.call(DeploymentManager.java:126) ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1439) ch.ivyteam.ivy.admin.tool.deploymentwizardserver.deployment.DeploymentManager$DeploymentThread.run(DeploymentManager.java:125)</p>dbalasseThu, 19 Mar 2015 19:29:00 -0400https://answers.axonivy.com/questions/1236/strange-error-servertoserverprojectdeployer-clearcachesdeploymentWhat is axis lib used for ?https://answers.axonivy.com/questions/1225/what-is-axis-lib-used-for<p>Hello,</p> <p>we are using apache poi to create spreadsheet. As i saw in another post (<a href="http://answers.axonivy.com/questions/511/poi-conflicted-xmlbeans-jars),">http://answers.axonivy.com/questions/511/poi-conflicted-xmlbeans-jars),</a> I had to replace xbeans jar by a later one.</p> <p>As i want to evaluate the possible problem that might arise with such a switch, is it possible to know , in a comprehensive way, for what purpose is axis used ? I supposed it's for the "ws start process" and "ws call step" components. Is there another use ?</p> <p>Will this packaging bug be fixed someday ?</p> <p>Regards Denis</p>dbalasseThu, 12 Mar 2015 15:08:34 -0400https://answers.axonivy.com/questions/1225/what-is-axis-lib-used-forwebservicedeploymentCan I share the classes from jar in my project with my dependent projectshttps://answers.axonivy.com/questions/1021/can-i-share-the-classes-from-jar-in-my-project-with-my-dependent-projects<p>I have a project "base" with a custom library e.g. "junit-4.11.jar" on the classpath. Therefore I can use the junit classes within this base project. </p> <p>In another project called "dependee" I have configured the "base" project as dependency. Therefore I can use classes (e.g. DataClasses) from the "base" project in the "dependee" project. </p> <p>But I can't re-use the classes from the third party junit library. Did I miss something?</p>SupportIvyTeamThu, 23 Oct 2014 15:00:36 -0400https://answers.axonivy.com/questions/1021/can-i-share-the-classes-from-jar-in-my-project-with-my-dependent-projectsdeploymentIs there a docker image available?https://answers.axonivy.com/questions/884/is-there-a-docker-image-available<p>I'd like to run the Axon.ivy Engine in a docker container. Is there a docker image available for that?</p>DanielGauchMon, 28 Jul 2014 09:16:01 -0400https://answers.axonivy.com/questions/884/is-there-a-docker-image-availabledeploymentconfigurationadministrationserverHow to deploy an project in System Application on Serverhttps://answers.axonivy.com/questions/728/how-to-deploy-an-project-in-system-application-on-server<p>The 2 projects "Administration" and "IvyCommons" are deployed on server in a "system" application. How can we deploy our project, that should be common/standalone out of all applications?</p>Karel TauserMon, 02 Jun 2014 12:07:53 -0400https://answers.axonivy.com/questions/728/how-to-deploy-an-project-in-system-application-on-serverdeploymentHow to enable use of properties fileshttps://answers.axonivy.com/questions/517/how-to-enable-use-of-properties-files<p>For my solution i need .properties-Files. I already implemented what I need in another Eclipse. There it works. Now the actual problem: When I deploy my Ivy solution the files stay in the classes folder (thats ok though) but doesn't appear in the WEB-INF/classes/. The second problem is that the faces-config.xml gets overwritten during the deployment. this as well I need for the internationalization.</p> <p>Thanks for hints and ideas! Daniel</p>Daniel OechslinTue, 11 Feb 2014 16:30:36 -0500https://answers.axonivy.com/questions/517/how-to-enable-use-of-properties-filesfaces-config.xmlpropertiesdeploymentError in validation of deployment with younger Java classes than source fileshttps://answers.axonivy.com/questions/470/error-in-validation-of-deployment-with-younger-java-classes-than-source-files<p>During the deployment of Xpert.ivy projects on the server I have validation errors that Java source files are younger than the corresponding Java class files. But this is not true, the classes were compiled correctly and must therefore be younger than the .java files. What's wrong?</p>MichaelDänzerThu, 27 Sep 2012 03:38:37 -0400https://answers.axonivy.com/questions/470/error-in-validation-of-deployment-with-younger-java-classes-than-source-filesdeployment