Buongiorno,
Uso IntelliJ come ide, e questo è il mio pom
Si sono a conoscenza che le librerie mese nella cartella tomcat/lib sono "shared" con tutte le applicazioni caricate sul server.codice:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>sfm</groupId> <artifactId>sfm</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>sfm Maven Webapp</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>21</maven.compiler.source> <maven.compiler.target>21</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <!-- https://mvnrepository.com/artifact/org.glassfish.jersey.bundles/jaxrs-ri --> <dependency> <groupId>org.glassfish.jersey.bundles</groupId> <artifactId>jaxrs-ri</artifactId> <version>3.1.10</version> </dependency> <!-- https://mvnrepository.com/artifact/jakarta.platform/jakarta.jakartaee-web-api --> <dependency> <groupId>jakarta.platform</groupId> <artifactId>jakarta.jakartaee-web-api</artifactId> <version>11.0.0</version> <scope>provided</scope> </dependency> <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql --> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.7.5</version> <scope>provided</scope> </dependency> <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>4.0.5</version> </dependency> </dependencies> <build> <finalName>sfm</finalName> </build> </project>
Condivido sul fatto di utilizzare maven e poi andare a posizionare manualmente la libreria non è "sensato". Anche se spero che sia un caso isolato questo di tomcat.
Resto in tua attesa. Grazie