| 1 | <!-- | 
|---|
| 2 | Licensed to the Apache Software Foundation (ASF) under one or more | 
|---|
| 3 | contributor license agreements.  See the NOTICE file distributed with | 
|---|
| 4 | this work for additional information regarding copyright ownership. | 
|---|
| 5 | The ASF licenses this file to You under the Apache License, Version 2.0 | 
|---|
| 6 | (the "License"); you may not use this file except in compliance with | 
|---|
| 7 | the License.  You may obtain a copy of the License at | 
|---|
| 8 |  | 
|---|
| 9 | http://www.apache.org/licenses/LICENSE-2.0 | 
|---|
| 10 |  | 
|---|
| 11 | Unless required by applicable law or agreed to in writing, software | 
|---|
| 12 | distributed under the License is distributed on an "AS IS" BASIS, | 
|---|
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|---|
| 14 | See the License for the specific language governing permissions and | 
|---|
| 15 | limitations under the License. | 
|---|
| 16 | --> | 
|---|
| 17 | <html> | 
|---|
| 18 | <head> | 
|---|
| 19 | <meta name="author" content="Ben Souther" /> | 
|---|
| 20 | <title>Sample Application</title> | 
|---|
| 21 | </head> | 
|---|
| 22 | <body> | 
|---|
| 23 | <h2>Sample Application</h2> | 
|---|
| 24 | <p> | 
|---|
| 25 | The example app has been packaged as a war file and can be downloaded | 
|---|
| 26 | <a href="sample.war">here</a> (Note: make sure your browser doesn't | 
|---|
| 27 | change file extension or append a new one). | 
|---|
| 28 | </p> | 
|---|
| 29 | <p> | 
|---|
| 30 | The easiest way to run this application is simply to move the war file | 
|---|
| 31 | to your <b>CATALINA_HOME/webapps</b> directory. Tomcat will automatically | 
|---|
| 32 | expand and deploy the application for you. You can view it with the | 
|---|
| 33 | following URL (assuming that you're running tomcat on port 8080 | 
|---|
| 34 | as is the default): | 
|---|
| 35 | <br /> | 
|---|
| 36 | <a href="http://localhost:8080/sample">http://localhost:8080/sample</a> | 
|---|
| 37 | </p> | 
|---|
| 38 | <p> | 
|---|
| 39 | If you just want to browse the contents, you can unpack the war file | 
|---|
| 40 | with the <b>jar</b> command. | 
|---|
| 41 | <source> | 
|---|
| 42 | jar -xvf sample.war | 
|---|
| 43 | </source> | 
|---|
| 44 | </p> | 
|---|
| 45 | </body> | 
|---|
| 46 | </html> | 
|---|