Skip to content

Error downloading 'webapp-xsd-2.5' and 'maven-v4.0.0-xsd' #1665

@SNEHAL-VATS

Description

@SNEHAL-VATS

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:

  1. 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'.
  2. 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:

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions