Load Balancing Cluster not working with Apache HTTP Server 2.4.6 and JBoss EAP 7

Basically you have two options – either create a cluster using JBoss own domain mode or extend you standalone configuration to contain required elements for session replication and sso. In domain mode, most of the configurations are already present in EAP7 – just extend domain-full-ha profile. Required changes include enabling distributable flag in your web … Read more

How do I Install JBoss AS / WildFly Server in Eclipse for Java EE

Install the most recent JBoss Tools. Go to Help > Install New Software. Set Work with to the following URL depending on Eclipse version: 4.8+ (Photon): https://download.jboss.org/jbosstools/photon/stable/updates/ 4.7 (Oxygen): http://download.jboss.org/jbosstools/oxygen/stable/updates/ 4.6 (Neon): https://download.jboss.org/jbosstools/neon/stable/updates/ 4.5 (Mars): http://download.jboss.org/jbosstools/mars/stable/updates/ 4.4 (Luna): http://download.jboss.org/jbosstools/updates/stable/luna/ 4.3 (Kepler): http://download.jboss.org/jbosstools/updates/stable/kepler/ 4.2 (Juno): http://download.jboss.org/jbosstools/updates/stable/juno/ 3.7 (Indigo): http://download.jboss.org/jbosstools/updates/stable/indigo/ 3.6 (Helios): http://download.jboss.org/jbosstools/updates/stable/helios/ Press Enter In the … Read more

Keycloak retrieve custom attributes to KeycloakPrincipal

To add custom attributes you need to do three things: Add attributes to admin console Add claim mapping Access claims The first one is explained pretty good here: https://www.keycloak.org/docs/latest/server_admin/index.html#user-attributes Add claim mapping: Open the admin console of your realm. Go to Clients and open your client This only works for Settings > Access Type confidential … Read more

How do you specify the root context in your tags in web.xml?

This can’t be done in an appserver agnostic way. Context root isn’t part of the standard web.xml file. It’s either specified when you deploy the app or in an appserver specific descriptor. Glassfish: sun-web.xml; JBoss: jboss-web.xml; Weblogic: weblogic.xml; Tomcat: context.xml; WebSphere: ibm-web-ext.xml. Note: the above applies to deploying WAR files. EAR files are a different … Read more

How to enable TLS 1.2 in Java 7

There are many suggestions but I found two of them most common. Re. JAVA_OPTS I first tried export JAVA_OPTS=”-Dhttps.protocols=SSLv3,TLSv1,TLSv1.1,TLSv1.2″ on command line before startup of program but it didn’t work for me. Re. constructor Then I added the following code in the startup class constructor and it worked for me. try { SSLContext ctx = … Read more

JBoss debugging in Eclipse

You mean remote debug JBoss from Eclipse ? From Configuring Eclipse for Remote Debugging: Set the JAVA_OPTS variable as follows: set JAVA_OPTS= -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS% or: JAVA_OPTS=”-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $JAVA_OPTS” In the Debug frame, select the Remote Java Application node. In the Connection Properties, specify localhost as the Host and specify the Port as … Read more