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
Reloading web application (Enter) fails due to java.lang.ClassNotFoundException error #6977
Comments
any sample project to reproduce? |
I have attached a simple Apache Maven project with two submodules presenting the fail in a very simple scenario:
NOTE: In the jax-rs project, error is different, but probably the cause is the same. Steps to reproduce the issue:
|
sounds due to a core maven issue https://issues.apache.org/jira/browse/MNG-7220 see all linked issues... |
https://issues.apache.org/jira/browse/MNG-7220 seems to affect to 3.8.2. I am not sure if it is fixed in 3.8.3, but problem described in #6977 is also affecting Apache Maven 3.8.3. If you prefer, I could open this task in the Apache Maven core project and close this one. |
there are many issues in Apache Maven core related to. |
@malvarezdiaz ok definitely related to Maven core issue..
This will enforce using last 9.4.x version and with such configuration you will be able to simply |
Ok, thanks. I have created a new issue in Maven core: see https://issues.apache.org/jira/browse/MNG-7300 . |
Reloading a web application executed with maven-jetty-plugin 9.4.43.v20210629, 9.4.44.v20210927 or 11.0.6 (at least) is failing when executing with apache maven 3.8.2 or 3.8.3, but it worked fine with maven 3.8.1.
Error is different with maven-jetty-plugin 9.x vs 11.x ,but in both cases, the base error is due to java.lang.ClassNotFoundException error (different classes in each case, but classes which can be correctly loaded with starting the web context the first time). Error occurs when ENTER (default key for web context restart) is typed.
NOTE: I don't know if it could be related to #5796. In our case, this happens with a basic web application (using only servlets in case of 9.x version, and using JAX-RS in case of 11.x version).
The text was updated successfully, but these errors were encountered: