Announcement Announcement Module
Collapse
No announcement yet.
deploy spring mvc project to external tomcat Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • deploy spring mvc project to external tomcat

    Hi, i'm beginer on spring java, and i need a little help.

    I've created mvc project in STS, i've added tomcat to servers in STS and everything is ok. Web page displays like it should be.

    Now my next step is to move this application to standalone tomcat server.

    I've run mvn install on my project, and maven has created form me file and folders:

    1) tomcattest.war - file
    2) classes - folder
    3) generated-sources - folder
    4) test-classes - folder
    5) surefire - folder
    6) maven-archiver - folder
    7) tomcattest - folder
    8) dependency.... - folder

    Now, i've copied all thise files and folders to my tomcat instance tomcat/webapps/tomcattest

    Next i've restarted tomcat and i was tried to open url:

    http://localhost:8080/tomcattest/home

    on which url this application was running under STS - tomcat server, but i 404 shows.

    How i can deploy application to external tomcat ??

    Can enyone help me?

  • #2
    Now, i've copied all thise files and folders to my tomcat instance tomcat/webapps/tomcattest
    You did what?! Why on earth would you do that...

    The only thing you SHOULD copy is the war file... And that should be copied to the web apps directory (no subdirectory just in the web apps directory).

    Comment

    Working...
    X