MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 2 as of 2023-05-26 09:18:40
  • Java
  • JakartaEE

JakartaEE

Successor of JavaEE/JEE that moved to Eclipse. The packages names moved from javax to jakarta..

  • https://start.jakarta.ee/

Run in docker

Go to https://start.jakarta.ee/ and generate a starter zip with:

  • Jakarta EE version Jakarta EE 10
  • Jakarta EE version Jakarta EE profile Platform
  • Java SE version Java SE 17
  • Runtime WildFly

  • Docker support yes
  • Click on generate to create jakartaee-hello-world.zip

Toggle line numbers
   1 cd ~/Downloads/
   2 mv jakartaee-hello-world.zip /tmp/
   3 cd /tmp/
   4 unzip jakartaee-hello-world.zip 
   5 cd jakartaee-hello-world/
   6 mvn -version     
   7 # Apache Maven 3.6.3
   8 sudo apt install openjdk-17-jdk
   9 java -version
  10 # openjdk version "17.0.6" 2023-01-17
  11 mvn clean install
  12 docker build -t jee-image .
  13 docker run -d --rm -p 8080:8080 -p 9990:9990 --name app jee-image
  14 docker exec -it app bash 
  15 cd /opt/jboss/wildfly/bin
  16 sh add-user.sh admin admin
  17 # Updated user 'admin' to file '/opt/jboss/wildfly/standalone/configuration/mgmt-users.properties'
  18 # Updated user 'admin' to file '/opt/jboss/wildfly/domain/configuration/mgmt-users.properties'
  19 Open http://localhost:9990/console/index.html
  20 exit 
  21 curl http://localhost:8080/jakartaee-hello-world/rest/hello?name=userx
  22 # {"hello":"userx"}
  23 curl http://localhost:8080/jakartaee-hello-world/
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01