-
Notifications
You must be signed in to change notification settings - Fork 37
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 Multi-module Application using Liberty Tools #497
Comments
Hi @rumanaHaque, I believe you are running a multi-module project using liberty. Multi-module projects are not explicitly supported by the liberty tools. Please see known limitations: https://github.com/OpenLiberty/liberty-tools-vscode/wiki/Known-Problems-and-Limitations. There is a work around provided. Kindly see if the work around works for you. |
Hi @gilbysunil14. I just looked at limitations doc, and I have opened both of the issues pointed out there, using the same acme-ee10 application. I am using the parent folder in this case, so should not see issue - #251. And I have changed my application parent pom.xml for this test, and also changed the location of my server.xml. So far I have not been able to find a workaround to start the project using the parent pom.xml. If you do know of any workarounds that I can use for this scenario, please let me know. Thanks. |
Hi @rumanaHaque , what is the view you see in the Liberty dashboard? And what is the command that runs in the terminal when you select the "Start" action? |
@rumanaHaque , which module contains the Liberty configuration you want to use? AcmeWebEjbEar? |
Running using
|
After working with @jagraj, I was able to get past this error. The problem was that it wasn't picking up the server.xml file from the 'config' dir - as I was specifying in the parent pom while defining the LMP.
And that wasn't picking up the server.xml defined in the config dir. As shown in the comment above -
the only feature it picked up was jsp-2.3, but the server.xml in the config dir has a lot more features. When I updated the config to include the full path name for the location of the config dir (/Users/rumanahaque/Documents/ACME_EE/acme-ee10/acme-ee/config) - as shown here:
then it was able to copy over the server file successfully, and I did see all the features defined in the server.xml being installed.
|
Testing ACME application using Liberty Tools for VScode - https://github.ibm.com/websphere/system-test/issues/1357
For my ACMEApp on GHE ((https://github.ibm.com/was-svt/acme-ee/tree/acme-ee10) - if I add the Liberty-Maven-Plugin to my AcmeWebEjbEar module, I can start Liberty Tools successfully. However, if I comment out the LMP in the ear module, and put it in the parent pom, I get this exception while doing "Start" from the LT dashboard, and my server.xml is also not being picked up from the specified location.
Here is the stanza that I added in the parent pom.xml
After adding this, if I try to start the Application using Liberty Tools - I see this error.
Also it is not picking up the server.xml defined in the config dir, and so does not install any of the required features earlier.
This shows the detail of how the Liberty Tools is started.
The text was updated successfully, but these errors were encountered: