-
1. Re: NoClassDefFoundError
juha Feb 6, 2004 12:26 PM (in response to nagulapati)How's your app and utility classes packaged?
-
2. Re: NoClassDefFoundError
nagulapati Feb 6, 2004 3:02 PM (in response to nagulapati)Hello Juha,
I have packed the AdminClient package along with home, remote interfaces and bean class into a jar file(ofcourse along with deployment descriptors) and deployed it. I always get the "NoClassDefFoundError" when deploying the package.
Everything works fine if I change the "AdminWebService" to a class instead of an interface class. So I made the conclusion that the interface classes are not being picked up by the classloaders.
Is "NoClassDefFoundError" exception caused only when classloader cannot find the specified class or it can be any other reason?
Thanks,
Vivek -
3. Re: NoClassDefFoundError
juha Feb 6, 2004 10:20 PM (in response to nagulapati)The classloaders do pick up interfaces, there's a problem in your packaging I think. Either the package declaration in your interface Java source is incorrect or it is being put in to an incorrect location when you create your JAR package.