Yep, you are right. It looks like net.sf.ehcache.CacheException doesn't
have dependencies outside java.lang.
You might try Matt's suggestion of using Geronimo 1.1.
--a.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, June 15, 2006 10:03 AM
Subject: Re: NoClassDefFoundError for ehcache Exception on Geronimo (tomcat)
Make sure to unpack all of the jars in the "required-jars" package from
the
Roller support site into your WEB-INF/lib.
I have checked and everything is already there. Again, I'm building roller
from the 2.3 SVN tag
To me it looks like something that ehcache depends upon is missing, not
ehcache itself.
I disagree based on the stack trace:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name
'org.springframework.cache.ehcache.EhCacheFactoryBean#13b02da' defined in
ServletContext resource [/WEB-INF/security.xml]: Instantiation of bean
failed; nested exception is java.lang.NoClassDefFoundError:
net/sf/ehcache/CacheException
java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
at java.lang.Class.getDeclaredMethods(Class.java:1131)
at java.beans.Introspector$1.run(Introspector.java:1126)
at java.security.AccessController.doPrivileged(Native Method)
at
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1124)
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989)
at java.beans.Introspector.getBeanInfo(Introspector.java:370)
at java.beans.Introspector.getBeanInfo(Introspector.java:144)
at
org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:143)
My understanding is that Spring can't create the Spring EhCacheFactoryBean
class because a dependency (namely net.sf.ehcache.CacheException) cannot
be
found.
From what I can tell this is the root cause of the initialization
problems.