Hi, experts.
I develop Java proxy module for PI 7.4. This is client application that connect to other system. The third-party libs have been added to EJB 3.0. One of them libs contains scannit utility (hierynomus/scannit · GitHub), which checks that all necessary classes are loaded.
The EAR project to deploy to PI has following structure:
EAR
--META-INF
----sda-dd.xml
----SAP_MANIFEST.MF
----MANIFEST.MF
----application-j2ee-engine.xml
--ejb.jar
--extlibs.jars
The *.MF files don`t contain any referenses to external libs in CLASS-PATH. The EAR project is deployed to Application server successfully.
The EJB.jar also contains META-INF/MANIFEST.MF with value "Class-Path: ." by default.
When I try to run JavaProxy implementation the scannit utility that runs inside the EJB can`t find one of classes.
The command Thread.currentThread().getContextClassLoader().getResources("com/myclass") returns null. Looks like application server`s classloaders, that runs before EJB call, doesn`t load all required libs.
The local implementation of client works perfectly. The problem occurs with application server.
I`ve already tried playing around with class-path in manifest files, but have no luck.
Could anyone help me, how to build project with all external libs to be loaded while EJB runs?
Thanks in advance.
Best regards,
Sergey.