-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
JBoss AS7 7.2.0.Final
With a JEE aplication in a WAR package, when starting a functionality, as a Batch Job, via CLI, CDI injection and JNDI lookup fail to find resources 'java:app/AppName' and 'java:module/ModuleName'.
For example, a job listener or other job artifact with the following code
@Resource(lookup="java:app/AppName") private String applicationName;
or
private String applicationName; @PostConstruct protected void initialize() throws NamingException { applicationName = InitialContext.doLookup("java:app/AppName"); }
when the batch job is started from JBoss CLI, the following error will be logged:
javax.naming.NameNotFoundException: java:app/AppName
- is related to
-
JBEAP-19556 [GSS](7.3.z) WFLY-11808 - Unable to do jndi lookup when starting batch job from web console
- Closed
-
WFLY-11808 Unable to do jndi lookup when starting batch job from web console
- Closed