content/meecrowave/meecrowave-core/deploy-webapp.html (145 lines of code) (raw):

<!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <head> <title>Meecrowave :: the customizable server</title> <!-- Meta --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="/meecrowave/favicon.ico"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> <!-- Global CSS --> <link rel="stylesheet" href="/meecrowave/assets/plugins/bootstrap/css/bootstrap.min.css"> <!-- Plugins CSS --> <link rel="stylesheet" href="/meecrowave/assets/plugins/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="/meecrowave/assets/plugins/elegant_font/css/style.css?version=1"> <!-- highlighting --> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/idea.min.css" integrity="sha256-rYB1c4yTU5UJB//rod7DtBo1JM6HAme/9Vd+VesFG2U=" crossorigin="anonymous" /> <!-- Theme CSS --> <link id="theme-style" rel="stylesheet" href="/meecrowave/assets/css/styles.css"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body class="body-blue"> <div class="page-wrapper"> <!-- TODO: google analytics --> <header class="header text-center"> <div class="container"> <div class="branding"> <h1 class="doc-title"> <span aria-hidden="true" class="icon icon_puzzle_alt icon"></span> <a href="/meecrowave/index.html"> Meecrowave </a> </h1> </div> </div><!--//container--> </header><!--//header--> <div class="doc-wrapper"> <div class="container"> <div id="doc-header" class="doc-header text-center"> <h1 class="doc-title"><span aria-hidden="true" class="icon icon icon_puzzle_alt"></span> Meecrowave and webapps</h1> </div><!--//doc-header--> <div class="doc-body"> <div class="doc-content"> <div class="content-inner"> <div class='btn-toolbar pull-right' style="z-index: 2000;"> <div class='btn-group'> <a class="btn" href="/meecrowave/meecrowave-core/deploy-webapp.pdf"><i class="fa fa-file-pdf-o"></i> Download as PDF</a> </div> </div> <section class="doc-section"> <div id="preamble"> <div class="sectionbody"> <div class="paragraph"> <p>Meecrowave is a development enabler and simplifier thanks to its classpath deployment. However it is still a plain Apache Tomcat and you can deploy existing webapp you developed with no particular constraint.</p> </div> <div class="paragraph"> <p>From now on, we will assume you have a Servlet or Spring webapp <code>myapp.war</code>.</p> </div> </div> </div> <div class="sect1"> <h2 id="_deployment_with_a_meecrowave_bundle">Deployment with a Meecrowave bundle</h2> <div class="sectionbody"> <div class="paragraph"> <p>This part assumed you built a bundle with <a href="../meecrowave-maven/index.html">Meecrowave Maven Plugin</a>. It gives you a zip which has a tomcat layout once exploded:</p> </div> <div class="listingblock"> <div class="content"> <pre class="highlightjs highlight"><code class="language-none hljs">. |- bin |- conf |- logs `- lib</code></pre> </div> </div> <div class="paragraph"> <p>If you didn&#8217;t package a webapp at bundle time you can create a <code>webapps</code> folder in this layout and add your war inside. Then to launch this war you can either use a <code>server.xml</code> in <code>conf</code> and add as in any Tomcat your <code>&lt;Context /&gt;</code> in it or you can launch it directly using:</p> </div> <div class="listingblock"> <div class="content"> <pre class="highlightjs highlight"><code data-lang="sh" class="language-sh hljs">./bin/meecrowave.sh run --webapp=webapps/myapp.war</code></pre> </div> </div> </div> </div> <div class="sect1"> <h2 id="_deployment_with_the_runner">Deployment with the runner</h2> <div class="sectionbody"> <div class="paragraph"> <p>If you prefer to use the runner you can deploy a war with the following command:</p> </div> <div class="listingblock"> <div class="content"> <pre class="highlightjs highlight"><code data-lang="sh" class="language-sh hljs">java -jar meecrowave-core-runner.jar --webapp=webapps/myapp.war</code></pre> </div> </div> </div> </div> <div class="sect1"> <h2 id="_going_further">Going further</h2> <div class="sectionbody"> <div class="paragraph"> <p>You can find more information about deployment checking out the <a href="cli.html">CLI</a> documentation which presents all options of the several ways to launch Meecrowave.</p> </div> </div> </div> </section><!--//doc-section--> </div><!--//content-inner--> </div><!--//doc-content--> <div class="doc-sidebar"> <nav id="doc-nav"> <ul id="doc-menu" class="nav doc-menu hidden-xs affix-top" data-spy="affix"> <li><a href="/meecrowave/index.html">Home</a></li> <li><a href="/meecrowave/start.html">Quick Start</a></li> <li><a href="/meecrowave/components.html">Components</a></li> <li><a href="/meecrowave/download.html">Download</a></li> <li><a href="/meecrowave/community.html">Community</a></li> </ul><!--//doc-menu--> </nav> </div> </div> </div><!--//page-wrapper--> <footer class="footer text-center"> <div class="container"> <div class="row"> <p >Copyright &copy; 2016-2020 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. </p> </div> </div> <div class="container"><!-- don't remove it otherwise theme is no more creative common --> <small class="copyright">Designed with <i class="fa fa-heart"></i> by <a href="http://themes.3rdwavemedia.com/" target="_blank">Xiaoying Riley</a> for developers</small> </div><!--//container--> </footer><!--//footer--> <!-- Main Javascript --> <script type="text/javascript" src="/meecrowave/assets/plugins/jquery-1.12.3.min.js"></script> <script type="text/javascript" src="/meecrowave/assets/plugins/bootstrap/js/bootstrap.min.js"></script> <script type="text/javascript" src="/meecrowave/assets/plugins/jquery-match-height/jquery.matchHeight-min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js" integrity="sha256-aYTdUrn6Ow1DDgh5JTc3aDGnnju48y/1c8s1dgkYPQ8=" crossorigin="anonymous"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/java.min.js" integrity="sha256-21Z1xKC/FsaqN9z9jIER9xiX4XbV5buFEVdkZvsfBIc=" crossorigin="anonymous"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/groovy.min.js" integrity="sha256-0B+Ps1zCncLC5JIOQ+MtIhI/UhbJkYbxWsJowD3c+tk=" crossorigin="anonymous"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/shell.min.js" integrity="sha256-nwOM3xEc6CFfrPNDN1upX+5ynjWKAXsg+bW63SSzte0=" crossorigin="anonymous"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/languages/bash.min.js" integrity="sha256-zXrlim8wsIvcEFjsD3THiAfTvtPZifqx8q0rxegiWQc=" crossorigin="anonymous"></script> <script type="text/javascript" src="/meecrowave/assets/js/main.js?version=1"></script> </body> </html>