Quando executo o comando mvn jetty:run o servidor sober, porém ao invés do index.jsp aparece a mensagem: "HTTP ERROR 503 Service Unavailable".
No console aparece essa mensagem:
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
...
Meu pom está desta forma:
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.alura.maven</groupId>
<artifactId>lojaweb</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>A custom project</name>
<url>http://www.haoxuer.com</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.1.5.RELEASE</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.32.v20200930</version>
</plugin>
</plugins>
</build>
</project>
Obs: inseri a dependência do Spring, porém o resultado continuou o mesmo.
Agradeço a quem possa me dar uma luz para acabar com esse erro!