On 17/05/2022 08:13, Thomas Hoffmann (Speed4Trade GmbH) wrote:
Hello,

-----Ursprüngliche Nachricht-----
Von: Rob Sargent <rsarg...@xmission.com>
Gesendet: Dienstag, 17. Mai 2022 00:38
An: users@tomcat.apache.org
Betreff: embeded tomcat apache-jasper dependency

I'm seeing a new-to-me deployment failure and am at a loss to explain.


Using tomcat 9-0-63 (and getting

     Caused by: java.lang.IllegalArgumentException: More than one
     fragment with the name [org_apache_jasper_el] was found. This is not
     legal with relative ordering. See section 8.2.2 2c of the Servlet
     specification for details. Consider using absolute ordering.
          at

org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebX
ml.java:2262)
          at

org.apache.tomcat.util.descriptor.web.WebXml.orderWebFragments(WebX
ml.java:2220)


My dependency manager (gradle) finds mention of jasper as an explicit
dependency

           \--- project :webapp
                +--- project :transport (*)
                +--- com.fasterxml.jackson.core:jackson-databind:2.11.4 (*)
                +--- com.fasterxml.jackson.core:jackson-core:2.11.4
                +--- com.fasterxml.jackson.core:jackson-annotations:2.11.4
                +---
     com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.4 (*)
                +--- javax.servlet:javax.servlet-api:3.1.0
                +--- javax.servlet.jsp:javax.servlet.jsp-api:2.3.3
                +--- org.apache.tomcat.embed:tomcat-embed-core:9.0.+ ->
     9.0.63
                |    \--- org.apache.tomcat:tomcat-annotations-api:9.0.63
                +--- org.apache.tomcat.embed:tomcat-embed-jasper:9.0.+ ->
     9.0.63
                |    +---
     org.apache.tomcat.embed:tomcat-embed-core:9.0.63 (*)
                |    +--- org.apache.tomcat.embed:tomcat-embed-el:9.0.63
                |    \--- org.eclipse.jdt:ecj:3.18.0
                +---
     org.apache.tomcat.embed:tomcat-embed-logging-juli:9.0.0.M6
                +--- org.apache.tomcat:tomcat-jdbc:9.0.+ -> 9.0.63
                |    \--- org.apache.tomcat:tomcat-juli:9.0.63
                +--- org.apache.tomcat:tomcat-dbcp:9.0.+ -> 9.0.63
                |    \--- org.apache.tomcat:tomcat-juli:9.0.63
                +--- org.apache.tomcat:tomcat-juli:9.0.+ -> 9.0.63
                \--- org.slf4j:slf4j-api:1.7.7 -> 1.7.32

I see no evidence of even a single instance of the string
"org_apache_jasper_el" (not even just "jasper") in any xml file in the
deployment directory.

Even if I remove the jasper dependency (I'm not using JSF) and rebuild
(distTar) the project I get the same complaint (more than one jasper
fragment).



Any pointers appreciated.
rjs

This message probably refers to web-fragments.
They are usually located at: /META-INF/web-fragment.xml

Within this XML there can be an ordering element <ordering> an a name element 
<name>.

Maybe you can inspect the jars for this file.

It looks like you are packaging at least one of the standard Tomcat JARs (either jasper-el.jar or tomcat-embed-el.jar) in your web application. That will trigger this error.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to