You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jetty version(s)
Jetty 12.0.3 (but according to the source code it affects the current jetty-12 main as well)
Jetty Environment
ee10 (ee8 working without problems)
Java version/vendor(use: java -version)
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
OS type/version
Microsoft Windows 10 22H2 (OS Build 19045.3930)
Description
When trying to run an embedded Jetty 12 Jakarta EE10 in an OSGi unit test environment via the jetty-ee10-osgi-boot bundle it fails because the jetty.xml file incorrectly references the Handler class from jetty-server module, specifically this line:
...
<Set name="handler">
<New id="Handlers" class="org.eclipse.jetty.server.handler.Handler.Collection"> <----- Handler interface is in the org.eclipse.jetty.server package not in the handler package.
<Set name="handlers">
...
Replacing the Handler configuration section in the EE10 jetty.xml from the EE8 boot's jetty.xml solves the issue and Jetty 12 can start without any errors.
How to reproduce?
I don't have a simple example project that demonstrates the problem, but if that's needed let me know.
The text was updated successfully, but these errors were encountered:
@janbartel The tree jetty-ee10-osgi/jetty-ee10-osgi-boot/jettyhome/ seems to be totally unused in code at runtime or testing.
The contents of that tree appear to be packaged into the target/jetty-ee10-osgi-boot-<ver>.jar, but nothing refers to it.
Jetty version(s)
Jetty 12.0.3 (but according to the source code it affects the current jetty-12 main as well)
Jetty Environment
ee10 (ee8 working without problems)
Java version/vendor
(use: java -version)
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
OS type/version
Microsoft Windows 10 22H2 (OS Build 19045.3930)
Description
When trying to run an embedded Jetty 12 Jakarta EE10 in an OSGi unit test environment via the
jetty-ee10-osgi-boot
bundle it fails because the jetty.xml file incorrectly references the Handler class from jetty-server module, specifically this line:Replacing the Handler configuration section in the EE10 jetty.xml from the EE8 boot's jetty.xml solves the issue and Jetty 12 can start without any errors.
How to reproduce?
I don't have a simple example project that demonstrates the problem, but if that's needed let me know.
The text was updated successfully, but these errors were encountered: