Deploying mes-application on Tomcat 7

Download

          1. We must downloads Tomcat ,but we need adequate archive, Tomcat 7 is  available in this page:

            http://tomcat.apache.org/download-70.cgi

          2. We need  downloads  current version PostrgreSQL JDBC Driver, which we find in this page:

             http://jdbc.postgresql.org/download.html

Configuration Tomcat

              We have to do 8 steps :

          1. When we downloads, we must extract Tomcat 7

          2. Next point is copy the qcadoo directory with properties files from the binary distribution to Tomcats 7 distribution

          3. We have to copy PostrgreeSQL JDBC Driver to lib folder in Tomcat, which we find in main folder Tomcat 7

          4. Copy bin/setenv.sh (or bat) from qcadoo's binary distribution to Tomcats 7 bin.

          5. Copy mes-application*.war (you can find it in qcadoo-src/mes/mes-application/target in a the build sources) to folder webapps in Tomcat.

          6.Next we need open folder Tomcat, next open folder conf and open file server.xml

          7. When we open this file, we find verse  <Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true"> ,

             and we change this vers for <Host name="localhost"  appBase="webapps" unpackWARs="false" autoDeploy="false">

          8. Next we need open webapps and we find folder ROOT, we open this folder and we delete all files and folder that are in ROOT folder, next we back in webapps in Tomcat,

              we open  mes-application-0.4.0 and we copy all files and folders which in this folder. After this we need open folder ROOT and we paste  what we copied.

Start Tomcat and mes-application

          1. We must open terminal in Unix  and we go to folder bin in Tomcat, and next write  ./startup.sh or we open Windows Command line in Windows and we  go to folder bin in

                   Tomcat and we write startup.

          2. Next we need open internet browser and open :

               http://localhost:8080/

          3. When we see mes-application we successfully deploy mes-application on Tomcat

Problems

Our foundation was, that when starting our application  tomcat extract mes-application *. war but spring  wants extract mes-application *. war, 

before start application, what  is described at this link:

http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/web/util/Log4jConfigListener.html

So we instead give the mes-application *. war, we given already extract mes-application *. war