title: Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:\Users\segreteria\Desktop...] is not valid
body: <p>I have a dynamic web project imported from Spring into Eclipse. I updated the server, it was embedded before, I updated the dependencies in the pom regarding the server, I read the other solutions regarding the various entries in the stacktrace, but nothing worked, I deleted .m2, the web.xml file I edited several times, some tutorials suggest creating a separate class for each jsp page, but this would no longer work for me a page that contains multiple forms and therefore refers to multiple methods in the class. However, I commented on the other servlets in the web.xml file because in the meantime I want you to load at least the first one that contains the references to all the others. I have been stuck on this error for several days. Can someone help me? thanks to who helps me.</p>
  <p>The jar files contained in the Maven, do I have to copy them all in the WEB-INF \ lib folder?</p>
  <p>do I need to add the pom.xml file here in the question?</p>
  <p>STACKTRACE:</p>
  <pre><code>set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server version name:   Apache Tomcat/10.0.23
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server built:          Jul 14 2022 08:16:11 UTC
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server version number: 10.0.23.0
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Name:               Windows 8
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Version:            6.2
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Architecture:          amd64
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Java Home:             C:\Program Files\Java\jdk-18.0.2.1
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Version:           18.0.2.1+1-1
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Vendor:            Oracle Corporation
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_BASE:         
  C:\Users\segreteria\Desktop\WORKSPACE3\.metadata\.plugins\org.eclipse.wst.
  server.core\tmp0
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_HOME:         C:\Program Files\Apache2\apache-tomcat-10.0.23-windows- 
  x64\apache-tomcat-10.0.23
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: - 
  Dcatalina.base=C:\Users\segreteria\Desktop\WORKSPACE3\.metadata\.plugins
  \org.eclipse.wst.server.core\tmp0
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache2\apache-tomcat- 
  10.0.23-windows-x64\apache-tomcat-10.0.23
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: - 
  Dwtp.deploy=C:\Users\segreteria\Desktop\WORKSPACE3\.metadata\.plugins
  \org.eclipse.wst.server.core\tmp0\wtpwebapps
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dfile.encoding=UTF-8
  set 20, 2022 1:29:31 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -XX:+ShowCodeDetailsInExceptionMessages
  set 20, 2022 1:29:31 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
  INFO: Loaded Apache Tomcat Native library [1.2.35] using APR version [1.7.0].
  set 20, 2022 1:29:31 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
  INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random 
  [true], UDS [true].
  set 20, 2022 1:29:31 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
  INFO: OpenSSL successfully initialized [OpenSSL 1.1.1q  5 Jul 2022]
  set 20, 2022 1:29:32 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler [&quot;http-nio-8080&quot;]
  set 20, 2022 1:29:32 PM org.apache.catalina.startup.Catalina load
  INFO: Server initialization in [2187] milliseconds
  set 20, 2022 1:29:33 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service [Catalina]
  set 20, 2022 1:29:33 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet engine: [Apache Tomcat/10.0.23]
  set 20, 2022 1:29:34 PM org.apache.catalina.core.ContainerBase startInternal
  SEVERE: A child container failed during start
  java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 
  Failed to start component [org.apache.catalina.webresources.StandardRoot@74bada02]
  at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
  at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:886)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  at 
  org.apache.tomcat.util.threads.InlineExecutorService.execute(
  InlineExecutorService.java:75)
  at 
  java.base/java.util.concurrent.AbstractExecutorService.submit(
  AbstractExecutorService.java:145)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
  at 
  java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(
  DirectMethodHandleAccessor.java:104)
  at java.base/java.lang.reflect.Method.invoke(Method.java:577)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
  Caused by: org.apache.catalina.LifecycleException: Failed to start component 
  [org.apache.catalina.webresources.StandardRoot@74bada02]
  at 
  org.apache.catalina.util.LifecycleBase.handleSubClassException(
  LifecycleBase.java:440)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
  at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4834)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4972)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  at 
  org.apache.tomcat.util.threads.InlineExecutorService.execute(
  InlineExecutorService.java:75)
  at java.base/java.util.concurrent.AbstractExecutorService.submit(
  AbstractExecutorService.java:145)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
  ... 19 more
  Caused by: java.lang.IllegalArgumentException: The main resource set specified 
  [C:\Users\segreteria\Desktop\WORKSPACE3\.metadata\.plugins\
  org.eclipse.wst.server.core\tmp0\wtpwebapps\Parlamento] is not valid
  at 
  org.apache.catalina.webresources.StandardRoot.createMainResourceSet
  (StandardRoot.java:762)
  at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:719)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  ... 28 more
  
  set 20, 2022 1:29:34 PM org.apache.catalina.core.ContainerBase startInternal
  SEVERE: A child container failed during start
  java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A 
  child container failed during start
  at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
  at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(
  DirectMethodHandleAccessor.java:104)
  at java.base/java.lang.reflect.Method.invoke(Method.java:577)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
  Caused by: org.apache.catalina.LifecycleException: A child container failed during 
  start
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:886)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  at org.apache.tomcat.util.threads.InlineExecutorService.execute(
  InlineExecutorService.java:75)
  at 
  java.base/java.util.concurrent.AbstractExecutorService.submit(
  AbstractExecutorService.java:145)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
  ... 11 more
  Caused by: java.util.concurrent.ExecutionException: 
  org.apache.catalina.LifecycleException: Failed to start component 
  [org.apache.catalina.webresources.StandardRoot@74bada02]
  at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
  at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
  ... 19 more
  Caused by: org.apache.catalina.LifecycleException: Failed to start component 
  [org.apache.catalina.webresources.StandardRoot@74bada02]
  at 
  org.apache.catalina.util.LifecycleBase.handleSubClassException(
  LifecycleBase.java:440)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
  at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4834)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4972)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  at org.apache.tomcat.util.threads.InlineExecutorService.execute(
  InlineExecutorService.java:75)
  at java.base/java.util.concurrent.AbstractExecutorService.submit(
  AbstractExecutorService.java:145)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
  ... 19 more
  Caused by: java.lang.IllegalArgumentException: The main resource set specified 
  [C:\Users\segreteria\Desktop\WORKSPACE3\.metadata\.plugins\
  org.eclipse.wst.server.core\tmp0\wtpwebapps\Parlamento] is not valid
  at 
  org.apache.catalina.webresources.StandardRoot.createMainResourceSet(
  StandardRoot.java:762)
  at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:719)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  ... 28 more
  
  set 20, 2022 1:29:34 PM org.apache.catalina.startup.Catalina start
  SEVERE: The required Server component failed to start so Tomcat is unable to start.
  org.apache.catalina.LifecycleException: A child container failed during start
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
  at 
  java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(
  DirectMethodHandleAccessor.java:104)
  at java.base/java.lang.reflect.Method.invoke(Method.java:577)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
  Caused by: java.util.concurrent.ExecutionException:  
  org.apache.catalina.LifecycleException: A child container failed during start
  at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
  at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
  ... 11 more
  Caused by: org.apache.catalina.LifecycleException: A child container failed during 
  start
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:886)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  at org.apache.tomcat.util.threads.InlineExecutorService.execute(
  InlineExecutorService.java:75)
  at 
  java.base/java.util.concurrent.AbstractExecutorService.submit(
  AbstractExecutorService.java:145)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
  ... 11 more
  Caused by: java.util.concurrent.ExecutionException: 
  org.apache.catalina.LifecycleException: Failed to start component 
  [org.apache.catalina.webresources.StandardRoot@74bada02]
  at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
  at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
  ... 19 more
  Caused by: org.apache.catalina.LifecycleException: Failed to start component 
  [org.apache.catalina.webresources.StandardRoot@74bada02]
  at 
  org.apache.catalina.util.LifecycleBase.handleSubClassException
  (LifecycleBase.java:440)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
  at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4834)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4972)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
  at org.apache.tomcat.util.threads.InlineExecutorService.execute(
  InlineExecutorService.java:75)
  at java.base/java.util.concurrent.AbstractExecutorService.submit(
  AbstractExecutorService.java:145)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
  ... 19 more
  Caused by: java.lang.IllegalArgumentException: The main resource set specified 
  [C:\Users\segreteria\Desktop\WORKSPACE3\.metadata\.plugins\
  org.eclipse.wst.server.core\tmp0\wtpwebapps\Parlamento] is not valid
  at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(
  StandardRoot.java:762)
  at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:719)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
  ... 28 more
  
  set 20, 2022 1:29:34 PM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler [&quot;http-nio-8080&quot;]
  set 20, 2022 1:29:34 PM org.apache.catalina.core.StandardService stopInternal
  INFO: Stopping service [Catalina]
  set 20, 2022 1:29:34 PM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler [&quot;http-nio-8080&quot;]
  </code></pre>
  <p>web.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;web-app xmlns=&quot;https://jakarta.ee/xml/ns/jakartaee&quot;
  xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation=&quot;https://jakarta.ee/xml/ns/jakartaee
                    https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd&quot;
  version=&quot;5.0&quot;&gt;
  &lt;!--  
  &lt;display-name&gt;Parlamento2&lt;/display-name&gt; --&gt;
  
  
  
  &lt;display-name&gt;Parlamento&lt;/display-name&gt;
  &lt;!--
  &lt;welcome-file-list&gt;
  
  &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  --&gt;
  &lt;!-- 
  &lt;welcome-file-list&gt;
              &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
             &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet- 
  class&gt;   
      &lt;/welcome-file-list&gt;
       --&gt;
         
       &lt;servlet&gt; 
   &lt;servlet-name&gt;index&lt;/servlet-name&gt; 
   &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet-class&gt; 
   &lt;/servlet&gt;
      
      &lt;servlet-mapping&gt;
           &lt;servlet-name&gt;index&lt;/servlet-name&gt;
           &lt;url-pattern&gt;/&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      
     
      
      
        
       
       &lt;servlet&gt;
              &lt;servlet-name&gt;parlamentari&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet- 
   class&gt; 
      &lt;/servlet&gt;
      
       &lt;servlet-mapping&gt;
       &lt;servlet-name&gt;parlamentari&lt;/servlet-name&gt;
       &lt;url-pattern&gt;/parlamentari&lt;/url-pattern&gt;
       &lt;/servlet-mapping&gt;
      
      &lt;!-- 
      
      
       &lt;servlet&gt;
              &lt;servlet-name&gt;lista_periodi_cariche.jsp&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet- 
   class&gt;
      &lt;/servlet&gt;
      
      &lt;servlet-mapping&gt;
           &lt;servlet-name&gt;lista_periodi_cariche.jsp&lt;/servlet-name&gt;
           &lt;url-pattern&gt;/lista_periodi_cariche&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      
      
      
      
      &lt;servlet&gt;
              &lt;servlet-name&gt;showParlamentare.jsp&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet- 
   class&gt;
      &lt;/servlet&gt;
      
      &lt;servlet-mapping&gt;
           &lt;servlet-name&gt;showParlamentare.jsp&lt;/servlet-name&gt;
           &lt;url-pattern&gt;/showParlamentare&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      
      
      
      
      &lt;servlet&gt;
              &lt;servlet-name&gt;parlamentareDeleted.jsp&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet- 
   class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
           &lt;servlet-name&gt;parlamentareDeleted.jsp&lt;/servlet-name&gt;
           &lt;url-pattern&gt;/parlamentareDeleted&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      
      
      
      
      &lt;servlet&gt;
              &lt;servlet-name&gt;lista_parlamentari.jsp&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet- 
   class&gt;
      &lt;/servlet&gt;
      
      &lt;servlet-mapping&gt;
           &lt;servlet-name&gt;lista_parlamentari.jsp&lt;/servlet-name&gt;
           &lt;url-pattern&gt;/lista_parlamentari&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      
      
      
      &lt;servlet&gt;
              &lt;servlet-name&gt;showParlamentare2.jsp&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet- 
   class&gt;
      &lt;/servlet&gt;
      
      &lt;servlet-mapping&gt;
           &lt;servlet-name&gt;showParlamentare2.jsp&lt;/servlet-name&gt;
           &lt;url-pattern&gt;/updateParlamentare&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      
      &lt;servlet&gt;
              &lt;servlet-name&gt;showParlamentare3.jsp&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.giuggiola.controller.ParlamentareController&lt;/servlet- 
    class&gt;
      &lt;/servlet&gt;
      
      &lt;servlet-mapping&gt;
           &lt;servlet-name&gt;showParlamentare3.jsp&lt;/servlet-name&gt;
           &lt;url-pattern&gt;/getParlamentare&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
       --&gt;
      
   &lt;!--  
      &lt;context-param&gt;
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;/WEB-INF/applicationContext.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
      --&gt;
      &lt;/web-app&gt;
  </code></pre>
  <p>pom.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; 
  xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 
  https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.5.4&lt;/version&gt;
      &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  &lt;groupId&gt;com.giuggiola&lt;/groupId&gt;
  &lt;artifactId&gt;Parlamento&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;bootjpa&lt;/name&gt;
  &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
  &lt;properties&gt;
      &lt;java.version&gt;18&lt;/java.version&gt;
      
      
  &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
  
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;jakarta.servlet&lt;/groupId&gt;
  &lt;artifactId&gt;jakarta.servlet-api&lt;/artifactId&gt;
  &lt;version&gt;6.0.0&lt;/version&gt;
  &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
  &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
  &lt;version&gt;2.7.3&lt;/version&gt;
  &lt;/dependency&gt;
  
      
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
  &lt;artifactId&gt;spring-expression&lt;/artifactId&gt;
  &lt;version&gt;5.3.22&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;
  &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;
  &lt;!--    &lt;version&gt;
    5.0.1
  &lt;/version&gt; --&gt;
  &lt;/dependency&gt;
  
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
  &lt;artifactId&gt;spring-boot-starter-data-elasticsearch&lt;/artifactId&gt;
  &lt;!--    &lt;scope&gt;runtime&lt;/scope&gt; --&gt;
       &lt;version&gt;2.6.3&lt;/version&gt; &lt;!--$NO-MVN-MAN-VER$--&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
  &lt;artifactId&gt;guava&lt;/artifactId&gt;
  &lt;version&gt;19.0&lt;/version&gt;
  &lt;/dependency&gt;
  
  
  
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
  &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
       &lt;version&gt;2.6.2&lt;/version&gt; &lt;!--$NO-MVN-MAN-VER$--&gt;
  
  &lt;/dependency&gt;
  
    
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
          &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      
      &lt;dependency&gt;
  &lt;groupId&gt;com.vladmihalcea&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate-types-55&lt;/artifactId&gt;
  &lt;version&gt;2.14.0&lt;/version&gt;
  &lt;/dependency&gt; 
      
      
  &lt;dependency&gt;
  &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
  &lt;artifactId&gt;tomcat-jasper&lt;/artifactId&gt;
  &lt;version&gt;10.0.23&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
  &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
  &lt;version&gt;4.3.9.Final&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.apache.tomcat.embed&lt;/groupId&gt;
  &lt;artifactId&gt;tomcat-embed-jasper&lt;/artifactId&gt;
  &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
  &lt;artifactId&gt;jstl&lt;/artifactId&gt;
  &lt;/dependency&gt;
      
      
  &lt;dependency&gt;
  &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
  &lt;artifactId&gt;lombok&lt;/artifactId&gt;
    &lt;version&gt;1.18.22&lt;/version&gt; &lt;!--$NO-MVN-MAN-VER$--&gt;
  &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
  &lt;artifactId&gt;lombok-maven&lt;/artifactId&gt;
  &lt;version&gt;1.18.20.0&lt;/version&gt;
  &lt;type&gt;pom&lt;/type&gt;
  &lt;/dependency&gt;
  
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
  &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
  &lt;!--  &lt;version&gt;2.6.4&lt;/version&gt;  --&gt;
  &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
  &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
  &lt;version&gt;2.6.4&lt;/version&gt;
  &lt;type&gt;pom&lt;/type&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;javax.persistence&lt;/groupId&gt;
  &lt;artifactId&gt;javax.persistence-api&lt;/artifactId&gt;
  &lt;version&gt;2.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
  &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
  &lt;version&gt;5.9.0&lt;/version&gt;
  &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
  &lt;artifactId&gt;common-tomcat-maven-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.2&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
  &lt;groupId&gt;org.apache.tomcat.embed&lt;/groupId&gt;
  &lt;artifactId&gt;tomcat-embed-core&lt;/artifactId&gt;
  &lt;version&gt;10.0.23&lt;/version&gt;
  &lt;/dependency&gt;
  
  
  &lt;/dependencies&gt; 
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;/plugin&gt;
          
      &lt;/plugins&gt;
      
  &lt;resources&gt;
      &lt;resource&gt;
          &lt;directory&gt;src/main/resources&lt;/directory&gt;
          &lt;filtering&gt;true&lt;/filtering&gt;
      &lt;/resource&gt;
  &lt;/resources&gt;
  
  
  &lt;/build&gt;
  </code></pre>