-
Notifications
You must be signed in to change notification settings - Fork 91
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
dev mode in multimodule fails to restart server #1726
Comments
@andre-doherty Can you include the console messages for the initial startup? I want to compare the features it installs on initial startup vs the restart. The console messages you included show the restart tries to install the same list of features as the server.xml. So I am not sure what you meant by:
|
I would like you to remove the features from the pom.xml. Just leave the acceptLicense in the pom.xml. The features should be in the server.xml and will get installed by the plugin. I believe the server is getting created by default with a server.xml that includes the Where is your server.xml located? Do you need to add the location to the plugin configuration in the pom.xml? If it is not in |
Hello @cherylking, Please find the following : [INFO] [AUDIT ] CWWKT0016I: Application Web disponible, (default_host) : http://localhost:9080/samplepim/ Everything is fine until i try to restart the server... |
The server.xml is correctly found (located in the default location) : datasources, libraries are configured. So i have tried to remove the features list in the pom, doesn't change anything. Regards |
Actually the plugin behaves just as if there was no server.xml, as if the module name specified in the command line with the pl switch was not kept. |
hello @cherylking, Do you need some more elements ? Regards, |
@andre-doherty Can you provide a sample project to recreate? Until then, I have a suggestion. Instead of using the |
Hello @cherylking, I have tried to minimize it as max as possible. Note : i am using the following : Maven home: /opt/homebrew/Cellar/maven/3.9.3/libexec
Java version: 17.0.7, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk@17/17.0.7/libexec/openjdk.jdk/Contents/Home
Default locale: fr_FR, platform encoding: UTF-8
OS name: "mac os x", version: "14.0", arch: "aarch64", family: "mac"
André |
Thanks for the sample project @andre-doherty. I will try to work on this next week. Did you try the workaround? |
hello @cherylking,
André |
You can test the fix with the |
FWIW, just noting that I tried and failed to recreate this with Maven v3.8.8.... but I did succeed recreating on the noted v3.9.3. Thought that was interesting to observe the version-specific behavior for this Maven API. |
hello @cherylking, @scottkurz, I have been able to test the version 3.9-SNAPSHOT this morning. Thanks a lot for your action ! |
hello,
Please let me report an issue regarding the liberty-maven-plugin.
When i try to restart a server configured in a submodule, using the 'r' key in the console, it usually fails as the plugin tries to add some features in the running server instance, which is killed as the features might be incompatible.
When i try to restart i have the following error :
[INFO] Parsing the server file for features and includes: defaultServer/server.xml
[INFO] plugin listed esa: []
[INFO] Installing features: [ejbLite-3.1, jsp-2.2, javaee-7.0, cdi-1.0, transportSecurity-1.0, jaxws-2.2, localConnector-1.0, jaxrs-1.1, jpa-2.0, beanValidation-1.0]
[ERROR] Could not restart the server.
io.openliberty.tools.common.plugins.util.PluginExecutionException: org.apache.maven.plugin.MojoExecutionException: Error installing features for server defaultServer
at io.openliberty.tools.maven.server.DevMojo$DevMojoUtil.libertyInstallFeature (DevMojo.java:408)
at io.openliberty.tools.common.plugins.util.DevUtil.restartServer (DevUtil.java:1853)
at io.openliberty.tools.common.plugins.util.DevUtil$HotkeyReader.readInput (DevUtil.java:2610)
at io.openliberty.tools.common.plugins.util.DevUtil$HotkeyReader.run (DevUtil.java:2577)
at java.lang.Thread.run (Thread.java:750)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error installing features for server defaultServer
at io.openliberty.tools.maven.server.InstallFeatureMojo.doInstallFeatures (InstallFeatureMojo.java:77)
at io.openliberty.tools.maven.server.InstallFeatureMojo.execute (InstallFeatureMojo.java:66)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo (MojoExecutor.java:120)
at io.openliberty.tools.maven.server.StartDebugMojoSupport.runLibertyMojo (StartDebugMojoSupport.java:362)
at io.openliberty.tools.maven.server.StartDebugMojoSupport.runLibertyMojoInstallFeature (StartDebugMojoSupport.java:347)
at io.openliberty.tools.maven.server.DevMojo.runLibertyMojoInstallFeature (DevMojo.java:1870)
at io.openliberty.tools.maven.server.DevMojo$DevMojoUtil.libertyInstallFeature (DevMojo.java:406)
at io.openliberty.tools.common.plugins.util.DevUtil.restartServer (DevUtil.java:1853)
at io.openliberty.tools.common.plugins.util.DevUtil$HotkeyReader.readInput (DevUtil.java:2610)
at io.openliberty.tools.common.plugins.util.DevUtil$HotkeyReader.run (DevUtil.java:2577)
at java.lang.Thread.run (Thread.java:750)
Caused by: io.openliberty.tools.common.plugins.util.PluginExecutionException: A feature conflict error occurred while installing features: [ejbLite-3.1, jsp-2.2, javaee-7.0, cdi-1.0, transportSecurity-1.0, jaxws-2.2, localConnector-1.0, jaxrs-1.1, jpa-2.0, beanValidation-1.0]: CWWKF1405E: Les fonctions de singleton jsp-2.2 et jsp-2.3 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton cdi-1.0 et cdi-1.2 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton beanValidation-1.0 et beanValidation-1.1 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton eeCompatible-6.0,eeCompatible-7.0, et eeCompatible-8.0 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton ejb-3.1 et ejb-3.2 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton interceptor-1.1 et interceptor-1.2 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton jpa-2.0 et jpa-2.1 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton internal-1.6 et internal-1.7 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton el-2.2 et el-3.0 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton jaxrs-1.1 et jaxrs-2.0 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton transaction-1.1 et transaction-1.2 sont incompatibles et ne peuvent pas être installées simultanément.
CWWKF1405E: Les fonctions de singleton ejbLite-3.1 et ejbLite-3.2 sont incompatibles et ne peuvent pas être installées simultanément.
It seems the plugin looses track of the actual server configuration at this point.
This pb doesnt show when invoking dev mode within the -ws submodule directory.
Regards
André
The text was updated successfully, but these errors were encountered: