plantuml / plantuml-server

PlantUML Online Server
https://plantuml.com/
GNU General Public License v3.0
1.6k stars 462 forks source link

No PDF generation on master branch version #285

Closed HeinrichAD closed 1 year ago

HeinrichAD commented 1 year ago

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:

  1. build and start plantuml (branch master) e.g.: mvn jetty:run -Djetty.http.port=9999
  2. Go to: http://localhost:9999/plantuml/pdf/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000
  3. See error

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):

Additional context