Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26916

Dynamic Web Project shows errors after converting to maven project when using WildFly 18 as target runtime and Java 11

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.13.0.AM1
    • Fix Version/s: 4.17.0.AM1
    • Component/s: maven
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1) Add and configure 2 maven repositories to the RHCRS (Preferences -> JBoss Tools -> JBoss Maven Integration -> Configure Maven Repositories...):

      2) Create new Dynamic Web Project (use WildFly 18 runtime, Java 11 and CDI 2.0)
      3) Convert the project to maven project

      • right click on the project -> Configure -> Convert to Maven Project
      • packaging = WAR
      • click Finish

      4) On the next window wait untill all the Maven Dependencies become GREEN TICKS, then click Finish (whether the "Delete original references from project" checkbox is or is not checked does not matter, the issue appears anyway)
      5) Now you see the following errors in the Problems view:

      For more information about used settings to reproduce this issue see the 3 following printscreens:

      Show
      1) Add and configure 2 maven repositories to the RHCRS ( Preferences -> JBoss Tools -> JBoss Maven Integration -> Configure Maven Repositories... ): ID: jboss-public-repository Name: JBoss Public URL: https://repository.jboss.org/nexus/content/groups/public-jboss/ ID: jboss-maven-repository Name: jboss-maven-repository URL: https://repository.jboss.org/maven2/ 2) Create new Dynamic Web Project (use WildFly 18 runtime , Java 11 and CDI 2.0) 3) Convert the project to maven project right click on the project -> Configure -> Convert to Maven Project packaging = WAR click Finish 4) On the next window wait untill all the Maven Dependencies become GREEN TICKS, then click Finish (whether the "Delete original references from project" checkbox is or is not checked does not matter, the issue appears anyway) 5) Now you see the following errors in the Problems view: For more information about used settings to reproduce this issue see the 3 following printscreens:
    • Workaround Description:
      Hide

      Insert the following code to the dependency section in the pom.xml:

      <dependency>
         <groupId>jakarta.jws</groupId>
         <artifactId>jakarta.jws-api</artifactId>
         <version>1.1.1</version>
      </dependency>
      
      Show
      Insert the following code to the dependency section in the pom.xml: <dependency> <groupId>jakarta.jws</groupId> <artifactId>jakarta.jws-api</artifactId> <version>1.1.1</version> </dependency>

      Description

      Basic information on this issue:

      • Issue appears only when using WildFly 18 as target runtime and Java 11 (see the 'Steps to reproduce' section and printscreens in the attachment)
      • Issue does not appear on WildFly 16 and on WildFly 17 (tested on both Java 8 and 11; this issue has not appeared even if I have mixed Java version settings in workspace/server runtime JRE/Project fFacets, no issue for any combination)

      Error messages from the Problems view:

      • Missing artifact jakarta.jws:jakarta.jws-api:jar:2.1.0 pom.xml
      • The container 'Maven Dependencies' references non existing library '/Users/zcervink/.m2/repository/jakarta/jws/jakarta.jws-api/2.1.0/jakarta.jws-api-2.1.0.jar'
      • The project cannot be built until build path errors are resolved

      Tested solution - insert the following dependency into the pom.xml and all the problems in the Problems view disappear

      <dependency>
         <groupId>jakarta.jws</groupId>
         <artifactId>jakarta.jws-api</artifactId>
         <version>1.1.1</version>
      </dependency>
      

      Red Hat CodeReady Studio version (version used to testing when creating this JIRA):

      Version: 12.13.0.GA
      Build id: GA-v20191024-0752-B5215
      Build date: 20191024-0752

      Red Hat CodeReady Studio (newest version used to testing when updating this JIRA):

      Version: 12.14.0.AM1
      Build id: AM1-v20191122-0713-B5330
      Build date: 20191122-0713

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jeffmaury Jeff MAURY
                  Reporter:
                  zcervink Zbyněk Červinka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: