Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SNEHAL-VATS opened this issue Aug 28, 2024 · 2 comments
Open

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

SNEHAL-VATS opened this issue Aug 28, 2024 · 2 comments

Comments

@SNEHAL-VATS
Copy link

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.

@akurtakov
Copy link
Contributor

@SNEHAL-VATS This is spam. Please report it.

@github-staff github-staff deleted a comment from SNEHAL-VATS Aug 28, 2024
@akurtakov
Copy link
Contributor

Do you have
image
"Download external resources..." option enabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@akurtakov @SNEHAL-VATS and others