Describe the bug
The PDF sevlet of the current master code is not working. It's producing a java.lang.ClassNotFoundException: org.apache.batik.apps.rasterizer.SVGConverter exception.
The strange part is that if I remove <type>pom</type> of the batik-all and fop dependency inside the pom.xml there are no issues if I use the embedded server (UnitTests) but everywhere else it's still failing (e.g. jetty-runner or docker).
So, it seems as if the jetty-runner and docker do not have these dependencies. Both use the packaged plantuml.war file to run (as far as I now). But, if you extract the plantuml.war file these dependencies actually are inside the WEB-INF/lib directory. Does anybody have an Idea?
To Reproduce
Steps to reproduce the behavior:
build and start plantuml (branch master) e.g.: mvn jetty:run -Djetty.http.port=9999
Expected behavior
A PDF should be returned and the Alice Bob Example should be shown.
Screenshots
Request that failed: /plantuml/pdf/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000
Status code: 500
Exception: java.lang.UnsupportedOperationException
BUT the real (first) exception is java.lang.ClassNotFoundException: org.apache.batik.apps.rasterizer.SVGConverter as you can see in the log/on the console screen.
Desktop (please complete the following information):
OS: ArchLinux
Browser: Firefox
Version: 112.0.2 (64-bit)
Additional context
both dependencies batik-all and fop are declared as optional dependencies of the plantuml dependency
since Version 1.15 batik-all declared nearly every dependency as optional
Describe the bug The PDF sevlet of the current master code is not working. It's producing a
java.lang.ClassNotFoundException: org.apache.batik.apps.rasterizer.SVGConverter
exception.The strange part is that if I remove
<type>pom</type>
of thebatik-all
andfop
dependency inside the pom.xml there are no issues if I use the embedded server (UnitTests) but everywhere else it's still failing (e.g. jetty-runner or docker). So, it seems as if the jetty-runner and docker do not have these dependencies. Both use the packaged plantuml.war file to run (as far as I now). But, if you extract the plantuml.war file these dependencies actually are inside the WEB-INF/lib directory. Does anybody have an Idea?To Reproduce Steps to reproduce the behavior:
mvn jetty:run -Djetty.http.port=9999
Expected behavior A PDF should be returned and the Alice Bob Example should be shown.
Screenshots
BUT the real (first) exception is
java.lang.ClassNotFoundException: org.apache.batik.apps.rasterizer.SVGConverter
as you can see in the log/on the console screen.Desktop (please complete the following information):
Additional context
batik-all
andfop
are declared as optional dependencies of theplantuml
dependencybatik-all
declared nearly every dependency as optional