<modelVersion>4.0.0</modelVersion>
<groupId>com.jerseydemo</groupId>
<artifactId>JerseyDemo</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>JerseyDemo</name>
<build>
<finalName>JerseyDemo</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<inherited>true</inherited>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey</groupId>
<artifactId>jersey-bom</artifactId>
<version>${jersey.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
<!-- use the following artifactId if you don't need servlet 2.x compatibility -->
<!-- artifactId>jersey-container-servlet</artifactId -->
</dependency>
<!-- uncomment this to get JSON support
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-moxy</artifactId>
</dependency>
-->
</dependencies>
<properties>
<jersey.version>2.5</jersey.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Errors:
Error while downloading 'http://maven.apache.org/maven-v4_0_0.xsd' to 'C:\Users\Snehal Vats.lemminx\cache\http\maven.apache.org\maven-v4_0_0.xsd' : '[java.nio.file.NoSuchFileException] C:\Users\Snehal Vats\AppData\Local\Temp\lemminx-temp1289033949156560068\maven-v4_0_0.xsd1051662935066513435.lemminx with code: 200 OK'.
cvc-elt.1.a: Cannot find the declaration of element 'project'.
web.xml
<?xml version="1.0" encoding="UTF-8"?>
Jersey Web Applicationorg.glassfish.jersey.servlet.ServletContainerjersey.config.server.provider.packagescom.jerseydemo.JerseyDemo1Jersey Web Application/webapi/*
Errors:
Multiple annotations found at this line:
Error while downloading 'http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd' to 'C:\Users\Snehal
Vats.lemminx\cache\http\java.sun.com\xml\ns\javaee\web-app_2_5.xsd' : '[java.nio.file.NoSuchFileException] C:\Users\Snehal Vats\AppData\Local\Temp\lemminx-
temp1289033949156560068\web-app_2_5.xsd6204533364769098365.lemminx with code: 200 OK'.
cvc-elt.1.a: Cannot find the declaration of element 'web-app'.
PLEASE HELP ME OUT IN THIS ONE. I manually downloaded 'web-app_2_5.xsd' and 'maven_4_0_0.xsd' and gave their locations but to no avail.
I am trying to test run Java RESTEasy and Jersey projects, as a trial and have installed Apache tomcat v9 from the eclipse system itself.
I was following the tutor when i chanced upon these errors, which were not visible in others' projects.
pom.xml
<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">
Errors:
web.xml
<?xml version="1.0" encoding="UTF-8"?>
Errors:
PLEASE HELP ME OUT IN THIS ONE. I manually downloaded 'web-app_2_5.xsd' and 'maven_4_0_0.xsd' and gave their locations but to no avail.