Here is what I did:
1. I downloaded STS [integrated with J2EE Eclipse]
2. I created a Spring MVC application using the template in STS. No new code has been added from my side yet.
3. I did a build of the Spring MVC application within STS and that worked without a problem
4. I deployed the MVC application to the bundled server: “VMWare vFabric tc Server Developer Edition v2.7” and attempted to start it.
My NoClassDefFoundErrors started when I started the server in step #4 above. Here is what I believe is missing:
a. NoClassDefFoundError for NestedRuntimeException - To solve this, I separately downloaded Spring 3.1.0 release and copied all the jars under the "dist" directory to the following directory for the tc server: springsource/vfabric-tc-server-developer-2.7.2.RELEASE/tomcat-7.0.30.A.RELEASE/lib
b. I then ran into error for org/apache/commons/logging/LogFactory - To solve this, I added 3 sl4j jars to the lib directory: slf4j-api-1.5.10.jar, slf4j-log4j12-1.5.10.jar, jcl-over-slf4j-1.5.10.jar
c. Then, I got an error for org/apache/log4j/Level - So, I added log4j-1.2.15.jar
This still did not solve the problem. So, I have a bigger question:
Does the STS tc server not work out of the box for an application created with the template (with no user code) OR am I doing something wrong?
I strongly believe that the patching I am doing with jars is probably not the recommended way - so, could someone please help me out? I have already spent 3 days looking at this.
If you need any more details about what I am doing or exact error stack traces, please let me know.