ejb-jar.xml and <ignore-dependency>
-----------------------------------
Key: EJBTHREE-2078
URL:
https://jira.jboss.org/jira/browse/EJBTHREE-2078
Project: EJB 3.0
Issue Type: Bug
Components: deployers
Environment: vista, JBOSS 5.0.0 GA, 5.1.0 GA
Reporter: Mirek Sz
Then <ignore-dependency> in jboss.xml dosen't work with ejb-jar.xml
(when I using annotation @EJB and @IgnoreDependiency it works fine but with xml not)
my ejb-jar.xml file
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
<enterprise-beans>
<session>
<ejb-name>Pracownik</ejb-name>
<business-local>pakiet.Pracownik</business-local>
<ejb-class>pakiet.PracownikImpl</ejb-class>
<session-type>Stateless</session-type>
<ejb-local-ref>
<ejb-ref-name>Stanowisko</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>pakiet.Stanowisko</local>
<injection-target>
<injection-target-class>pakiet.PracownikImpl</injection-target-class>
<injection-target-name>stanowisko</injection-target-name>
</injection-target>
</ejb-local-ref>
</session>
<session>
<ejb-name>Stanowisko</ejb-name>
<business-local>pakiet.Stanowisko</business-local>
<ejb-class>pakiet.StanowiskoImpl</ejb-class>
<session-type>Stateless</session-type>
<ejb-local-ref>
<ejb-ref-name>Pracownik</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>pakiet.Pracownik</local>
<injection-target>
<injection-target-class>pakiet.StanowiskoImpl</injection-target-class>
<injection-target-name>pracownik</injection-target-name>
</injection-target>
</ejb-local-ref>
</session>
</enterprise-beans>
</ejb-jar>
my jboss.xml file
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>Stanowisko</ejb-name>
<ignore-dependency>
<injection-target>
<injection-target-class>pakiet.StanowiskoImpl</injection-target-class>
<injection-target-name>pracownik</injection-target-name>
</injection-target>
</ignore-dependency>
</session>
<session>
<ejb-name>Pracownik</ejb-name>
<ignore-dependency>
<injection-target>
<injection-target-class>pakiet.PracownikImpl</injection-target-class>
<injection-target-name>stanowisko</injection-target-name>
</injection-target>
</ignore-dependency>
</session>
</enterprise-beans>
</jboss>
and jboss log
13:47:56,269 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:jar=test.jar,name=Pracownik,service=EJB3
-> <UNKNOWN jboss.j2ee:jar=test.jar,name=Pracownik,service=EJB3>{Described:**
UNRESOLVED Demands 'jndi:Stanowisko/local-pakiet.Stanowisko' **}
jboss.j2ee:jar=test.jar,name=Stanowisko,service=EJB3
-> <UNKNOWN jboss.j2ee:jar=test.jar,name=Stanowisko,service=EJB3>{Described:**
UNRESOLVED Demands 'jndi:Pracownik/local-pakiet.Pracownik' **}
*** CONTEXTS IN ERROR: Name -> Error
<UNKNOWN jboss.j2ee:jar=test.jar,name=Pracownik,service=EJB3> -> ** UNRESOLVED
Demands 'jndi:Stanowisko/local-pakiet.Stanowisko' **
<UNKNOWN jboss.j2ee:jar=test.jar,name=Stanowisko,service=EJB3> -> ** UNRESOLVED
Demands 'jndi:Pracownik/local-pakiet.Pracownik' **
at
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
at
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
--
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