** Description changed: [Impact] pdfsam fails to work due missing and conflicting dependencies. On Focal and Groovy libhibernate-validator-java has a runtime dependency on libel-api-java and an implementation of el-api. Both are usually provided when running under Java EE. On Java SE the application must take care of providing them - and pdfsam is missing these dependencies. The usual implementation of el-api on Maven projects is from Glassfish, but that has not yet been packaged. libtomcat9-embed-java also provides one such implementation in tomcat9-embed-el.jar which can be used instead. Also during build time pdfsam must create links of the jar files it needs for runtime: tomcat9-embed-el.jar and classmate.jar (a new dependency from libhibernate-validator-java) are missing from this list. Only on Focal: * libsejda-java 3.2.84-1 depends on libgeronimo-validation-1.0-spec-java * libhibernate-validator-java depends on libgeronimo-validation-1.1-spec-java A Java application must has either 1.0 or 1.1 spec on its classpath, never both as they are incompatible. To fix this libsejda-java in Focal should be updated to 3.2.84-2 so everything depends on the 1.1 spec (ie. libgeronimo-validation-1.1-spec-java). [Test Case] 1) On Focal and Groovy, install pdfsam and run it $ sudo apt get install -y pdfsam $ pdfsam 2) Split a PDF Expected result: For the action to execute correctly. Actual result: The console shows a java stacktrace such as ERROR 15:56:04.873 org.pdfsam.UncaughtExceptionLogger[JavaFX Application Thread] Unexpected error org.sejda.eventstudio.exception.EventStudioException: Reflective method invocation exception ... [Regression Potential] * libseja-java backport: Moving from 1.0 to 1.1 spec might cause regressions on packages that depend on libsejda-java as now el-api (and its implementation) must be available on the classpath (default on Java EE). At this time the only package that depends on libsejda-java is pdfsam. + Ubuntu users consuming libsejda-java directly can regress if something else in their dependency chain currently relies on spec 1.0 - they would need to update these dependencies to also use spec 1.1. * New dependency on libtomcat9-embed-java (as an el-api provider): The most common implementation of el-api is from Glassfish, so using tomcat9 to provide this might introduce problems if it deviates from the spec (unlikely, as tomcat is also a Java EE provider). [Other Info] [Original Report] pdfsam does not produce an output file because of various java-exceptions. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: pdfsam 4.0.4-1 ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44 Uname: Linux 5.4.0-40-generic x86_64 ApportVersion: 2.20.11-0ubuntu27.3 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: XFCE Date: Fri Jul 10 11:46:14 2020 InstallationDate: Installed on 2019-09-09 (304 days ago) InstallationMedia: Xubuntu 19.04 "Disco Dingo" - Release amd64 (20190416) PackageArchitecture: all SourcePackage: pdfsam UpgradeStatus: No upgrade log present (probably fresh install)
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1887142 Title: pdfsam won't run, has missing and conflicting dependencies To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libhibernate-validator-java/+bug/1887142/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
