File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB3.0 - java.lang.reflect.UndeclaredThrowableException 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.0 - java.lang.reflect.UndeclaredThrowableException problem" Watch "EJB3.0 - java.lang.reflect.UndeclaredThrowableException problem" New topic

EJB3.0 - java.lang.reflect.UndeclaredThrowableException problem

Marian Mroz

Joined: Mar 05, 2009
Posts: 3
Hi I've got a problem with run simple EJB3.0 application

I've got an interface:

and EJB Bean implementation:

and I complie it with using jdk6

I put it on JBoss 4.2.3.GA with jre1.5.0_16

On the server there is an information that it started:
12:27:20,328 INFO [EJBContainer] STARTED EJB: ejbName: CalculatorBean

When I'm try run simple test application:

I receive following error:

Does anybody know what is the reason of this exception?
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

Are you using the correct version of JBoss jar files in your client classpath? You should be placing the exact same jbossall-client.jar file from the %JBOSS_HOME%/client folder, in the client classpath.

[My Blog] [JavaRanch Journal]
Marian Mroz

Joined: Mar 05, 2009
Posts: 3
Thanks for help. It was a problem - there was a different access to jbossall-client.jar (it was set jbossall-client-3.2.3.jar)
I agree. Here's the link:
subject: EJB3.0 - java.lang.reflect.UndeclaredThrowableException problem
It's not a secret anymore!