-
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
Jetty 12 fails to start WebApp Bundle with OSGi Boot bundle (or when packaged) #11377
Comments
It looks like our packaged runtime is also failing with a similar error when it tries to boot the webapp bundle. Just guessing, but I think the cause is related to the fact that this is not a |
The jetty code base changed from using the |
I can try but that can only work around the osgi.boot related issue. Correct me if I'm wrong, but shouldn't the code in this block alter the value of the war variable? It seems like that even if jvm |
Setting both the
We need the osgi.boot bundle to boot up the jetty context with defaults in OSGi context and also to recognize and boot our webapp bundle. According to my understanding, the |
After a bit of further testing, it looks like Jetty 12 and the web app can successfully boot on Unix machines without any Path issues. So this could be only affecting deployments on Windows machines. |
@cmark yeah, I think the change to |
Fixes in #11418 do resolve the osgi.boot path issue when running our integration tests on a developer machine with Windows 10. With that we can start using the osgi.boot bundle again in our tests. Unfortunately, the other error thrown at |
Thans @cmark I'll take a look at the |
@joakime as you're looking into windows issues, can you also look at the Exception generated when performing a The OP here has the full stack trace: #11377 (comment) |
@cmark I've pushed a speculative fix for |
Yeah sure, I will rebuild and retest now. |
@janbartel I'm happy to report that the speculative fix resolves the other error. Nice! Thanks! |
* Issue #11377 fix jettyhome osgi path and WebInfConfiguration.unpack for windows
Jetty version(s)
Jetty 12.0.6
Jetty Environment
ee10
Java version/vendor
(use: java -version)
openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing)
OS type/version
Microsoft Windows 10 22H2 (OS Build 19045.3930)
Description
Thank you for fixing the osgi.boot bundle config errors (#11280) and releasing it as part of 12.0.6.
Unfortunately, we are still unable to our tests and our runtime due to an invalid path exception error.
Local dev env error when starting our test launch configuration from Eclipse:
We are configuring the osgi.boot bundle using the
jetty.home.bundle
jvm argument:The error is similar in our build regardless of whether we use the osgi.boot bundle or using custom
jetty*.xml
configuration:Our web app bundle should boot based on a WEB-INF/web.xml file, but it looks like there is a preConfigure step that runs for every recognized configuration class and if one of them fails then the boot process fails.
While this is a warning, there is no other error that can be found in the logs regarding the boot process and everything seems to work if we use explicit
jetty.xml
configuration files and not embedded ones (or the boot bundle).Could this be a configuration issue on our end?
How to reproduce?
The text was updated successfully, but these errors were encountered: