Git Product home page Git Product logo

jetty-weld-war-example's Introduction

Jetty Weld WAR Example

Quick Start

Jetty 12

Run

mvn package cargo:run

Debug

mvn package cargo:run -Dcargo.debug=true

This will add -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y.

Test

mvn verify

Deploy

Jetty 12

The JETTY_BASE needs to be set up with the following with the war deployed at JETTY_BASE/webapp.

cd $JETTY_BASE
java -jar $JETTY_HOME/start.jar --add-modules=http,ee10-deploy,ee10-annotations,ee10-websocket-jakarta,ee10-cdi-decorate

Currently Jetty 12 requires a custom ServletContainerInitializer to explicitly set the CDI Provider to the WeldProvider due to the following issue jetty/jetty.project#10150 as the presence of the jakarta.enterprise.cdi-api library in the Jetty classpath causes the ServiceLoader not to find the WeldProvider. This is implemented in WeldServletContainerInitializer.

Starting

Jetty 12

The server can be started with the following.

cd $JETTY_BASE
java -jar $JETTY_HOME/start.jar

jetty-weld-war-example's People

Contributors

justin-tay avatar

Watchers

 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.