Comments (3)
Generally speaking, it's as simple as cloning the repository and running "mvn tomcat:run" from within the cloned directory. This will start an instance of Tomcat with the app deployed, so you don't need to copy the war file. Have you tried these steps from the readme?
from spring-mvc-showcase.
One command to do rule them all :-)
Thanks for the help man, i did read the Readme but i didnt expect it to be so simple. its working now i will play around with it all week now.
one thing if you are interested, i had the problem
java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet
cannot be cast to javax.servlet.Servlet
which i think it was because the pom was loading too many servlet api classes.
i added the following line
provided
to the tomcat-servlet-api artifact which corrected the problem.
Many thanks again
from spring-mvc-showcase.
Actually I see issues #12 and #13 are both regarding the problem you are/were having. Seems it wasn't quite so simple after all. :)
from spring-mvc-showcase.
Related Issues (20)
- Not able to unit test validations using MockMVC HOT 1
- Add test for "forward:..." HOT 7
- JavaBean implements Serializable HOT 1
- HTTP Status 500 - Servlet.init() for servlet appServlet threw exception HOT 4
- JPA addition HOT 2
- no .classpath,then how to import to eclipse? HOT 2
- Timezone configuration makes tests fail HOT 2
- isMovedTemporarily() is @Deprecated HOT 1
- Error on pom.xml HOT 7
- Unable to run spring-mvc-showcase in STS 3.8.1 HOT 1
- Simple Question
- HTTP Status 403 - Expected CSRF token not found. Has your session expired?
- Project can't run on the server, showing an error of catalina.policy and catalina.properties HOT 2
- Project has been tested on tomcat -8.5.24 HOT 1
- j2ee maven plugin could be used replacing jstl , jsp , servlet maven dependency HOT 1
- 1
- 404 autowired controller fail
- [ERROR] COMPILATION ERROR HOT 3
- HTTP Status 500 - Servlet.init() for servlet dispatcher threw exception HOT 1
- Null pointer exception while server startup HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-mvc-showcase.