augustomelo opened a new issue, #5745:
URL: https://github.com/apache/incubator-kie-drools/issues/5745

   I am opening this issue so the others could be aware when upgrading to 
spring-boot 3.2.
   
   On spring-boot, it was added [nested jar 
support](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.2-Release-Notes#nested-jar-support),
 it seems that this causes problem when Kie needs to find kmodule.xml
   
   logs of the problem:
   
   ```
   2024-02-26T15:37:23.303Z  INFO 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : Found kmodule: 
jar:nested:/srv/app.jar/!BOOT-INF/lib/x-module-0.0.1-SNAPSHOT-plain.jar!/META-INF/kmodule.xml
   2024-02-26T15:37:23.619Z  WARN 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : Unable to find pom.properties in 
/srv/app.jar/!BOOT-INF/lib/x-module-0.0.1-SNAPSHOT-plain.jar
   2024-02-26T15:37:23.621Z  WARN 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : As folder project tried to fall back 
to pom.xml, but could not find one
   2024-02-26T15:37:23.621Z  WARN 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : Unable to load pom.properties 
from/srv/app.jar/!BOOT-INF/lib/x-module-0.0.1-SNAPSHOT-plain.jar
   2024-02-26T15:37:23.621Z  WARN 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : Cannot find maven pom properties for 
this project. Using the container's default ReleaseId
   2024-02-26T15:37:23.623Z  INFO 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.i.InternalKieModuleProvider    : Creating KieModule for artifact 
org.default:artifact:1.0.0
   2024-02-26T15:37:23.645Z ERROR 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : Unable to build index of kmodule.xml 
url=jar:nested:/srv/app.jar/!BOOT-INF/lib/x-module-0.0.1-SNAPSHOT-plain.jar!/META-INF/kmodule.xml
 Range [57, 56) out of bounds for length 56
   2024-02-26T15:37:23.652Z ERROR 1 --- [microservice-x] [  XNIO-1 task-2] 
x.d.ExceptionHandler    : RuntimeException java.lang.RuntimeException: Cannot 
find a default KieSession
   ```
   
   after adding the option bellow on `build.gradle` 
   
   ```gradle
   bootJar {
     loaderImplementation = 
org.springframework.boot.loader.tools.LoaderImplementation.CLASSIC
   }
   ```
   
   logs after applying the `LoaderImplementation.CLASSIC`
   ```
   2024-02-26T15:48:52.940Z  INFO 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : Found kmodule: 
jar:file:/srv/app.jar!/BOOT-INF/lib/x-module-0.0.1-SNAPSHOT-plain.jar!/META-INF/kmodule.xml
   2024-02-26T15:48:53.269Z  WARN 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : Unable to load pom.properties 
from/srv/app.jar!/BOOT-INF/lib/x-module-0.0.1-SNAPSHOT-plain.jar
   2024-02-26T15:48:53.269Z  WARN 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.impl.ClasspathKieProject       : Cannot find maven pom properties for 
this project. Using the container's default ReleaseId
   2024-02-26T15:48:53.271Z  INFO 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.k.b.i.InternalKieModuleProvider    : Creating KieModule for artifact 
org.default:artifact:1.0.0
   2024-02-26T15:48:53.285Z  INFO 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.kie.builder.impl.KieContainerImpl  : Start creation of KieBase: 
defaultKieBase
   2024-02-26T15:48:54.647Z  INFO 1 --- [microservice-x] [  XNIO-1 task-2] 
o.d.c.kie.builder.impl.KieContainerImpl  : End creation of KieBase: 
defaultKieBase
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to