Month: August 2012

  • Validating SAX Parser

    I’ve been working with the built in Java XML libraries quite a bit lately and one of the things I’ve noticed is that there are very few good snippets of what I call recipe code – little bits of code that show you how to complete a specific task. In this article I show you…

  • VerifyError Expecting a stackmap frame

    I’ve just added a couple of new projects to my Hudson CI system and I noticed that one of the projects, which was configured to build with Java 7, had every test fail with an exception. I decided to use Java 7 after I’d already started working on the project so Java 7 features were…

  • Which Java XML Library Should You Use

    In the past I have always used either JDOM or Dom4J to interact with XML but I’ve never really been overly happy with either library. JDOM is very simple to use and great for simple XML structures but as soon as you want to do something a little more complex it becomes hard work. Dom4J…

  • Pretty Printing XML with JAXP

    Java has a wide selection of built in XML handling capabilities but they are little used by most developers because they are felt, unfairly I think, to be difficult to use. I freely admit that I fell into that camp until fairly recently when I became a convert. Over the next few days I hope…

  • Using a Java Web Service Hosted Behind Apache

    I recently set up a new system running most of the software my business produces. Unlike our other sites right from the beginning all of Java servers (a mixture of Tomcat and GlassFish) will be access via Apache using Apache Tomcat Connector mod_jk. Typically we start of will one server and add Apache in later but…

  • Starting and Stopping Services from Java

    Most of the applications I develop are web based and therefore, when deployed on Windows, are running as a service. This is great most of the time but when I want to programmatically control the application it can present some problems because starting and stopping services requires elevated permissions. This article discusses a solution that…

  • Providing EL Access for Beans

    There are a lot of good ideas in JEE but there are also some sharp corners that the unwary developer could hurt themselves on. Over the next few articles I’m going to point out a few of these less than brilliant pieces of design so that hopefully you’ll be able to avoid them. This article…