<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Docker, dropins, AuthenticationValve</title><link>https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve</link><description>&lt;p&gt;Hi Ivy Team&lt;/p&gt;
&lt;p&gt;I am building a Docker image based on axonivy/axonivy-engine:7.2.1. In our project we have a few JARs which should go into the dropins folder but during Ivy startup I get the following error :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;14:13:05.368 ERROR [org.apache.tomcat.util.digester.Digester] [localhost-startStop-1]    Begin event threw exception
    java.lang.ClassNotFoundException: com.axonivy.auth.valve.AuthenticationValve cannot be found by ch.ivyteam.tomcat_8.5.34.201810151000 ...

4:13:05.380 ERROR [...apache.catalina.startup.ContextConfig] [localhost-startStop-1]    Parse error in context.xml for [/ivy]
org.xml.sax.SAXParseException; systemId: file:/usr/lib/axonivy-engine-7x/webapps/ivy/META-INF/context.xml; lineNumber: 13; columnNumber: 66; Error at (13, 66) : com.axonivy.auth.valve.AuthenticationValve cannot be found by ch.ivyteam.tomcat_8.5.34.201810151000
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So far I did the following:&lt;/p&gt;
&lt;p&gt;1) Dockerfile:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;COPY --chown=ivy:ivy axonivy7-engine-folder-setup/dropins/* /usr/lib/axonivy-engine-7x/dropins/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;2) Check if files exist after Ivy startup:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ivy@22ae6389e9e5:/usr/lib/axonivy-engine-7x/dropins$ ls -ltr
total 956
-rwxr-xr-x 1 ivy ivy   2028 Mar  8  2018 README.html
-rwxr-xr-x 1 ivy ivy 962431 Jul 19  2018 com.axonivy.auth.valve.AuthenticationValve_1.0.0.201807190929.jar
-rwxr-xr-x 1 ivy ivy   1622 Aug  1  2018 workflow.klara_patchNoBusinessCaseQuery_1.0.0.201807311434.jar
-rw-r--r-- 1 ivy ivy   8078 Nov  5  2018 webserver.rest.extension.patch_1.0.0.201805241153.jar
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;3) Check if JARs are listed using ss in console, but all the JARs in dropins are not listed:&lt;/p&gt;
&lt;p&gt;Axon.ivy Engine is running and ready to serve. [19778ms]
Type 'shutdown' and confirm with ENTER to stop the running engine instance
ss
"Framework is launched."&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;id  State       Bundle
0   ACTIVE      org.eclipse.osgi_3.13.0.v20180409-1500
                Fragments=2, 1
1   RESOLVED    ch.ivyteam.ivy.osgi.classpatcher_7.2.1.201811131504
                Master=0
2   RESOLVED    org.eclipse.osgi.compatibility.state_1.1.100.v20180331-1743
                Master=0
3   ACTIVE      org.eclipse.equinox.simpleconfigurator_1.3.0.v20180502-1828
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As far as I understood, one should copy the JARs into the dropins folder and it should work&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards
John&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 27 Dec 2019 00:42:37 -0500</lastBuildDate><item><title>Comment by Alex Suter on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve#4304</link><description>&lt;p&gt;There are some files missing in the docker image of a real engine. The workaround for you would be to build your own docker image based on 7.3.1 and add all files to the docker image which are in the directory &lt;code&gt;[engineDir]/system/p2/org.eclipse.equinox.p2.engine/&lt;/code&gt;. (XIVY-3235)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Fri, 27 Dec 2019 00:42:37 -0500</pubDate><guid>https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve#4304</guid></item><item><title>Comment by maidanh on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve#4303</link><description>&lt;p&gt;So in this case we must upgrade to version 7.4(or higher) or is there any work around for older version e.g 7.3.1&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">maidanh</dc:creator><pubDate>Thu, 26 Dec 2019 23:12:03 -0500</pubDate><guid>https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve#4303</guid></item><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve/3906</link><description>&lt;p&gt;This problem has been fixed with ivy 7.4. It was related to our debian package and because our docker image is based on the debian package, it was also affected by this issue.&lt;/p&gt;
&lt;p&gt;You can now add your extensions in the &lt;code&gt;dropins&lt;/code&gt; directory and this will work within the first start of the engine. Have a look at our custom valve &lt;a href="https://github.com/ivy-samples/docker-samples"&gt;docker-sample&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Tue, 06 Aug 2019 10:52:33 -0400</pubDate><guid>https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve/3906</guid></item></channel></rss>