You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
<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
Jersey Web Application
org.glassfish.jersey.servlet.ServletContainer
jersey.config.server.provider.packages
com.jerseydemo.JerseyDemo
1
Jersey 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.
The text was updated successfully, but these errors were encountered:
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
Errors:
web.xml
Jersey Web Application org.glassfish.jersey.servlet.ServletContainer jersey.config.server.provider.packages com.jerseydemo.JerseyDemo 1 Jersey Web Application /webapi/*Errors:
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'.
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.
The text was updated successfully, but these errors were encountered: