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

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

Open
rumanaHaque opened this issue May 22, 2023 · 7 comments
Open
Assignees
Labels
bug Something isn't working multi-module SVT

Comments

@rumanaHaque
Copy link

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 rumanaHaque added bug Something isn't working SVT labels May 22, 2023
@rumanaHaque
Copy link
Author

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
Copy link

ragudiko commented Jun 2, 2023

@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
Copy link
Author

rumanaHaque commented Jun 2, 2023

@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.

  2. 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
  3. 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
Copy link
Author

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
Copy link

ragudiko commented Jun 7, 2023

@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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working multi-module SVT
Projects
None yet
Development

No branches or pull requests

4 participants