Hello, On Tue, 29 Jul 2025 11:18:20 +0200 Roland Tapken <[email protected]> wrote: > Package: tomcat9 > Version: 9.0.43-2~deb11u10 > Severity: important > X-Debbugs-Cc: [email protected] > > After upgrading from (9.0.43-2~deb11u12 to 9.0.107-0+deb11u1, the startup > failed with: > > > Unrecognized VM option 'CMSPermGenSweepingEnabled' > > After removing that option the unchanged application fails with: > > > org.springframework.beans.factory.BeanCreationException: Error creating > > bean with name 'reportDefinitionRegistry' defined in ServletContext > > resource [/WEB-INF/applicationContext.xml]: Invocation of init method > > failed; nested exception is javax.xml.bind.JAXBException: Implementation > > of JAXB-API has not been found on module path or classpath. > > - with linked exception: > > [java.lang.ClassNotFoundException: > > com.sun.xml.internal.bind.v2.ContextFactory > > ... > > Caused by: java.lang.ClassNotFoundException: > > com.sun.xml.internal.bind.v2.ContextFactory > > at org.apache.catalina.loader.WebappClassLoaderBase.loadClass > > (WebappClassLoaderBase.java:1354) > > at org.apache.catalina.loader.WebappClassLoaderBase.loadClass > > (WebappClassLoaderBase.java:1163) > > at javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass > > (ServiceLoaderUtil.java:122) > > at javax.xml.bind.ServiceLoaderUtil.safeLoadClass > > at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:276) > > > > ... 59 more > > Our /etc/default/tomcat9 is: > > > JAVA_HOME=/usr/lib/jvm/temurin-8-jre-amd64 > > JAVA_OPTS="-Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Xms1024m" > > JAVA_OPTS="${JAVA_OPTS} -Xmx10240m -XX:MaxPermSize=1024M " > > JAVA_OPTS="${JAVA_OPTS} -XX:+CMSClassUnloadingEnabled" > > JAVA_OPTS="${JAVA_OPTS} -XX:+CMSPermGenSweepingEnabled" > > JAVA_OPTS="${JAVA_OPTS} -Dlog4j2.formatMsgNoLookups=true"
[...] Regarding the "CMSPermGenSweepingEnabled" option, we don't support Temurin hence I can't look closer into it. Is this one even necessary with newer Tomcat versions? Can you reproduce the problem with OpenJDK from the Debian archives? The JAXB-API class not found exception might indicate that libjaxb-api-java is missing on the classpath. I presume that should be added on the application level. I'm currently not aware of a missing tomcat9 dependency. Regards, Markus
signature.asc
Description: This is a digitally signed message part
__ This is the maintainer address of Debian's Java team <https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use [email protected] for discussions and questions.
