Java

Remove “Server” and “X-Powered-By” headers in wildfly 8.2.0

Just remove the following two lines <filter-ref name=”server-header”/> <filter-ref name=”x-powered-by-header”/> from your undertow config in standalone.xml. They are found under subsystem urn:jboss:domain:undertow:1.2 > server > host. Don’t forget to reload/-start your application server after these changes.

Remove “Server” and “X-Powered-By” headers in wildfly 8.2.0 Read More »

SSL in Wildfly 8.2.0

Since wildfly uses undertow the configuration of SSL has changed. You can follow these steps to get SSL running: Create a keystore with keys: cd $WILDFLY_HOME/standalone/configuration keytool -genkey -alias localhost -keyalg RSA -keystore keystore.jks -keysize 4096 You need to replace “localhost” with your domain name. NOTE: Your browser will complain that the connection is unsecure

SSL in Wildfly 8.2.0 Read More »

Widlfly 8.2.0 – JBAS010153: Node identifier is set to the default value

In the latest version of Wildfly (8.2.0) there is a warning looking like [org.jboss.as.txn] (ServerService Thread Pool — 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique. To get rid of this you have to change the standalone.xml file.  Change this part <subsystem xmlns=”urn:jboss:domain:transactions:2.0″> <core-environment> <process-id> <uuid/>

Widlfly 8.2.0 – JBAS010153: Node identifier is set to the default value Read More »

Create instance of javax.validation.Validator manually

To bootstrap javax.validation.Validator you can simply use the following code: final ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); final Validator validator = factory.getValidator(); For further information documentation see for version 5.1 http://docs.jboss.org/hibernate/validator/5.1/reference/en-US/html/chapter-bootstrapping.html#section-retrieving-validator-factory-validator for version 4.3 http://docs.jboss.org/hibernate/validator/4.3/reference/en-US/html/validator-bootstrapping.html#section-validator-instance

Create instance of javax.validation.Validator manually Read More »

Java 8 Support in Eclipse Kepler 4.3.2 (SR2)

Java 8 released and the actual Eclipse version doesn’t support it out of the box. I found an official patch that adds this support to the actual version of Kepler SR2. Here is the update site: http://download.eclipse.org/eclipse/updates/4.3-P-builds Here the official JDT page that led me to this page: https://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_%28BETA%29 Be sure to read the instructions as

Java 8 Support in Eclipse Kepler 4.3.2 (SR2) Read More »