Git Product home page Git Product logo

play-glassfish's Introduction

This is a Play container for Glassfish

It allows to deploy any Play application directly in the Glassfish application server (without to have to package it as WAR archive before).

Try the following steps with Glassfish 3.0.1 and play-1.1-unstable-r1095. Also I’ve my Play installation at /Users/guillaume/Desktop/play/1.1; be sure to change the following commands to match your real installation path

Build the play-container.jar for glassfish

Enter the container directory and run:

mvn package

Then copy the target/play-container.jar library to $GLASSFISH_HOME/glassfish/modules. That’s all, the container is installed. It will be available in the glassfish repository once officially released.

Configure the Play container

Start glassfish, and run the asadmin command. At the prompt run the following command:

asadmin> play-config --frameworkPath /Users/guillaume/Desktop/play/1.1

It should result with ‘Command play-config executed successfully.’

Deploy a Play application

You can try to deploy one of the sample application provided with the framework. Let’s try to deloy ‘zencontact’; at the asadmin prompt enter:

asadmin> deploy --contextroot zen /Users/guillaume/Desktop/play/1.1/samples-and-tests/zencontact

It should result with ‘Application deployed successfully with name zencontact.’

You can now try to launch the app at http://localhost:8080/zen, and the application should appear in the glassfish GUI admin. We will add the GUI screens for Play container soon.

Build the admin GUI plugin

Enter the admingui directory and run:

mvn package

Then copy the target/console-play-plugin.jar library to $GLASSFISH_HOME/glassfish/modules. Restart the glassfish server and open the administration console at http://localhost:4848. There is now a Play Container configuration page under the Configuration node. And you can choose Play Application in the drop down list of the deployment page.

play-glassfish's People

Contributors

guillaumebort avatar mbknor avatar

Watchers

rosa maria palacios juncosa avatar  avatar

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.