public
Description: A servlet for running JSGI / Jack compatible server-side JavaScript applications and frameworks on Google AppEngine for Java or other servlet containers
Homepage: http://jackjs.org/
Clone URL: git://github.com/tlrobinson/jack-servlet.git
name age message
file .gitignore Tue Apr 14 02:46:01 -0700 2009 Initial commit of v2 of the Jack servlet [tlrobinson]
file README.md Tue May 05 22:20:53 -0700 2009 Merge branch 'master' into int [tlrobinson]
file build.xml Tue Apr 14 02:46:01 -0700 2009 Initial commit of v2 of the Jack servlet [tlrobinson]
file package.json Sat Aug 22 22:15:49 -0700 2009 Updated packag.json [tlrobinson]
directory src/ Tue May 05 21:12:34 -0700 2009 Added support for user-specified environments l... [tlrobinson]
directory war/ Mon Jun 15 19:44:38 -0700 2009 Remove compiled class. Compile yourself! [tlrobinson]
README.md

Jack Servlet

Requirements

  1. Narwhal: http://github.com/tlrobinson/narwhal
  2. Jack: http://github.com/tlrobinson/jack

AppEngine Instructions

  1. Set the APPENGINE_JAVA_SDK environment variable to the location of the AppEngine SDK (http://code.google.com/appengine/downloads.html), or change the "sdk.dir" property in the build.xml file.
  2. Ensure "war/WEB-INF/narwhal" is a Narwhal distribution (currently symlinked to "narwhal" in the parent directory) and "war/WEB-INF/narwhal/packages/jack" is a Jack distribution.
  3. Place your Jack application in "war/WEB-INF" with the main module called "jackconfig.js", which exports the main Jack application as "app".
  4. "ant runserver" to run locally.
  5. Edit the AppEngine application ID in "war/WEB-INF/appengine-web.xml".
  6. "ant update" to deploy.

Other Servlet Container Instructions

Coming soon.

Notes

  • You can change the default modules path, module name, application name, environment name using the "modulesPath", "module", "app", and "environment" init-params in web.xml, i.e.:

    <servlet-name>jack</servlet-name> <servlet-class>org.jackjs.JackServlet</servlet-class> <init-param>

    <param-name>modulesPath</param-name>
    <param-value>WEB-INF</param-value>
    
    </init-param> <init-param>
    <param-name>module</param-name>
    <param-value>jackconfig.js</param-value>
    
    </init-param> <init-param>
    <param-name>app</param-name>
    <param-value>app</param-value>
    
    </init-param> <init-param>
    <param-name>environment</param-name>
    <param-value>production</param-value>
    
    </init-param>
  • In addition to the "war/WEB-INF/narwhal" symlink, there are relative symlinks to Rhino in "war/WEB-INF/lib/js.jar" and an example application at "war/WEB-INF/jackconfig.js"