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 »

Create new trac project

To get a new project at /var/www/trac the steps would be: trac-admin /var/www/trac initenv htpasswd -c /var/www/trac/.htpasswd admin trac-admin /var/www/trac permission add admin TRAC_ADMIN chown -R www-data:www-data /var/www/trac chmod -R 640 /var/www/trac chmod +X /var/www/trac This would init a project with an admin user. And here my Apache config for it: <Location /trac> SetHandler mod_python PythonInterpreter

Create new trac project Read More »