OpenLiberty / liberty-tools-vscode

Visual Studio Code extension for Liberty Tools
https://marketplace.visualstudio.com/items?itemName=Open-Liberty.liberty-dev-vscode-ext
Eclipse Public License 2.0
17 stars 34 forks source link

SVT:Cannot start one of the projects in Acme in the Liberty Dashboard #251

Open rumanaHaque opened 1 year ago

rumanaHaque commented 1 year ago

As part of my ACME app test - https://github.ibm.com/websphere/system-test/issues/771

When I install Liberty Tools, I see 2 projects in the Liberty Dashboard. image

When I click on acme-ee10, I can start/stop the server successfully. However, when I try the AcmeWebEjbEar, I can't start the server. This is the error that I get when I try to start the server.


rumanahaque@rumanas-mbp-new AcmeWebEjbEar % mvn io.openliberty.tools:liberty-maven-plugin:dev -f "/Users/rumanahaque/Documents/Acme_ee10/acme-ee/AcmeWebEjbEar/pom.xml"
[INFO] Scanning for projects...
[INFO] 
[INFO] -------------------< AcmeAnnuityMaven:AcmeWebEjbEar >-------------------
[INFO] Building AcmeWebEjbEar 0.0.1-SNAPSHOT
[INFO] --------------------------------[ ear ]---------------------------------
[WARNING] The POM for AcmeAnnuityMaven:AcmeAnnuityWeb:war:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for AcmeAnnuityMaven:AcmeAnnuityJAXRSWSes_jaxrs20:war:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for AcmeAnnuityMaven:AcmeAnnuityJAXRSWSes_jaxrs11_m1:war:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for AcmeAnnuityMaven:AcmeAnnuityJAXRSWSes_jaxrs11_m2:war:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for AcmeAnnuityMaven:AcmeAnnuityPojoWSes:war:0.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.205 s
[INFO] Finished at: 2023-05-22T16:17:23-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project AcmeWebEjbEar: Could not resolve dependencies for project AcmeAnnuityMaven:AcmeWebEjbEar:ear:0.0.1-SNAPSHOT: The following artifacts could not be resolved: AcmeAnnuityMaven:AcmeAnnuityWeb:war:0.0.1-SNAPSHOT, AcmeAnnuityMaven:AcmeAnnuityJAXRSWSes_jaxrs20:war:0.0.1-SNAPSHOT, AcmeAnnuityMaven:AcmeAnnuityJAXRSWSes_jaxrs11_m1:war:0.0.1-SNAPSHOT, AcmeAnnuityMaven:AcmeAnnuityJAXRSWSes_jaxrs11_m2:war:0.0.1-SNAPSHOT, AcmeAnnuityMaven:AcmeAnnuityPojoWSes:war:0.0.1-SNAPSHOT: Could not find artifact AcmeAnnuityMaven:AcmeAnnuityWeb:war:0.0.1-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
rumanaHaque commented 1 year ago

I do have the same application/workspace in Eclipse - where I see both the projects.

image

In Eclipse - I can start both projects successfully.

ragudiko commented 1 year ago

@rumanaHaque can you share the steps to reproduce the issue. I am not able recreate when I run extension, I see only one module(parent). I tried to connect over slack for clarifications couple of days back. You can respond on slack or here.

rumanaHaque commented 1 year ago

@ragudiko I just tried this using the latest driver, and I still get the same problem.

Here are the steps to reproduce: 1) Instal lthe Acme ee10 app from this repo https://github.ibm.com/was-svt/acme-ee/tree/acme-ee10.

1) Add the server.xml to the src/main/liberty/config dir in AcmeWebEjbEar project, and then these applications will be shown in the Liberty dashboard.

image

1) If I click on acme-ee10, the application starts successfully. However, if I clik on AcmeWebEjbEar, then I get the error as shown above.

rumanaHaque commented 1 year ago

As mentioned earlier, even if we cannot fix starting the application from AcmeWebEjbEar, if we can fix this by not displaying the AcmeWebEjbEar option, that will also be useful.

ragudiko commented 1 year ago

@rumanaHaque please can you share screenshot of the complete screen instead of just liberty dashboard. I want to understand what is your folder structure. I opened the project shared by you, I see only one module listed and start server event works fine as shown below. I can reproduce issue only when I load the acme project under src/test/resource folder of our source code. But Trevor suggested, we should load project from outside the source code folder location.

multimodule_vscode_251
rumanaHaque commented 1 year ago

Here's the screenshot with my folder structure. I have ACME_EE10, then acme_ee, and then the AcmeWebEjbEar. So I am using the parent folder, one level higher than yours.

image
rumanaHaque commented 1 year ago

If I do open using the child folder - i.e. the acme-ee inside the acme-ee10, then I also see only the acme-ee10 in the Liberty dashboard.

image