: java.lang.NoClassDefFoundError: Could not initialize
class net.sf.ehcache.Element
NoClassDefFoundError is not the same as ClassNotFoundException
Typically a NoClassDefFoundError is due to a class failing its static
initialisation when first loaded by the classloader. Can you check in your logs
for any prior errors
NoClassDefFoundError is not the same as ClassNotFoundException
Typically a NoClassDefFoundError is due to a class failing its static
initialisation when first loaded by the classloader. Can you check in your
logs for any prior errors (even at bootup) relating to class failing to be
loaded
Paul
2010/5/31 Licht Jiang :
> java.lang.NoClassDefFoundError: Could not initialize class
> com.myservice.web.TestClass
>
"Could not initialize" = the class is found, but its initialization
failed. There can be many reasons for that, e.g. 1) missing dependent
classes, 2) exception is thrown when execut
Thanks Charles for your help!
>> java.lang.NoClassDefFoundError: Could not initialize class
>> com.myservice.web.TestClass
>
> Show us the full stack trace(s); there are usually at least two in cases like
> this.
Now I have no access to the service.
>> But class "TestClass" is in "WEB-INF/class
> From: Licht Jiang [mailto:licht.ji...@gmail.com]
> Subject: java.lang.NoClassDefFoundError: Could not initialize class
>
> java.lang.NoClassDefFoundError: Could not initialize class
> com.myservice.web.TestClass
Show us the full stack trace(s); there are usually at least two in cases like
this