[
https://issues.jboss.org/browse/WFLY-11858?page=com.atlassian.jira.plugin...
]
Ondra Chaloupka edited comment on WFLY-11858 at 3/21/19 5:36 AM:
-----------------------------------------------------------------
[~manovotn] the condition is there because of
https://issues.jboss.org/browse/JBTM-3044.
Narayana was hard coded with {{InitialContext}} and the idea here was to allow Weld SE
application to provide transaction manager as an injectable bean which is not dependent on
the {{IntialContext}} lookup. For WFLY we need {{IntialContext}} for looking up while for
Java SE app is right the opposite.
[~ljnelson] I personally like what [~mkouba] affirmed. I understand the idea of the
"user-supplied InitialContext bean implementations" but I don't think there
is some reasonable demand for it.
Or use what you proposed here:
https://github.com/ochaloup/narayana/commit/964222d60c6f64849430057cd744d...
But it's really a complicated code and I'm still not sure if there is somebody who
like to provide the IntialContext as bean.
was (Author: ochaloup):
[~manovotn] the condition is there because of
https://issues.jboss.org/browse/JBTM-3044.
Narayana was hard coded with {{InitialContext}} and the idea here was to allow Weld SE
application to provide transaction manager as an injectable bean which is not dependent on
the {{IntialContext}} lookup. For WFLY we need {{IntialContext}} for looking up while for
Java SE app is right the opposite.
[~ljnelson] I personally like what [~mkouba] affirmed. I understand the idea of the
"user-supplied InitialContext bean implementations" but I don't think there
is some reasonable demand for it.
[Wildfly16] CDI fails to inject InitialContext during startup
-------------------------------------------------------------
Key: WFLY-11858
URL:
https://issues.jboss.org/browse/WFLY-11858
Project: WildFly
Issue Type: Bug
Components: CDI / Weld, Transactions
Affects Versions: 16.0.0.Final
Reporter: Rakesh K. Cherukuri
Assignee: Matej Novotny
Priority: Major
Attachments: stacktrace.log
We are in the process of upgrading from 14.0.1.Final. While Wildfly 15.0.1 works fine,
16.0.0.Final is intermittently (3 out of 5 times) failing to start with following error
_WELD-001334: Unsatisfied dependencies for type InitialContext with qualifiers_
In our application, a bootstrap servlet startsup services (Stateless EJBs) during server
startup. During this process the server fails to start with above error.
Basically CDI is not able to find the appropriate InitialContext bean *intermittently*.
This is not failing in our application code but in the wildfly libraries itself.
Any pointers on this will be helpful. Don't want to end up with startup issues in
stage/production :)
Unfortunately my efforts to come up with a simplified maven module to showcase the error
didn't succeed. So, please let me know if any further information is required and i
will be glad to fill it in.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)