Change CentOS 7 keymap

After installing CentOS 7 with German locale the keymap still was set to us. To change it to de I had to edit the file /etc/default/grub and replace us with de after vconsole.keymap=: GRUB_CMDLINE_LINUX=”… vconsole.keymap=de …” After that execute the following command to update grub and reboot: grub2-mkconfig -o /boot/grub2/grub.cfg Of course you have to take these steps […]

Change CentOS 7 keymap Read More »

gpg behind proxy results in gpgkeys: HTTP fetch error 7: couldn’t connect to host

To get something like sudo add-apt-repository ppa:webupd8team/java work behind a proxy I had to add http_proxy and https_proxy into my /etc/environment file. Don’t forget to source the file or to relogin after changes in it. With theses entries I had to use sudo -E add-apt-repository ppa:webupd8team/java telling sudo to preserve existing env variables. Now it’s working for

gpg behind proxy results in gpgkeys: HTTP fetch error 7: couldn’t connect to host Read More »

JSF 2.2 ViewScoped

JSF 2.2 has the missing ViewScoped annotation working with CDI. Simply use @javax.faces.view.ViewScoped on your bean. Be careful NOT to mix up with @javax.faces.bean.ViewScoped. Example view scoped class: import javax.faces.view.ViewScoped; import javax.inject.Named; @ViewScoped @Named public class SenderView implements Serializable { } If you use the wrong annotation you will get weld errors when trying to inject an instance

JSF 2.2 ViewScoped Read More »

JBoss Maven Repository

To use the jboss maven repository under https://repository.jboss.org/nexus/ you have to add a profile in your settings.xml (~/.m2 or $M2_HOME/conf). <settings> … <profiles> … <profile> <id>jboss-public-repository</id> <repositories> <repository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url> <layout>default</layout> <releases>

JBoss Maven Repository Read More »

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 »

Install Trac

First I installed some packages (not all are required): apt-get install python-setuptools python-setuptools-git python-genshi python-pygresql subversion subversion-tools git python-babel postfix bsd-mailx Then I downloaded trac from svn and installed it: svn co http://svn.edgewall.org/repos/trac/tags/trac-1.1.3 trac_svn cd trac_svn python setup.py install Just choose a name for your project and for small projects a local sqlite-db is fine. After this you

Install Trac Read More »