Replies: 3 comments
-
|
That clearly indicates a dependency management issue - some parts may use httpclient 5.4.x and others may use 5.5.x |
Beta Was this translation helpful? Give feedback.
-
|
Oxalis-NG 1.2.0 is built exclusively against Apache HttpClient 5.x (httpclient5 5.4.4 and httpcore5 5.3.4). The reported exception ( In practice, this type of error usually occurs when:
Based on the dependency analysis, we do not see evidence of a compilation or packaging issue within Oxalis-NG itself. The behavior is more consistent with a classpath conflict or missing/overridden library at runtime in the execution environment. We recommend you to verify:
|
Beta Was this translation helpful? Give feedback.
-
|
Changing to discussion |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When executing the Oxalis-NG standalone script (
/oxalis-ng/bin-standalone/run-docker.sh) viadocker exec, the application fails to initialize with aNoClassDefFoundErrorfor Apache HttpClient classes. The error occurs during the initialization of the main classnetwork.oxalis.ng.Main, indicating that required dependencies are not available on the classpath.Error Message:
This suggests that the standalone script's classpath configuration is missing the Apache HttpClient library (
httpclient), which is required by Oxalis-NG for HTTP operations.Reproduce
norstella/oxalis-ng:1.2.0/oxalis-ng/outbound/{document_id}.xmldocker exec oxalis-ap /oxalis-ng/bin-standalone/run-docker.sh -f /oxalis-ng/outbound/{document_id}.xmlNoClassDefFoundErrorin the command outputExample command:
docker exec oxalis-ap /oxalis-ng/bin-standalone/run-docker.sh -f /oxalis-ng/outbound/46a1ab0e-a38b-476f-8000-0b22c1dcf897.xmlExpected Output:
The script should successfully process the document and send it via the PEPPOL network.
Actual Output:
Expected behavior
The standalone script should:
network.oxalis.ng.MainclassThe classpath should include all necessary JAR files, including:
httpclient-*.jar(Apache HttpClient)Oxalis-NG version
JDK version
Not explicitly set (using default from Docker image)Additional Info
Environment
docker execfrom external serviceContext
This issue occurs when integrating Oxalis-NG with an external gateway service that invokes the standalone script programmatically. The gateway writes PEPPOL documents to the outbound directory and then executes the standalone script to trigger document transmission.
Workaround Attempts
Related Configuration
The issue appears to be related to how the standalone script (
run-docker.sh) constructs the Java classpath. The script may need to explicitly include Apache HttpClient JAR files or ensure they are available in the expected location.Beta Was this translation helpful? Give feedback.
All reactions