[
https://jira.jboss.org/jira/browse/JBAS-6122?page=com.atlassian.jira.plug...
]
Krashan Brahmanjara commented on JBAS-6122:
-------------------------------------------
I can confirm that problem on JBoss 5.1.0GA In my case four ejb bean fails - it works well
on Weblogic.
Error log
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=KBean,service=EJB3" is
missing the following dependencies:
Dependency "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=KBean,service=EJB3>" (should be in state
"Described", but is actually in state "** UNRESOLVED Demands
'jndi:testEAR/WBean/local-test.WLocal' **")
Dependency "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=KBean,service=EJB3>" (should be in state
"Described", but is actually in state "** UNRESOLVED Demands
'jndi:testEAR/RBean/local-test.RLocal' **")
Deployment
"jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=KBean,service=EJB3_endpoint" is
missing the following dependencies:
Dependency "jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=KBean,service=EJB3"
(should be in state "Configured", but is actually in state
"PreInstall")
Deployment "jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=RBean,service=EJB3" is
missing the following dependencies:
Dependency "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=RBean,service=EJB3>" (should be in state
"Described", but is actually in state "** UNRESOLVED Demands
'jndi:testEAR/WBean/local-test.WLocal' **")
Deployment
"jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=RBean,service=EJB3_endpoint" is
missing the following dependencies:
Dependency "jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=RBean,service=EJB3"
(should be in state "Configured", but is actually in state
"PreInstall")
Deployment "jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=TBean,service=EJB3" is
missing the following dependencies:
Dependency "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=TBean,service=EJB3>" (should be in state
"Described", but is actually in state "** UNRESOLVED Demands
'jndi:testEAR/WBean/local-test.WLocal' **")
Dependency "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=TBean,service=EJB3>" (should be in state
"Described", but is actually in state "** UNRESOLVED Demands
'jndi:testEAR/RBean/local-test.RLocal' **")
Deployment
"jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=TBean,service=EJB3_endpoint" is
missing the following dependencies:
Dependency "jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=TBean,service=EJB3"
(should be in state "Configured", but is actually in state
"PreInstall")
Deployment "jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=WBean,service=EJB3" is
missing the following dependencies:
Dependency "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=WBean,service=EJB3>" (should be in state
"Described", but is actually in state "** UNRESOLVED Demands
'jndi:testEAR/RBean/local-test.RLocal' **")
Deployment
"jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=WBean,service=EJB3_endpoint" is
missing the following dependencies:
Dependency "jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=WBean,service=EJB3"
(should be in state "Configured", but is actually in state
"PreInstall")
DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=WBean,service=EJB3>" is in error due to
the following reason(s): ** UNRESOLVED Demands
'jndi:testEAR/RBean/local-test.RLocal' **
Deployment "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=KBean,service=EJB3>" is in error due to
the following reason(s): ** UNRESOLVED Demands
'jndi:testEAR/WBean/local-test.WLocal' **, ** UNRESOLVED Demands
'jndi:testEAR/RBean/local-test.RLocal' **
Deployment "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=TBean,service=EJB3>" is in error due to
the following reason(s): ** UNRESOLVED Demands
'jndi:testEAR/WBean/local-test.WLocal' **, ** UNRESOLVED Demands
'jndi:testEAR/RBean/local-test.RLocal' **
Deployment "<UNKNOWN
jboss.j2ee:ear=demo.ear,jar=ejb.jar,name=RBean,service=EJB3>" is in error due to
the following reason(s): ** UNRESOLVED Demands
'jndi:testEAR/WBean/local-test.WLocal' **
Regression: Unable to deploy self referencing EJB3 session bean
---------------------------------------------------------------
Key: JBAS-6122
URL:
https://jira.jboss.org/jira/browse/JBAS-6122
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: EJB3
Affects Versions: JBossAS-5.0.0.CR2
Environment: Fedora Linux 9, Sun JDK 1.6.0_06
Reporter: Radu Radutiu
Assignee: Carlo de Wolf
The following stateless EJB which has a self reference using @EJBs() annotation deploys
fine on jboss-4.2.3 but fails to deploy on jboss-5.0.0CR2.
package test;
import javax.ejb.*;
@EJBs({@EJB(name="TestSessionBean/local",beanInterface=LocalTestSession.class,beanName="TestSessionBean")})
@Stateless(name="TestSessionBean")
public class TestSessionBean implements LocalTestSession {
public String test() {
try {
InitialContext ic = new InitialContext();
LocalTestSession lc = (LocalTestSession)
ic.lookup("java:comp/env/TestSessionBean/local");
System.out.println(lc.test1());
} catch (NamingException e) {
e.printStackTrace();
}
return "test";
}
public String test1() {
return "test1";
}
}
When deploying the jar on jboss-5.0.0CR2 I get the following error:
09:57:19,227 WARN [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete
deployments (SEE
PREVIOUS ERRORS FOR DETAILS):
*** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
jboss.j2ee:ear=test.jar,jar=test.jar,name=TestSessionBean,service=EJB3
-> <UNKNOWN
jboss.j2ee:ear=test.jar,jar=test.jar,name=TestSessionBean,service=EJB3>{Described:**
UNRESOLVED Demands 'jndi:TestSessionBean/local-test.LocalTestSession' **}
*** CONTEXTS IN ERROR: Name -> Error
<UNKNOWN jboss.j2ee:ear=test.jar,jar=test.jar,name=TestSessionBean,service=EJB3>
-> ** UNRESOLVED Demands 'jndi:TestSessionBean/local-test.LocalTestSession' **
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira