Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046720
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] SAP Connectorminorhave not tried2021-05-18 18:582021-11-09 09:30
ReportershuehnerView Statuspublic 
Assigned Toplatform 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0046720: Lots of warnings "lib/so/libsapjco3.so is not a JAR" during several command line tasks (compile, run.test)

DescriptionThis 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
Steps To Reproduce1.) 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
Proposed SolutionEither:
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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0045317 closedcaristu Warning message in install.source because libsapjco3.so is in classpath 
related to defect 0044317 closedAugustoMauch Tomcat restart error after configuring JCo configuration 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-05-18 18:58 shuehner New Issue
2021-05-18 18:58 shuehner Assigned To => platform
2021-10-18 13:08 alostale Relationship added duplicate of 0045317
2021-10-18 13:08 alostale Status new => closed
2021-10-18 13:08 alostale Resolution open => duplicate
2021-11-09 09:30 caristu Relationship added related to 0044317


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker