This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB3 and JBoss 4.0.4 GA Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3 and JBoss 4.0.4 GA Problem" Watch "EJB3 and JBoss 4.0.4 GA Problem" New topic

EJB3 and JBoss 4.0.4 GA Problem

Steffen Krause

Joined: Jun 08, 2006
Posts: 2
Hi all,

I have a slight problem, I try to create a reference Stateless SessionBean but for some reason each time my client tries to access the Bean after looking it up on JNDI I end up getting the following exception:


Here is my source:

Remote Interface:

Local Interface:

Bean Implementation:

Client Implementation:

First I compile everything and package it into a JAR file. Then I deploy it on JBoss. After deploying I check the JNDI content and can see my TestBean and it's remote and local interface. Now I start the client (I have the client JARs of JBoss in the path) on my local pc out of a local copy of the JAR file I deployed on the server and then I get the above mentioned exception. Can anybody help me and tell me what I'm doing wrong???



JBoss 4.0.4 GA
JDK 1.5.0

[ June 08, 2006: Message edited by: Steffen Krause ]
[ June 08, 2006: Message edited by: Steffen Krause ]
Rajesh K. Ilango

Joined: Jun 27, 2005
Posts: 11
I once came accross this problem. I remember replacing all the aspectj jars in the jboss4.0.4 installion with the ones in jboss-EJB-3.0.

Rajesh Kumar Ilango
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17260

One thing that is see is that your bean has the following Annotations.

@Local({TestLocal.class })

They should be in the interfaces. one for the local interface and one for the remote interface.

Try moving those and deploy and let us know what happens.

As an example.

Good Luck


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Steffen Krause

Joined: Jun 08, 2006
Posts: 2
Hi Mark,

I already had them in the interfaces but I had exactly the same problem. Btw, it does't matter if you annote the interface with either @Remote or @Local or have them in the Bean as I did. The Java EE 5 specs allow both. Besides, after deploying I can see the correct entries in the JNDIView so that should work. But thanks for the help.

Hi Rajesh,

I already copied the jar files of the EJB3 zip to the corresponding locations (as the install document described). Still the same problem. Unfortunately there is NOBODY in the JBoss forum that seems to care about my entry. Thanks for your help.

jQuery in Action, 2nd edition
subject: EJB3 and JBoss 4.0.4 GA Problem