Cache collision and ehcache spring annotations module

If you are looking for a way to implement declarative caching with Spring, there is no way around Ehcache Spring Annotations [1]. This superimposes a transparent aspect on methods of any proxied bean, taking the method arguments as a key. Little known but easy to stumble upon [2] is an implementation (design?) quirk which expects … Continue reading Cache collision and ehcache spring annotations module

Ant terminating immediately in Eclipse without any errors

Recently all ant builds started failing when started from within Eclipse without an apparent reason. When the ant target is invoked, the console briefly opens and closes again, without any message or error. /workspace/.metadata/.log finally reveals the cause: java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException Some Ant classes seem to be missing, strange. A look at Window -> Preferences -> … Continue reading Ant terminating immediately in Eclipse without any errors

Enabling the powerbutton in Ubuntu Server 10.04 on an AMD box

While shutdown –h does the trick of shutting down a server just fine, occasionally I’d prefer the haptic version. While I’ve never had problems getting the powerbutton to work with Ubuntu desktop versions, it didn’t work out of the box on my AMD Athlon XP. Fortunately the solution seems to be quite simple: sudo apt-get … Continue reading Enabling the powerbutton in Ubuntu Server 10.04 on an AMD box