Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

Build Wildfly deb package

# http://wildfly.org/downloads/
# https://github.com/mattthias/wildfly-packaging
VERSION=13.0.0.Final
REVISION=1
sudo apt-get install -y devscripts
# Download the "source" (the binary "Java EE7 Full & Web Distribution")
# wget http://download.jboss.org/wildfly/10.1.0.Final/wildfly-10.1.0.Final.tar.gz
# https://github.com/ilanddev/wildfly-debian/tree/master/debian
# download archive
mkdir /tmp/wildfly
wget http://download.jboss.org/wildfly/${VERSION}/wildfly-${VERSION}.tar.gz -q -O /tmp/wildfly/wildfly-${VERSION}.tar.gz
# create a link to archive

cd /tmp/wildfly

ln -s wildfly-${VERSION}.tar.gz wildfly_${VERSION}.orig.tar.gz
# unpack and enter directory
tar -xzf wildfly-${VERSION}.tar.gz

cd wildfly-${VERSION}

# Lets start with packaging (create debian/ dir and changelog)
mkdir debian

dch --create --package wildfly --newversion=${VERSION}-${REVISION} "Build WildFly ${VERSION} package at $(date -I)"

# 2. debian/compat
echo "9" > debian/compat
# 3. debian/rules
echo -ne '#!/usr/bin/make -f\n%:\n\tdh $@\n' > debian/rules
# 4. debian/control
cat < debian/control

Source: wildfly
Maintainer: Foo
Standards-Version: 3.9.5
Build-Depends: debhelper

Package: wildfly
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: WildFly application server
EOF

# 5. debian/source/format
mkdir -p debian/source
echo "3.0 (quilt)" > debian/source/format
# 6. Add all dir to install
for i in $(ls | grep -v debian); do
    echo $i opt/wildfly/

done > debian/wildfly.install

Wildfly

configuration
/opt/wildfly/docs/contrib/scripts/systemd/README - systemd example configuration
/opt/wildfly/standalone/configuration/standalone.xml

CLI

ssh -X wildfly.example.com /opt/wildfly/bin/jboss-cli.sh --gui

/opt/wildfly/bin/jboss-cli.sh --connect

/subsystem=datasources/data-source=ExampleDS/:remove

# sdd postgres driver
/subsystem=datasources/jdbc-driver=postgres:add(driver-name=postgres,driver-module-name=org.postgresql,driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)
# add datasource

data-source add --name=DefaultDS --driver-name=postgres --jndi-name=java:jboss/datasources/postgresDS --connection-url=jdbc:postgresql://localhost:5432/foo --user-name=foo --password=bar --enabled=true --use-java-context=true

# --use-ccm=false --max-pool-size=25 --blocking-timeout-wait-millis=5000

subsystem=deployment-scanner/scanner=default/:write-attribute(name=deployment-timeout,value={{ wildfly_startup_timeout }})
interface=public/:undefine-attribute(name=inet-address)
interface=public/:write-attribute(name=any-address,value=true)

# enable ssl
/core-service=management/security-realm=ApplicationRealm/server-identity=ssl:write-attribute(name=protocol,value=openssl.TLS)
# cli

[standalone@localhost:9990 /] deployment-info
[standalone@localhost:9990 /] undeploy my-ear-1.0.ear
[standalone@IP_ADDRESS:9990 /] /system-property=foo:add(value=bar)
[standalone@IP_ADDRESS:9990 /] /system-property=foo:read-resource

}
[standalone@IP_ADDRESS:9990 /] /system-property=foo:remove

https://docs.jboss.org/author/display/WFLY10/CLI+Recipes

Ansible
https://github.com/Wolfant/ansible-jbossCli

Enable Wildfly debug port 8787

echo "DEBUG=true" | sudo tee -a /etc/wildfly/wildfly.conf
sudo service wildfly restart

#/opt/wildfly/bin/standalone.sh DEBUG_MODE=true

Logging

# enable debug loging
/opt/wildfly/bin/jboss-cli.sh
connect
/subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=DEBUG)
/subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=DEBUG)

https://wildscribe.github.io/WildFly/11.0//subsystem/logging/index.html

wildfly
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung