Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Default JRE #1

Open
hoonio opened this issue Jun 20, 2018 · 0 comments
Open

Default JRE #1

hoonio opened this issue Jun 20, 2018 · 0 comments

Comments

@hoonio
Copy link

hoonio commented Jun 20, 2018

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.

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant