чт, 4 авг. 2022 г. в 22:21, Shakila Rajaiah <sraja...@yahoo.com.invalid>: > > Hello Tomcat users, > Can someone help me find the correct documentation to deploy more than one > war file on Tomcat server. The information available on the web is confusing. > I followed this instruction
1. This mailing list expects e-mails to be in plain text. As such, any link that you might have had above, and any yellow highlighting of the text are lost. > and dropped both test1.war and test2.war files in the webapps folder. Test1.war seems to have deployed correctly. Howeevr I received multiple error messages with deploying test2.war. The errors are highlighted in yellow. > Simply drop both war files into Tomcat's webapps folder. That is all you need > to do. By default, Tomcat expands ("explodes" some say) each war (technically > a zip file) into a folder and automatically deploys the app for you. This > happens on the fly if Tomcat is already running, or on startup when you > launch Tomcat. > > and this is the error message that I received. > > [...] > org.apache.catalina.startup.HostConfig.deployWAR Deploying web application > archive [C:\apache-tomcat-9.0.46\webapps\Test2-0.0.1-SNAPSHOT.war] 2. The above name of a war file means that it will be unpacked as "Test2-0.0.1-SNAPSHOT". Thus the root URL of your web application will look like the following: http://localhost:8080/Test2-0.0.1-SNAPSHOT/ If that is what you are expecting, then OK. See https://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Naming > 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. 3.The above message mentions the Servlet Specification. Links to different versions of the specification may be found here: https://cwiki.apache.org/confluence/display/TOMCAT/Specifications 4. Regarding "org_apache_jasper_el". It looks like your war includes a library that provides implementation of EL (expression language, as used in JSPs). An implementation of EL is provided by Tomcat. As well as implementations of the Servlet, JSP and WebSocket APIs. If your pom.xml file references such dependencies, annotate them with "<scope>provided</scope>", so that they are not packed into a war file. https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org