Axon ivy Docker Java referenced class not found exception
Hi Ivy team,
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.
after run and build with maven, I have a **"xxx-app-1.0.0-SNAPSHOT.iar"**.
I copy this file to deploy folder of **"AxonIvyEngine7.3.1.1904101154_All_x64"**
and run Engine and then run web app . everything is ok when I click "add new" button
But when I copy that file :**"xxx-app-1.0.0-SNAPSHOT.iar"** in docker file :
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
and then I create a docker-compose file
version: '3.3'
services:
axonivy-engine:
image: my-app-test
build: .
ports:
- 8082:8080
restart: always
- Run docker-compose up
- Run web app and then click "add new" button. I've get a errors:
Errorrs:
Caused by: ch.ivyteam.ivy.scripting.exceptions.classDef.ReferencedClassNotFoundException: Referenced class 'com/axonivy/persistence/beans/GenericEntity' not found for class 'controller.AddNew'
I don't why with same a file **IAR** but when I run it on local it run well and doesn't through any errors
.But after run from **docker container** the UI still appear ok, but when user click button, it call method in java class then through errors
I've check in zip file on **"work"** folder in Engine in docker container it still exist all file java class
can you guy help me please
my iar file:
[link text][1]
[1]: https://answers.axonivy.com/upfiles/my-app-1.0.0-SNAPSHOT.png