Code Monkey home page Code Monkey logo

tomcat-extension-custom-runtime-loader's Introduction

Tomcat Extension for Custom Runtime Loading

Users can deploy custom run times on tomcat with this extension. As an example we can run jaggery application using this extension.

Follow below steps to run jaggery web apps on tomcat.

  1. Open the server.xml file (stored in the <Tomcat_HOME>/conf directory).

  2. Add the following under the server tag: <Listener className="org.wso2.appserver.configuration.listeners.ServerConfigurationLoader"/>

  3. Open the context.xml file (stored in the <Tomcat_HOME>/conf directory).

  4. Add the following under the Context tag: <Listener className="org.wso2.appserver.configuration.listeners.ContextConfigurationLoader"/>

  5. Add the below lines under the Context tag: `<Loader className="org.wso2.appserver.webapp.loader.AppServerWebappLoader"
 loaderClass="org.wso2.appserver.webapp.loader.AppServerWebappClassLoader"/>



    
`

  6. Copy <project_root>/modules/custom-run-time-loader/target/custom-runtime-loader-1.0.0-SNAPSHOT-fat.jar to <Tomcat_HOME>/lib folder.

  7. Copy <project_root>/modules/custom-run-time-loader/src/main/Resources/jaggery/org.jaggeryjs.jaggery.tomcat.listener-0.13.0.jar to <Tomcat_HOME>/lib folder.

  8. Copy <project_root>/modules/custom-run-time-loader/src/main/Resources/runtimes folder to <Tomcat_HOME>/lib folder.

  9. Copy <project_root>/modules/custom-run-time-loader/src/main/Resources/wso2 folder to <Tomcat_HOME>/conf folder.

  10. Copy <project_root>/samples/jaggerySamples/target/coffeeshop.war to <Tomcat_HOME>/webapps folder.

Now start the server and you should be able to access the application by going to

http://localhost:8080/coffeeshop

tomcat-extension-custom-runtime-loader's People

Contributors

callkalpa avatar chirangaalwis avatar laki88 avatar lakshmanudayakantha avatar maheshika avatar mirage20 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

laki88

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.