Report this

What is the reason for this report?

How do i install and configure wildfly 10 on centOS7

Posted on June 1, 2018

Am trying to deploy my java EAR non maven wildfly application on CentOS 7. I need help please.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

To deploy your Java EAR non-maven WildFly application on CentOS 7, follow these steps:

  1. Install Java: Make sure you have Java installed on your CentOS 7 server. If not, you can install it using the following commands:
sudo yum install java-1.8.0-openjdk-devel
sudo yum install java-1.8.0-openjdk
  1. Install WildFly: Download and install the WildFly application server. You can visit the official WildFly download page to get the latest version.
  2. Configure WildFly: Set up WildFly as a systemd service and configure it for your application by following this detailed guide: How To Set Up WildFly on CentOS 7.
  3. Deploy EAR file: Copy your EAR file to the /opt/wildfly/standalone/deployments/ directory. Replace “/opt/wildfly” with your wildfly installation path if different.
  4. Start WildFly: Run sudo systemctl start wildfly to start the WildFly service.

I’ll recommend to check that the service have started successfully - sudo systemctl status wildfly

If you want to enable WildFly to start at boot, use sudo systemctl enable wildfly.

These steps should help you get started with deploying your non-maven Java EAR application on WildFly running on a CentOS 7 server. For more information on working with WildFly, please check the official WildFly documentation.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.