Reputation: 31
I have a maven project that uses spring framework. So when I deploy, I have to build new .war files by running mvn clean install -P LOCAL
, This will create new .war files. Then I copy these war files to tomcat directory under webapps. The problem is when I access the app through localhose:8080, I don't see the changes. What am I doning wrong?
EDIT:
It's the UI .war file that does not update. Other war files does show changes. So all changes to UI are not showing. I tried clearing cache, but it did'nt work (ctrl + f5 does not work too).
Upvotes: 0
Views: 5485
Reputation: 2805
What I suggest you as steps for deploying on tomcat:
webapp
folder (the one related to your project), and remove all files from it (both .war and extracted files)work
folder from tomcat root path.war
file to your webapp folderA tip: you can easly autodeploy your app with Maven by using a plugin , you can find all info here. With this you can easly run tomcat7:redeploy
, he will take care of the dirt and the deploy operations :)
Upvotes: 1
Reputation: 111
You can go to http://localhost:8080/manager/ and try to re-deploy your war.
Try to clear your tomcat directory and copy the fresh war files.
Upvotes: 2