About Richard Kettelerij

Hands-on software architect at Avisi.

CXF on JBoss AS7: NoClassDefFoundError: com/ctc/wstx/io/DefaultInputResolver

Today we encountered a classloading problem in JBoss AS 7.1.1 while using JAX-WS. JBoss uses CXF as its JAX-WS implementation and CXF in turn depends on Woodstox as its default StAX implementation. The problem was that JBoss failed to load Woodstox now and then when parsing SOAP requests. Continue reading

Quick way to retrieve a chain of SSL certificates from a server

Sometimes I find the need to create a truststore in order to securely communicate with a remote party. The truststore needs to contain the complete certificate chain of the remote server. Now how do you obtain this chain? You might try fiddling with your web browser in order to download the various certificates. Well actually, there’s an easier solution.

Continue reading

Exploring Kotlin, writing a simple spell checker

In my last blog I talked about exploring Kotlin, a JVM language in development by JetBrains. In this blog I’ll walk through a larger piece of Kotlin code.

Spell checker
The program we’re talking about is a simple spell checker. It reads a dictionary of words from a file (/usr/share/dict/words) into a set. Then it reads a sentence from stdin and checks if every word is in the dictionary. Finally it informs the user whether or not the sentence is spelled correctly, i.e. every word is known in the dictionary.

The spell checker is available on my GitHub. Take a moment to study the Java version, we’ll discuss the Kotlin version next. Continue reading

Putting Talend Open Studio projects under version control

When you are working on OS X (I’m not sure if other OS’es have the same issue) your Talend Open Studio workspace is located here:

/Applications/TOS-<version>/TalendOpenStudio-
macosx-carbon.app/Contents/MacOS/workspace

That’s right, the workspace is placed inside TalendOpenStudio.app, which isn’t a very convenient place.

Continue reading

Healthy RSS addiction

I’ve been a long term fan of RSS feeds. It’s ideal when following tech news. In the past I used to read my feeds on a computer – using a mail client – but nowadays I prefer my iPad.

The following screenshot from Google Reader shows my addiction over the past year.

Hmmm a little over 7 tech articles/blogs a day, that sounds about right. Although… this doesn’t include my reads on Hacker News. Perhaps it’s more serious than I thought ;)

Pretty-printing JSON and XML on Mac OSX

Like the rest of my colleagues at Avisi I’m an avid OSX user. One of the reasons I like OSX is it gives you the power of Unix right under your fingertips while still providing a nice user interface.

Now suppose you’re working on RESTful services and you need to verify or debug some JSON output. Digging through an unformatted JSON string can be a real pain. Here’s a simple solution…

Continue reading