aspose file tools*
The moose likes JBoss/WildFly and the fly likes EJB3 deployment error on Jboss5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "EJB3 deployment error on Jboss5" Watch "EJB3 deployment error on Jboss5" New topic
Author

EJB3 deployment error on Jboss5

Ahmed Basheer
Ranch Hand

Joined: Apr 15, 2004
Posts: 77
I have questions about EJB3 on Jboss5.
I have following statless session bean which include reference to itself through EJB3 injection. This bean deploys and works fine in Jboss4.2.2 but when I upgraded to Jboss 5 I get following deployment error indicating that a reference of same type of bean in this bean is flawed, I think. The other beans which don't include reference to same type of bean deploy and work fine.

Appreciate your inputs.
Ahmed.

The code is simplified as follows.




@Stateless
public class ExampleServiceBean extends ServiceBase implements ExampleServiceLocalInterface, ExampleServiceRemoteInterface
{

@EJB
ExampleServiceLocalInterface ExampleService;

@Resource SessionContext ctx;
}


DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:ear=Mob.ear,jar=Mob.ear,name=ExampleServiceBean,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:ear=myexample.ear,jar=myexample.ear,name=ExampleServiceBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:ExampleServiceBean/local-com.ExampleServiceLocalInterface' **")
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

Yes, it's a bug being tracked here https://jira.jboss.org/jira/browse/EJBTHREE-1603


[My Blog] [JavaRanch Journal]
Shree Shreeni
Greenhorn

Joined: Jan 12, 2010
Posts: 3
Hi
Is there a fix/patch available for this issue.
I am experiencing the same deployment errors on 5.1, with a bunch of SLSBs that have cyclic dependencies between them
TIA
Shree
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

Moving to JBoss forum.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

Shreenidhi Raghuram wrote:Hi
I am experiencing the same deployment errors on 5.1, with a bunch of SLSBs that have cyclic dependencies between them


Use @IgnoreDependency as explained here
Shree Shreeni
Greenhorn

Joined: Jan 12, 2010
Posts: 3
I cannot use the @IgnoreDependency to keep the code portable.
So I do the next best thing, and included <ignore-dependency> in jboss.xml.

But I get the following descriptor parse error
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: ignore-dependency cannot appear in this position. Expected content of session is unordered_sequence: port-component? call-by-value? configuration-name? security-proxy? clustered? home-jndi-name? method-attributes? cluster-config? security-identity? local-jndi-name? ejb-name? local-home-jndi-name? timer-persistence? security-domain? ior-security-config? exception-on-rollback? jndi-name? ejb-timeout-identity? depends* invoker-bindings? {all descriptionGroup}? {unordered_sequence jndiEnvironmentRefsGroup}?

I am using the following xsd
<jboss xmlns:xs="http://www.jboss.org/j2ee/schema"
xs:schemaLocation="http://www.jboss.org/j2ee/schema jboss_5_0.xsd"
version="5.0">

Any ideas?
TIA
Shreeni
H Nagulapati
Greenhorn

Joined: Aug 25, 2005
Posts: 4
Did you find a solution for this??
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB3 deployment error on Jboss5