wood burning stoves 2.0
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: pl.edu.mmroz.CalculatorBean 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)
It is sorta covered in the JavaRanch Style Guide.
subject: EJB3.0 - java.lang.reflect.UndeclaredThrowableException problem
jQuery in Action, 3rd edition