Description

Select Spring MVC Project > Finish. Tell it okay when it asks if you want to download it.

Give the project a name and a location, press Finish.

Wait. It takes a while for the build to finish.
You will see the error: Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found [config set: <projectName>/web-context

Project > Clean clean the project. It will rebuild and this time have no error.

Create a vFabric server (if you don't have one already). I did: Servers, New > Server > VMware vFabric tc Server v2.5, v2.6, server info, new instance named "base" which only had "base".

Drag your project onto the server.

Start the server.

Select your project under the server; right-click and select Open Home Page.
You will get an error:

javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method
"javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;"
the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class,
org/apache/jsp/WEB_002dINF/views/home_jsp, and
the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class,
javax/servlet/jsp/JspApplicationContext, have different Class objects for the type
javax/el/ExpressionFactory used in the signature

0. Start with a clean build.
1. In Package Explorer, select New > Spring Template Project
2. Select Spring MVC Project > Finish. Tell it okay when it asks if you want to download it.
3. Give the project a name and a location, press Finish.
4. Wait. It takes a while for the build to finish.
You will see the error: Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found [config set: <projectName>/web-context
5. Project > Clean clean the project. It will rebuild and this time have no error.

6. Create a vFabric server (if you don't have one already). I did: Servers, New > Server > VMware vFabric tc Server v2.5, v2.6, server info, new instance named "base" which only had "base".
7. Drag your project onto the server.
8. Start the server.
9. Select your project under the server; right-click and select Open Home Page.
You will get an error: javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/WEB_002dINF/views/home_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature

# Start with a clean build.
# In Package Explorer, select New > Spring Template Project
# Select Spring MVC Project > Finish. Tell it okay when it asks if you want to download it.
# Give the project a name and a location, press Finish.
# Wait. It takes a while for the build to finish.
You will see the error: Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found [config set: <projectName>/web-context
# Project > Clean clean the project. It will rebuild and this time have no error.
# Create a vFabric server (if you don't have one already). I did: Servers, New > Server > VMware vFabric tc Server v2.5, v2.6, server info, new instance named "base" which only had "base".
# Drag your project onto the server.
# Start the server.
# Select your project under the server; right-click and select Open Home Page.
You will get an error:

{noformat}
javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method
"javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;"
the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class,
org/apache/jsp/WEB_002dINF/views/home_jsp, and
the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class,
javax/servlet/jsp/JspApplicationContext, have different Class objects for the type