Edit: Later I realized that the root problem here was most likely the missing log configuration . In our case (using SLF4J with log4j) after adding the correct configuration to log4j.properties all kinds of warnings and errors registered by libraries became visible even with Tomcat.
I tried Jetty instead of Tomcat and started getting improved error messages. Turns out there were a few missing libraries; necessary for some libraries that I have already used.
2011-06-28 15:57:01.879:WARN::Unable to reach node goal: started java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:640)
Some of the libraries seem to require a combo, which I added. Further:
java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor at org.springframework.context.support.AbstractRefreshableApplicationContext.customizeBeanFactory(AbstractRefreshableApplicationContext.java:218)
Added spring -asm. Further:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/config/AopNamespaceUtils
Added spring -aop. Then something a little less straightforward:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
Found a discussion about the lack of aopalgia in Spring blog comments . It seems to be completely removed from spring-aop, and you need to get aopalliance.jar from sourceforge .
(I think this swamp is Java EE in the worst case: I don't know what to do spring-asm or spring-aop not to mention aopalliance , but apparently I need them .: -P)
So, aopalliance.jar has been added. Later, I still needed to add spring-expression and cglib-2.2 (which comes with Hibernate).
After this, some problems with my Spring / Hibernate save level configuration remain, but they are not suitable for this question. Otherwise, Wicket and Spring now work beautifully (for example, to inject service-level objects on Wicket pages).
I think one moral of this is that in some cases, Tomcat eats useful error messages, and Jetty might be better for debugging. In addition, using Maven would probably help with the infernal hell a bit (but itβs not without problems).