Category : wildfly

I am running a Java application inside wildfly docker container. While starting the server, we create application log4j folders inside bin folder of wildfly (/opt/wildfly/bin). I am getting exception: Unable to create file AppLog/AppLog.log java.io.IOException: Could not create directory /AppLog Command to run docker container: docker run –name app_container –env-file=env-file -p 8080:8080 -p 9990:9990 -it ..

Read more

I have a Ubuntu server with a WildFly standalone installation configured, here i have a Java app that is accesible on port 80, i want to dockerize it. When create the container, i’m copying the entire WildFly directory from my local storage to the container, but when i run the command docker run -d –name ..

Read more

How to use env variables for datasource properties in JBOSS EAP 7.3? It does not work on my local machine and in docker also. Here is datasource part of my standalone-full.xml file <datasource jta="true" jndi-name="java:/jdbc/powds" pool-name="powpu" enabled="true" use-java-context="true" use-ccm="true"> <connection-url>jdbc:oracle:thin:@${env.CONNECTION_URL}:ddjboss</connection-url> <driver>oracle</driver> <pool> <min-pool-size>1</min-pool-size> <max-pool-size>15</max-pool-size> <prefill>true</prefill> <use-strict-min>false</use-strict-min> <flush-strategy>FailingConnectionOnly</flush-strategy> <allow-multiple-users>false</allow-multiple-users> </pool> <security> <user-name>${env.ORACLE_USERNAME}</user-name> <password>${env.ORACLE_PASSWORD}</password> </security> </datasource> How ..

Read more

I am trying to use keycloak in my app. Im running keycloak on docker and using wildfly 20 as application server. I use this scrypt to start keycloak. version: ‘3’ services: keycloak: image: quay.io/keycloak/keycloak:10.0.1 container_name: keycloak environment: DB_VENDOR: postgres DB_ADDR: host.docker.internal DB_USER: keycloak DB_PASSWORD: test KEYCLOAK_USER: admin KEYCLOAK_PASSWORD: test ports: – 8079:8080 – 8443:8443 Then ..

Read more