Skip to content
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

Fixing OpenWebBeans test on Jetty 10.0.x #4706

Merged
merged 2 commits into from
Apr 7, 2020

Conversation

joakime
Copy link
Contributor

@joakime joakime commented Mar 24, 2020

Signed-off-by: Joakim Erdfelt [email protected]

@joakime joakime requested review from gregw and janbartel March 24, 2020 13:42
Copy link
Contributor Author

@joakime joakime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CDI ... sigh

@janbartel
Copy link
Contributor

Are you sure the SCI is needed? If so, why? Why doesn't using their org.apache.webbeans.servlet.WebBeansConfigurationListener work instead?

@joakime
Copy link
Contributor Author

joakime commented Mar 24, 2020

@janbartel @lorban please re-review.

@gregw
Copy link
Contributor

gregw commented Mar 24, 2020

For those wanting to know more about the CDI integrations, it is worthwhile reading #3804 and the PRs and other issues linked from it.

The CDI integrations in both Weld and OWB were essentially calling internal interfaces to get their decorators registered. I created some more generic ways of integrating CDI... unfortunately OWB and Weld couldn't agree on the best way, so we ended up with two new integrations, plus some legacy support in 9.4

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the title is now wrong? Not restoring SCI, but fixing its removal?

@joakime joakime changed the title Restore open webbeans SCI hack on Jetty 10.0.x Fixing OpenWebBeans test on Jetty 10.0.x Mar 24, 2020
@joakime
Copy link
Contributor Author

joakime commented Mar 24, 2020

@gregw updated the title, and cleaned up the fix a bit too (using init-param, not system property now)

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, but perhaps a comment in the XML would help keep this clear how it works

Copy link
Contributor

@janbartel janbartel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming we can ever get a test run of this that works, this LGTM.

+ OWB needs init-parameter to allow it's own
  ServletContainerInitializer found at
  org.apache.webbeans.servlet.WebBeansConfigurationListener$Auto
  to execute and properly add the required Listener for
  OWB to function.
+ See OWB-1296

Signed-off-by: Joakim Erdfelt <[email protected]>
@joakime joakime force-pushed the jetty-10.0.x-restore-owb-hack branch from df2eb86 to f3bd661 Compare March 25, 2020 12:14
@joakime joakime mentioned this pull request Apr 7, 2020
@joakime joakime linked an issue Apr 7, 2020 that may be closed by this pull request
@joakime joakime self-assigned this Apr 7, 2020
@joakime joakime merged commit 5f6053e into jetty-10.0.x Apr 7, 2020
@joakime joakime deleted the jetty-10.0.x-restore-owb-hack branch April 7, 2020 15:28
@joakime joakime added the Test label Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CDI Tests failing
4 participants