You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

installing-server.adoc 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. title: Installing a Web Server
  3. order: 40
  4. layout: page
  5. ---
  6. [[installing.server]]
  7. = Installing a Web Server
  8. You can run Vaadin applications in any Java servlet container that supports at least Servlet API 3.0.
  9. Server push can benefit from using communication modes, such as WebSocket, enabled by features in some latest servers.
  10. For Java EE containers, at least Wildfly, Glassfish, and Apache TomEE Web Profile are recommended.
  11. Some Java IDEs have server integration, so we describe installation of the server before the IDEs.
  12. Some IDE bundles also include a development server; for example, NetBeans IDE includes GlassFish and Apache Tomcat.
  13. You can also opt to install a development server from a Maven dependency and let the IDE control it through Maven executions.
  14. [[installing.server.tomcat]]
  15. == Installing Apache Tomcat
  16. Apache Tomcat is a lightweight Java web server suitable for both development and
  17. production. There are many ways to install it, but here we simply decompress the
  18. installation package.
  19. __Apache Tomcat should be installed with user permissions.__
  20. During development, you will be running Eclipse or some other IDE with user permissions, but deploying web applications to a Tomcat server that is installed system-wide requires administrator or root permissions.
  21. . Download the installation package:
  22. +
  23. Apache Tomcat 8.0 (Core Binary Distribution) from http://tomcat.apache.org/
  24. . Decompress Apache Tomcat package to a suitable target directory, such as
  25. [filename]#C:\dev# (Windows) or [filename]#/opt# (Linux or Mac OS X).
  26. The Apache Tomcat home directory will be [filename]#C:\dev\apache-tomcat-8.0.x# or [filename]#/opt/apache-tomcat-8.0.x#, respectively.
  27. Do not start the server.
  28. If you use an IDE integration, the IDE will control starting and stopping the server.