-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix/jetty 12 restore ee n fcgi #9796
Conversation
Signed-off-by: Simone Bordet <[email protected]>
Signed-off-by: Simone Bordet <[email protected]>
@gregw The problem is that by the time we try to load the ee10 This does not happen in ee9 because |
Signed-off-by: Simone Bordet <[email protected]>
Okay, my classloader changes just broke a large number of tests. |
Can you summarize what you are trying to do in the fix? |
During deployment, the Just before that, we know the environment classloader so I thought that it must be set as After the creation of the instance, I now set the environment classloader as the classloader of the Eventually, this For ee9, this works because of the code in For ee10 it does not work because So this fix is an attempt to set the |
@sbordet if you are using servlets, then you should be using a getContext().call(() ->
{
// defers the calling of super.doStart()
startContext();
contextInitialized();
}, null); The servlets should be initialised with the classloader set inside So perhaps the problem is that the classloader itself has not been set to the environment classloader? |
@sbordet perhaps the fix is to add the following to the constructor of the if (this.getClass().getClassLoader() != Server.class.getClassLoader())
setClassLoader(this.getClass().getClassLoader()); or maybe something like that can be done in the base Ultimately, a context handler that has been loaded from an environment loader should start with that loader as it's classloader. |
Set the initial classloader in ContextHandler
Set the initial classloader in ContextHandler
…oader' into 'fix/jetty-12-restore-eeN-fcgi'.
Restored ee9 and ee10 FastCGI proxying to be used on the websites.