-
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
OSGI Documentation for activating WebAppContext is out of date #2401
Comments
Note: I added webapp.start(); at the end of the code to even see the Exception. If I don't do this, the WebApp is simply not being startet, no error message or exception is shown, the webapp is simply not available. |
The workaround from jerboaa/thermostat is for Jetty 9.1.0.v20131115 and will actually undo efforts on the jetty side in 9.4.8, it would probably be wise to undo that workaround. Why are you registering your WebAppContext as a ContextHandler? See our own test cases for WebAppContext ... |
Thank you so much! I was hunting a ghost! After changing it from ContextHandler to WebAppContext everything works! I was registering it as ContextHandler, as it is mentioned this way in https://www.eclipse.org/jetty/documentation/9.3.x/framework-jetty-osgi.html - so changing this seems to be the only requirement to have it running in 9.4. It is still documented this way in https://www.eclipse.org/jetty/documentation/9.4.x/framework-jetty-osgi.html |
Moving this to a documentation issue then. |
Doc fixed for 9.4.10. |
I just updated our Eclipse target from Neon.3 to Oxygen.3, which brings in jetty 9.4.8 instead of 9.3. Now my implementation does not work anymore.
In https://github.com/elexis/elexis-server/blob/master/bundles/es.openid/src/info/elexis/server/openid/internal/WebappStarter.java you see the start of a war file, that works really great with jetty 9.3 but stops working with 9.4.
I found out about #705 which provided some kind of a work-around, yet I can't get my original code working. I stumble from NPE to NPE.
The things I changed so far
and yet I'm stuck with
What am I doing wrong, why does it have to be so complicated now?!?
The text was updated successfully, but these errors were encountered: