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

New built projects cannot be deployed on server via IDE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Critical
    • None
    • 4.25.0.AM1
    • server
    • None
    • Sprint #225 Oct 2022
    • Hide

      Download https://github.com/jboss-developer/jboss-eap-quickstarts -> unzip to some folder -> run IDE -> install JBT -> restart -> import "helloworld-html5" from jboss-eap-quickstarts -> Right click on "helloworld-html5" project -> Run as -> should be visible "Run on server", but is not here.

      Show
      Download https://github.com/jboss-developer/jboss-eap-quickstarts -> unzip to some folder -> run IDE -> install JBT -> restart -> import "helloworld-html5" from jboss-eap-quickstarts -> Right click on "helloworld-html5" project -> Run as -> should be visible "Run on server", but is not here.
    • Workaround Exists
    • Hide

      1. When the project is imported, many of the expected project natures/eclipse resources are missing (Deployment descriptor, Java Resources, etc.)
      2. Duplicate maven lifecycle mapping seems to be a problem
      3. open project's pom.xml file in eclipse IDE
      4. Search for packaging element in xml file, it should be marked as erroneous
      5. click on the marker, there should be two options how to avoid error
      6. choose to ignore (using org.eclipse.m2e.core lifecycle mapping metadata file) first mapping coming from org.eclipse.m2e.jdt package
      7. Now the project should be deployed on the server, eclipse resources are shown.
      This solution requires a verification if nothing else is broken.

      Show
      1. When the project is imported, many of the expected project natures/eclipse resources are missing (Deployment descriptor, Java Resources, etc.) 2. Duplicate maven lifecycle mapping seems to be a problem 3. open project's pom.xml file in eclipse IDE 4. Search for packaging element in xml file, it should be marked as erroneous 5. click on the marker, there should be two options how to avoid error 6. choose to ignore (using org.eclipse.m2e.core lifecycle mapping metadata file) first mapping coming from org.eclipse.m2e.jdt package 7. Now the project should be deployed on the server, eclipse resources are shown. This solution requires a verification if nothing else is broken.
    • +
    • ---

    Description

      New projects do not have the "run on server" menu item. I have an old project (helloworld-html5) that was downloaded and built previously, when I import it - everything is ok (can be deployed). But the new projects doesn't works as expected and can not be run on server. (see screenshots)

      New projects can be built with "mvn clean install" and then deploy on server with "mvn wildfly:deploy" and it works as expected.

      quickstarts: https://github.com/jboss-developer/jboss-eap-quickstarts 

      Attachments

        1. my_old_project.zip
          40 kB
        2. new_project_0(bad).png
          new_project_0(bad).png
          215 kB
        3. new_project.png
          new_project.png
          29 kB
        4. old_project_1(ok).png
          old_project_1(ok).png
          35 kB
        5. old_project(ok).png
          old_project(ok).png
          225 kB

        Activity

          People

            jmaury@redhat.com Jeff MAURY
            rh-ee-olkornii Oleksii Korniienko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: