eclipse-wildwebdeveloper / wildwebdeveloper

Simple and productive Web Development Tools in the Eclipse IDE
https://projects.eclipse.org/projects/tools.wildwebdeveloper
Eclipse Public License 2.0
190 stars 71 forks source link

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

Open SNEHAL-VATS opened 2 months ago

SNEHAL-VATS commented 2 months ago

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">

<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

<?xml version="1.0" encoding="UTF-8"?>

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 commented 2 months ago

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

akurtakov commented 3 weeks ago

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