• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3 and JBoss 4.0.4 GA Problem

 
Steffen Krause
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Steffen Krause
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic