com.scooterframework.tools.webserver
Class StartServer

java.lang.Object
  extended by com.scooterframework.tools.webserver.StartServer

public class StartServer
extends java.lang.Object

StartServer class starts web server. This class exposes the following system properties if they have not been defined.

     scooter.home -> path to scooter home
     app.name     -> application name
     app.logs     -> location of application logs
     app.path     -> path to a specific web app
     jetty.home   -> path to jetty server
     jetty.logs   -> location of jetty logs
     jetty.port   -> port number of jetty server
     jdk.home     -> path to JDK (only if tools.jar is detected)
     START        -> configuration file of jetty server
     webapps.name -> name of webapps directory (default is webapps)
     webapps.path -> path to webapps directory
 
Original Jetty command line options are also supported: -DDEBUG, --help, --version, --stop

Examples:

        Usage:
            java -jar tools/server.jar app_name [port, [config ...]]

        Examples:
            This page:
                java -jar tools/server.jar -help

            Run Jetty Server with default jetty.xml in tools/servers/jetty/etc and port 8080:
                java -jar tools/server.jar blog

            Run Jetty Server with default jetty.xml in tools/servers/jetty/etc but on port 8090:
                java -jar tools/server.jar blog 8090

            Run Jetty Server with the blog sample app on port 8091:
                java -jar tools/server.jar examples/blog 8091

            Run Jetty Server with the blog sample app installed in user home:
                java -jar tools/server.jar /home/john/blog

            Run Jetty Server as JettyPlus (JNDI, JAAS etc.) with config files in tools/servers/jetty/etc:
                java -jar tools/server.jar blog etc/jetty-plus.xml etc/jetty.xml
 


Constructor Summary
StartServer()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void startUp(java.lang.String[] args)
           
static void startUp(java.lang.String jettyHome, java.util.List<java.lang.String> argItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartServer

public StartServer()
Method Detail

main

public static void main(java.lang.String[] args)

startUp

public static void startUp(java.lang.String[] args)
                    throws java.lang.Exception
Throws:
java.lang.Exception

startUp

public static void startUp(java.lang.String jettyHome,
                           java.util.List<java.lang.String> argItems)
                    throws java.lang.Exception
Throws:
java.lang.Exception