Skip to content

Commit 011e96d

Browse files
committed
clean up pom.xml
the build/test issues were due to exception Caused by: java.lang.NoSuchFieldError: Class org.apache.tomcat.util.descriptor.Constants does not have member field 'boolean IS_SECURITY_ENABLED' at org.apache.tomcat.util.descriptor.tld.TldParser.parse(TldParser.java:53) at org.apache.jasper.servlet.TldScanner.parseTld(TldScanner.java:260) there was a dependency version conflict: we should be using jetty and its JSP library. however, tomcat's JSP engine was also included which jetty was trying to use. this was due to "cxf-spring-boot-starter-jaxws" transitively bringing "spring-boot-starter-tomcat" along. excluding this solved the issue.
1 parent 5a0de88 commit 011e96d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

pom.xml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@
400400
<dependencies>
401401
<dependency>
402402
<groupId>org.springframework.boot</groupId>
403-
<artifactId>spring-boot-starter-web</artifactId>
403+
<artifactId>spring-boot-starter-webmvc</artifactId>
404404
<exclusions>
405405
<exclusion>
406-
<artifactId>spring-boot-starter-tomcat</artifactId>
407406
<groupId>org.springframework.boot</groupId>
407+
<artifactId>spring-boot-starter-tomcat</artifactId>
408408
</exclusion>
409409
</exclusions>
410410
</dependency>
@@ -494,6 +494,12 @@
494494
<groupId>org.apache.cxf</groupId>
495495
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
496496
<version>${cxf.version}</version>
497+
<exclusions>
498+
<exclusion>
499+
<groupId>org.springframework.boot</groupId>
500+
<artifactId>spring-boot-starter-tomcat</artifactId>
501+
</exclusion>
502+
</exclusions>
497503
</dependency>
498504
<dependency>
499505
<groupId>org.apache.cxf</groupId>
@@ -503,9 +509,8 @@
503509

504510
<!-- JSP related dependencies -->
505511
<dependency>
506-
<groupId>org.eclipse.jetty.ee10</groupId>
507-
<artifactId>jetty-ee10-apache-jsp</artifactId>
508-
<version>${jetty.version}</version>
512+
<groupId>org.eclipse.jetty.ee11</groupId>
513+
<artifactId>jetty-ee11-apache-jsp</artifactId>
509514
</dependency>
510515
<dependency>
511516
<groupId>jakarta.servlet.jsp.jstl</groupId>

0 commit comments

Comments
 (0)