aspose file tools*
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
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
Author

EJB3 and JBoss 4.0.4 GA Problem

Steffen Krause
Greenhorn

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:

Exception:

Here is my source:

Remote Interface:
Code:

Local Interface:
Code:

Bean Implementation:
Code:

Client Implementation:
Code:

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???

Thanks,

Kimba

Configuration:
JBoss 4.0.4 GA
jboss-EJB-3.0_RC8-FD
JDK 1.5.0

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

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

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

@Local({TestLocal.class })
@Remote({TestRemote.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

Mark


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

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.

-Kimba
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB3 and JBoss 4.0.4 GA Problem