Hi Ivy Team

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 :

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

So far I did the following:

1) Dockerfile:

COPY --chown=ivy:ivy axonivy7-engine-folder-setup/dropins/* /usr/lib/axonivy-engine-7x/dropins/

2) Check if files exist after Ivy startup:

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

3) Check if JARs are listed using ss in console, but all the JARs in dropins are not listed:

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."

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

As far as I understood, one should copy the JARs into the dropins folder and it should work

Thanks & Regards John

asked 31.05.2019 at 10:29

John%20Moser's gravatar image

John Moser
(suspended)
accept rate: 0%

edited 11.06.2019 at 03:45

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958


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.

You can now add your extensions in the dropins directory and this will work within the first start of the engine. Have a look at our custom valve docker-sample.

link

answered 06.08.2019 at 10:52

Alex%20Suter's gravatar image

Alex Suter ♦♦
3.1k122247
accept rate: 84%

edited 06.08.2019 at 10:53

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

(26.12.2019 at 23:12) maidanh maidanh's gravatar image
1

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 [engineDir]/system/p2/org.eclipse.equinox.p2.engine/. (XIVY-3235)

(27.12.2019 at 00:42) Alex Suter ♦♦ Alex%20Suter's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×32
×20

Asked: 31.05.2019 at 10:29

Seen: 1,750 times

Last updated: 13.01.2020 at 06:00