views:

85

answers:

2

i`m getting NoClassDefintion found error in my application even though i had the associated jars in my lin folder of my ear the error is

java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.NoClassDefFoundError: com/sun/rave/web/ui/model/Option

Note i had added the same user library to my eclipse its not showing any compilation error this error is only at runtime ......!!!!!

+2  A: 

I haven't used EJBs for a while but I seem to remember having to set up the classpath differently for EJBs. I think you have to set it in the manifest.mf file in the EJB jar.

A quick Google turns up this thread, suggesting you need to put:

Class-Path: jar1.jar, jar2.jar

In your manifest.mf file.

You might also find this page (scroll right down to the bottom) and this one (search for "Class-Path") helpful.

Phill Sacre
A: 

your post really helped me

Shivaji