Openbravo Issue Tracking System - Modules
View Issue Details
0046720ModulesSAP Connectorpublic2021-05-18 18:582021-11-09 09:30
shuehner 
platform 
normalminorhave not tried
closedduplicate 
5
 
 
0046720: Lots of warnings "lib/so/libsapjco3.so is not a JAR" during several command line tasks (compile, run.test)
This module ship a non-standard folder/file in its lib folder.
Specifically

lib/so/libsapjco3.so

Several tasks of the build-system include lib/* into the classpath and they shows lots of warnings like
CLASSPATH element /home/huehner/ob/branches/pi_pristine_pg/modules/org.openbravo.service.integration.sapecc/lib/so/libsapjco3.so is not a JAR.

As jvm and/or ant is unhappy with that file being included.

Afaik that file is not even used from this place but just 'shipped' in the module and requires extra copy/config to be used
1.) Install/compile the module (and its dependencies)
git clone https://gitlab.com/openbravo/product/pmods/org.openbravo.service.integration.sapecc [^]
git clone https://gitlab.com/openbravo/product/pmods/org.openbravo.externaldata.integration [^]
git clone https://gitlab.com/openbravo/product/pmods/org.openbravo.service.external.integration [^]

2.) ant run.test -Dtest=org.openbravo.service.integration.sapecc.StandaloneTestSuite

3.a) Notice the huge number of warnings shown just running this one task.

3.b) Also several other tasks show the same warnings:
Example check mod-platform job
- wadvalidation
- minimizeJS
- compile.api (from openapi module)
- check.module.consistency
- run.all.tests
- run.webservice.tests
- (3.a) run.test
Either:
a.) Move it out of the lib/ folder (with its special meaning (to put into classpath)
b.)Ship the .so file inside a jar library

That b.) option might need a bit of research. Example other 3rd party jar library which seems to do that are libusb* inside org.openbravo.retail.poshwmanager.
That repo has several 'versions' of such jar files and each inside seems to ship the hw-specific so library.

So apart of fixing the problem described in this issue that could also improve usability (assuming the files are auto-picked up) instead of pointed to via some -D option as done so far.
No tags attached.
duplicate of defect 0045317 closed caristu Warning message in install.source because libsapjco3.so is in classpath 
related to defect 0044317 closed AugustoMauch Tomcat restart error after configuring JCo configuration 
Issue History
2021-05-18 18:58shuehnerNew Issue
2021-05-18 18:58shuehnerAssigned To => platform
2021-10-18 13:08alostaleRelationship addedduplicate of 0045317
2021-10-18 13:08alostaleStatusnew => closed
2021-10-18 13:08alostaleResolutionopen => duplicate
2021-11-09 09:30caristuRelationship addedrelated to 0044317

There are no notes attached to this issue.