Java

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

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 »

Oracle JDK under Debian

OpenJDK sometimes makes problems, so I still prefer the Oracle version. Here is how to install it manually under debian/ubuntu: Download binary installer from Oracle’s download page and save it to /opt. Execute the following commands cd /opt chmod +x jdk-6u25-linux-x64.bin ./jdk-6u25-linux-x64.bin update-alternatives –install /usr/bin/java java /opt/jdk1.6.0_25/bin/java 2000