Need help sending document using standalone distribution #209
-
Hi! Context and what I have so far:I have built a docker container from the norstella/oxalis:latest-11 image on dockerhub. The container runs as expected, and gives expected responses "Hello AS4 world" for the http://localhost:8080/as4. The container has its own directory with the certificate.pem document.xml oxalis-keystore.jks oxalis-standalone.jar oxalis.conf truststore.jks. The /oxalis/conf has the following files: oxalis.conf, oxalis-keystore.jks, truststore.jks and logback.xml. My oxalis.conf file looks like this: oxalis.logging.config=/oxalis/conf/logback.xml transport.as4_peppol_v2 { My problem:When I try to run the standalone jar file with arguments to return the test document to testbed, I get the following error message in the terminal: " No Content-Type header in response, probably a server error". The log shows this: "WARNING: Interceptor for has thrown exception, unwinding now For more details, please se the attached container log file and terminal log. I have tried the following commands for running the jar file: Any help on this would be greatly appreciated! Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@alfchristensen In general there are multiple problem. But let me first highlight main problem. There is problem with standalone command that you are using.
Make sure that you have "oxalis distribution" version and "Oxalis-AS4" version available in path which you can download from https://github.com/OxalisCommunity/oxalis/releases & https://github.com/OxalisCommunity/Oxalis-AS4/releases Note: Modify above commands with the Oxalis & Oxalis-AS4 version that you are using. |
Beta Was this translation helpful? Give feedback.
-
You are sending via AS2 protocol, not AS4. You can see it in your terminal.log: Caused by: network.oxalis.api.lang.OxalisTransmissionException: No Content-Type header in response, probably a server error. Try to add a protocol into command line. |
Beta Was this translation helpful? Give feedback.
Since you are running command in Linux, so replace ";" with ":" . Important difference between setting Classpath in Windows and Linux is path separator which is ";" (semi-colon) in Windows and ":" (colon) in Linux
So for linux command will be:
java -cp "oxalis-distribution-6.0.0-RC3-distro/bin/:oxalis-as4-6.0.0-RC3-dist/" eu.sendregning.oxalis.Main -f document.xml
and I hope you have "oxalis-distribution-6.0.0-RC3-distro" and "oxalis-as4-6.0.0-RC3-dist" where you running this command. If not then use Full path.
I also notice that * is being removed by Github after "...bin/" and "......-dist/" . So place * after those to represent all libraries inside it.