I wanted to Deploy a simple Spring MVC APP to open shift I googled for this and found spring-mvc-3-on-jboss but there project structure is different I have basic Spring MVC project structure is
that is at this repo, at openshift.com I created Application and configured as :
But I can not see my home.jsp file as welcome file when I goto my app-url I see only the default/traditional welcome page.
Any suggestion how to configure project to work correctly?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
first you have clone your git repository then automatically created folder in document folder.
then your war file extract and past your clone directory into webapps folder
and create test folder paste your code in folder and also root war file.
then your ulr in your folder name write and enter.
for example
like this.
paste your extract war file into your clone directory.
then fire git commmand
There is one major problem with your pom.xml, I think that makes your app not working on the openshift.com. You should add the following lines to your pom.xml
I haven't tested this code with
JBoss Application Server
, so change your server toApache Tomcat 7
. that worked for me correctly.