[
https://issues.redhat.com/browse/WFLY-13719?page=com.atlassian.jira.plugi...
]
Eduardo Martins commented on WFLY-13719:
----------------------------------------
Assuming that the old behaviour was not correct I believe the system property solution
makes more sense. We could also defer resolving the EJB to when needed but not sure that
would not imply major changes and performance hit for the proper use cases.
Error deploying EJB in WildFly when using @EJB
----------------------------------------------
Key: WFLY-13719
URL:
https://issues.redhat.com/browse/WFLY-13719
Project: WildFly
Issue Type: Bug
Components: EE, EJB
Affects Versions: 20.0.1.Final
Reporter: Chao Wang
Priority: Major
Attachments: reproducer.zip
The following example does *not* get deployed on Wildfly 20.0.1.Final (since WFLY
13.0.0.Final):
~~~
public class PleaseIgnoreMeThanks
{ @EJB private NonExistentEjbExampleLocal nonExistentEjbExample; }
~~~
The issue seems to be on the @EJB annotation.
Generated error:
{code:xml}
10:19:19,025 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001:
Failed to start service jboss.deployment.unit."ejb-in-war.war".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."ejb-in-war.war".INSTALL: WFLYSRV0153: Failed to process
phase INSTALL of deployment "ejb-in-war.war"
at
org.jboss.as.server@12.0.3.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
at
org.jboss.msc@1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at
org.jboss.msc@1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at
org.jboss.msc@1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at
org.jboss.threads@2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at
org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at
org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0406:
No EJB found with interface of type
'org.jboss.as.quickstarts.ejbTimer.NonExistentEjbExampleLocal' for binding
org.jboss.as.quickstarts.ejbTimer.PleaseIgnoreMeThanks/nonExistentEjbExample
at
org.jboss.as.ejb3@20.0.1.Final//org.jboss.as.ejb3.deployment.processors.EjbInjectionSource.getResourceValue(EjbInjectionSource.java:90)
at
org.jboss.as.ee@20.0.1.Final//org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:269)
at
org.jboss.as.ee@20.0.1.Final//org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:200)
at
org.jboss.as.server@12.0.3.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
~~{code}
!moz-extension://4f9dc55f-98eb-44f6-97f9-1c9d85f3a188/icons/logo.png!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)