Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3 deployment error on Jboss5

 
Ahmed Basheer
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's a bug being tracked here https://jira.jboss.org/jira/browse/EJBTHREE-1603
 
Shree Shreeni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to JBoss forum.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you find a solution for this??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic