You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Campbell, Lance" <la...@illinois.edu> on 2023/11/21 16:33:57 UTC

Web.xml file question

Tomcat 10.1
Java migration from 8 to 11
Eclipse

I am trying to migrate my thirteen tomcat web applications from java 8 to java 11. And from tomcat 9 to tomcat 10.1 .

I have been using the web.xml file for years with Java 8 and tomcat 9. However, when I built my dynamic web application with eclipse I don't see a web.xml file. I looked at the example web application in the tomcat 10.1 download. Is the below top part of the web.xml file appropriate for java 11 running 10.1


<web-app xmlns=https://jakarta.ee/xml/ns/jakartaee

  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

  xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee

                      https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"

  version="6.0"

  metadata-complete="true">

Thanks,

Lance

Re: Web.xml file question

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Lance,

On 11/21/23 11:33, Campbell, Lance wrote:
> Tomcat 10.1
> Java migration from 8 to 11
> Eclipse
> 
> I am trying to migrate my thirteen tomcat web applications from java 8 to java 11. And from tomcat 9 to tomcat 10.1 .
> 
> I have been using the web.xml file for years with Java 8 and tomcat 9. However, when I built my dynamic web application with eclipse I don't see a web.xml file. I looked at the example web application in the tomcat 10.1 download. Is the below top part of the web.xml file appropriate for java 11 running 10.1
> 
> 
> <web-app xmlns=https://jakarta.ee/xml/ns/jakartaee
> 
>    xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
> 
>    xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
> 
>                        https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
> 
>    version="6.0"
> 
>    metadata-complete="true">

It seems so. Here is the default web.xml for that branch of the server:
https://github.com/apache/tomcat/blob/10.1.x/conf/web.xml

-chris

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