-
Notifications
You must be signed in to change notification settings - Fork 301
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
CDI EJB Field producers' validation fail with incompatible types #668
Comments
The workaround is to use producer method, which are not validated at runtime. It also could be related to #391 - I've seen more places where things fail in case of previously failed deployment. But restarting the server was so far much quicker solution than finding why Descriptor Bundles from different managers differ. |
I've hit this issue again, this time my test was deploying a simple .war that imports an external EJB. So neither EAR packaging or stereotype are relevant for the issue. I'll try to spend a little time creating a sample WAR file. |
On second occasion I haven't had a previously failed deployment so #391 is likely not related. I managed to create a test case, I'll push it to GitHub after the weekend. |
The test case is available here: https://github.com/pdudits/payara-testcases/tree/master/issue-668 First deploy |
Excellent, thanks very much! |
Could this be related to #315 ? It's been recently fixed. |
The testcase fails immediately at first deployment, so it's not related to dirty application bundle. |
Verified and created internal issue |
…EJB, not the correct one fixes PAYARA-947 and github issue payara#668
Fixed by PR #1017 |
…EJB, not the correct one fixes PAYARA-947 and github issue payara#668
…EJB, not the correct one (payara#1017) fixes PAYARA-947 and github issue payara#668
FISH-6603 : META-INF must not be always denied
I'm deploying an EAR, within which there is a war with producer:
Deployment fails with
When debugging, at
validateEjbProducer(InjectionServicesImpl.java:234)
all elements of ejbs Collection have null jndiName. ThereforeoneEjb.getJndiName(
) returns empty string and that matches anylookupName
, so first ejb in the list is elected as a match.The text was updated successfully, but these errors were encountered: