Wednesday, April 19, 2006

qmail and Mac OS X

I still get a lot of hits on my site from people searching for qmail+macosx. Back in 2001 I wrote a tutorial on howto setup qmail on macosx but lost it during a server crash in 2003, sorry. Anyway, qmail needed a patch to compile on osx. The patch is still there. You can get it here. Maybe this is of help for you. Please note that the patch is not from me but credit goes someone that also worked on the topic back then (don't remember the name). It is probably out of date anyway. I personally switched from qmail to postfix cause qmail required to lot of effort maintaining and adjusting to each new version of osx.

Saturday, April 01, 2006

JBoss, myfaces and tomahawk extensions

Jboss uses Apache myfaces as JSF implementation. The api and impl packages are included in jbossweb-tomcatXX/jsf-libs. Unfortunately when trying to deploy a webapp that uses the tomahawk extensions you run into classloading problems (java.lang.ClassCastException) because the impl package as well as the tomahwak.jar contain both shared classes. To solve these problems make sure that all jars are loaded by the same classloader (i.e. copy tomahawk.jar to jbossweb-tomcatXX/jsf-libs or remove jsf-libs and add myfaces-api.jar, myfaces-impl.jar and tomahawk.jar to your WEB-INF/libs). With the former solution, however, you're not able to access any resources from your webapp. Therefore it is best if you remove the jsf-libs and include all required libs in the webapp.