File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Issue interacting with EJB 3 Stateful session beans on JBoss 4.0.5.GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Issue interacting with EJB 3 Stateful session beans on JBoss 4.0.5.GA" Watch "Issue interacting with EJB 3 Stateful session beans on JBoss 4.0.5.GA" New topic
Author

Issue interacting with EJB 3 Stateful session beans on JBoss 4.0.5.GA

Watsh Rajneesh
Ranch Hand

Joined: Apr 17, 2006
Posts: 110
I am getting the following error when i run the ex05_1/ path Client_2.java code from EJB 3.0 book by Bill Burke (O'reilly). The entire code for this book can be found here. I am using JBoss 4.0.5.GA with EJB 3.0 RC 9 Patch 1 patch installed.

In short the error occurs at the following line in Client_2.java:


and it says on the first line. But i have used the jboss.xml to give the jndi-name to the bean as used in the above code snippet but still i donot see why it fails to find the reference of the Stateful bean from naming service whereas it works fine (ie is able to lookup the reference of) for Stateless session bean. I am using ejb3 with clustering installation type for JBoss 4.0.5.GA and have already installed the patch EJB 3 RC 9 Patch1 which was said to fix a bug of hot redeployment of EJB 3 beans giving a Wrong target error message.

The complete error is below:


If anyone has been able to run the ex05_1/ examples from the book EJB 3.0 then please reply to this post as to how you resolved it. I have seen a list of related issues reported at JBoss EJB 3 subproject which may be the reason and one of the interdependent issues is still not fixed.

Thanks in advance.
-Watsh


SCJP 5.0 (90%), SCDJWS 1.4 (88%), SCWCD 1.4 (82%), SCBCD 1.3 (85%)
Watsh Rajneesh
Ranch Hand

Joined: Apr 17, 2006
Posts: 110
I found the solution here. So this can be critical issue for JBoss 4.0.5.GA that it does not work reliably with JSE 6.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue interacting with EJB 3 Stateful session beans on JBoss 4.0.5.GA
 
Similar Threads
Problem deploying sample HelloWorld Bean in JBoss 4.2.1 GA
Logging problem log4j:ERROR
Problem code of Chapter 5 of enterprise javabeans 3 by o'rielly using jboss 4.0.4 with jdk1.6
Stateful Bean Naming Exception
Problem with context.lookup