You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
I noticed that the Dockerfile installs JDK 10, which causes exception error on javax/xml/soap. Reinstalled oracle-java8-installer from ppa:webupd8team/java, and it seems to fix the problem.
root@a40553ac4986:/opt/work# java -cp "../itext-ais/jar/signpdf-1.0.6.jar:../itext-ais/lib/*" com.swisscom.ais.itext.SignPDF -config=/opt/work/itext.cfg -type=sign -infile="in/LoremIpsum.pdf" -outfile="out/LoremIpsum.pdf" -v
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.itextpdf.text.io.ByteBufferRandomAccessSource$1 (file:/opt/itext-ais/lib/itextpdf-5.4.5.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of com.itextpdf.text.io.ByteBufferRandomAccessSource$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/MessageFactory
at com.swisscom.ais.itext.Soap.createRequestMessage(Soap.java:794)
at com.swisscom.ais.itext.Soap.signDocumentStaticCert(Soap.java:433)
at com.swisscom.ais.itext.Soap.sign(Soap.java:297)
at com.swisscom.ais.itext.SignPDF.runSigning(SignPDF.java:155)
at com.swisscom.ais.itext.SignPDF.main(SignPDF.java:123)
Caused by: java.lang.ClassNotFoundException: javax.xml.soap.MessageFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 5 more
root@a40553ac4986:/opt/work# java -version
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello again,
I noticed that the Dockerfile installs JDK 10, which causes exception error on javax/xml/soap. Reinstalled oracle-java8-installer from ppa:webupd8team/java, and it seems to fix the problem.
The text was updated successfully, but these errors were encountered: