Results 1 to 2 of 2

Thread: deploy spring mvc project to external tomcat

  1. #1
    Join Date
    Dec 2011
    Posts
    1

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    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).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •