Code Monkey home page Code Monkey logo

1labpsk's Introduction

Java EE starter project

Project is based on Maven, thus import project to IntelliJ IDEA by:

  • File -> Open... -> pick pom.xml file.

Application Server configuration

TomEE (Apache)

Short version:

  1. Download WebProfile, ZIP from: http://tomee.apache.org/downloads.html
  2. Unzip
  3. In IntelliJ IDEA: register "TomEE Server" -> local:
    • Press "Fix", choose "exploded war" as artifact
  4. Run the server, project should start successfully.

Long version: TomEE and IntelliJ IDEA

Payara

  1. Download WebProfile from: http://www.payara.fish/all_downloads
  2. Unzip
  3. In IntelliJ IDEA: register "GlassFish Server" -> local:
    • Choose "Server Domain": payaradomain
    • Press "Fix", choose "exploded war"
    • Press "Fix" again to update debugger settings
  4. Run the server, project should start successfully.

WildFly (RedHat)

  1. Download ZIP "Java EE7 Full & Web Distribution" from: [http://wildfly.org/downloads/]
  2. Unzip
  3. In IntelliJ IDEA: register "JBoss Server" -> local:
    • Press "Fix", choose "exploded war"
  4. Run the server, project should start successfully.

WAS Liberty (IBM)

  1. Download and unzip: WAS Liberty
  2. Run: wlp/bin/server create
  3. In IntelliJ IDEA: register "WebSphere Server" -> local:
    • Press "Fix" to enable JMX
    • Press "Fix" again, choose "exploded war" as artifact
    • In tab "Deployment", for "Use custom context root" enter: JavaEEstarter
  4. Run the server for the first time (it will fail - that is OK), then stop the server.
  5. Open this file with text editor: wlp/usr/servers/defaultServer/server.xml, add classloader and library tags:
    ...
    <application id="JavaEEstarter_war_exploded" ...>
        <classloader commonLibraryRef="h2" />
    </application>
    <library id="h2">
        <fileset dir="${shared.resource.dir}/h2" includes="*.jar" />
    </library>
</server>
  1. Copy file JavaEEstarter/target/JavaEEstarter-1.0-SNAPSHOT/WEB-INF/lib/h2-1.4.193.jar to directory wlp/usr/shared/resources/h2
  2. Run the server again: project should work fine now.

1labpsk's People

Contributors

deivydas321 avatar

Watchers

James Cloos 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.