: 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
or.java:224)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> at javax.servlet.http.HttpServlet.service(HttpSer
DefFoundError: Could not initialize class
net.sf.ehcache.Element
at
net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion.put(EhcacheTransactionalDataRegion.java:139)
at
net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion.put(EhcacheTransactionalDataRe
] in context with path
[/mycontext] threw exception [Could not initialize class
javax.servlet.http.Cookie] with root cause
java.lang.NoClassDefFoundError: Could not initialize class
javax.servlet.http.Cookie
at
org.apache.catalina.core.ApplicationSessionCookieConfig.createSessionCookie
content
directly (without login).
GRAVE: Servlet.service() for servlet [default] in context with path
[/mycontext] threw exception [Could not initialize class
javax.servlet.http.Cookie] with root cause
java.lang.NoClassDefFoundError: Could not initialize class
javax.servlet.http.Cookie
Answers inline ...
-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: vendredi 20 janvier 2012 13:06
To: Tomcat Users List
Subject: Re: Tomcat 7 - java.lang.NoClassDefFoundError: Could not initialize
class javax.servlet.http.Cookie
2012/1/20 Guillermo
[mailto:guillermo.garcia-oc...@inova-software.com]
Sent: vendredi 20 janvier 2012 13:11
To: Tomcat Users List
Subject: RE: Tomcat 7 - java.lang.NoClassDefFoundError: Could not initialize
class javax.servlet.http.Cookie
Answers inline ...
-Original Message-
From: Konstantin Kolinko
2010/5/31 Licht Jiang licht.ji...@gmail.com:
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
I got the following error from a web service running in Apache
Tomcat/5.5.27 and JVM 1.6.0_17-b04-248-10M3025.
java.lang.NoClassDefFoundError: Could not initialize class
com.myservice.web.TestClass
TestClass is a class called by the servlet in doget().
But class TestClass is in WEB-INF/classes
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
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/classes/come
11 matches
Mail list logo