-
Notifications
You must be signed in to change notification settings - Fork 109
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
Mojarra 3.0.2 fails when a tag handler is missing a class. #5041
Comments
Please see if you can reproduce it using only core Mojarra 3.0.2. |
@mnriem What exactly do you mean with "only core Mojarra"? This issue arises when an optional dependency (in my case jakarta.validation) of an external tag library (in my case Omnifaces) is not present on the classpath. |
I've created a small reproducer project here: https://github.com/larsgrefer/mojarra-5041 |
Yup, point taken, this is indeed unexpected. I can tell from own experience that it didn't happen in some previous Mojarra version, so it has clearly regressed at some point. |
Fixed for 2.3.next. I'll upmerge into 3.x and 4.x once PR is approved/merged. Noted should be that I cannot come up with a simple integration test for this (as long as we keep using GlassFish it is). |
#5041 fix deploy fail when optionally injectable class is not injectable
@BalusC if this is fixed for 3.0 please close it and create a separate issue for 4.0 linking this issue or add a 4.0 label to this one so it does not get lost. |
We noticed a strange error while working with Mojarra 3.0.2 and Omnifaces 4.0-M12:
The application startup fails with the following error in Mojarra:
The handler class passed to
com.sun.faces.util.Util.classHasAnnotations
isorg.omnifaces.taghandler.ValidateBean
Since both Mojarra and Omnifaces list jakarta.validation as an optional dependency and we are neither using
<o:validateBean>
nor<f:validateBean>
, I'd expect this to not be an error.I think this exception should be caught somewhere in
FaceletTaglibConfigProcessor
.The text was updated successfully, but these errors were encountered: