[java-idp-testbed] branch main updated: Exclude Logback and Jetty JARs from testbed WAR

Tom Zeller tzeller at dragonacea.biz
Tue Nov 11 22:27:44 UTC 2025


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch main
in repository java-idp-testbed.

View the commit online:
https://git.shibboleth.net/view/?p=java-idp-testbed.git;a=commit;h=8ab963e3cd3844011725585aadb59b7cc2eb82da

The following commit(s) were added to refs/heads/main by this push:
     new 8ab963e  Exclude Logback and Jetty JARs from testbed WAR
8ab963e is described below

commit 8ab963e3cd3844011725585aadb59b7cc2eb82da
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Tue Nov 11 16:27:21 2025 -0600

    Exclude Logback and Jetty JARs from testbed WAR
    
    Testbed webapp fails to start when run from integration tests after
    Jetty JARs were added to the testbed POM for Eclipse.
    
    INFO [org.eclipse.jetty.ee9.nested.ContextHandler.testbed:2126] -
    Initializing Spring DispatcherServlet 'test'
    WARN [org.eclipse.jetty.ee9.webapp.WebAppContext:538] - Failed startup
    of context oeje9w.WebAppContext at 1fc0053e{testbed...}
    jakarta.servlet.ServletException:
    java.lang.reflect.InvocationTargetException
            at org.eclipse.jetty.ee9.nested.ContextHandler$APIContext.createInstance(ContextHandler.java:2394)
          ...
    Caused by: java.lang.reflect.InvocationTargetException: null
            at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
            at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
            at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
            at org.eclipse.jetty.ee9.nested.ContextHandler$APIContext.createInstance(ContextHandler.java:2389)
            ...
    Caused by: java.util.ServiceConfigurationError:
    org.apache.juli.logging.Log: org.eclipse.jetty.ee9.apache.jsp.JuliLog
    not a subtype
            at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
            at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
         ...
---
 pom.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pom.xml b/pom.xml
index 3820820..5b059fd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -747,6 +747,10 @@
                 <artifactId>maven-war-plugin</artifactId>
                 <configuration>
                     <attachClasses>true</attachClasses>
+                    <packagingExcludes>
+                        WEB-INF/lib/logback-*.jar,
+                        WEB-INF/lib/jetty-*.jar
+                    </packagingExcludes>
                 </configuration>
             </plugin>
         </plugins>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list