Monthly Archives: April 2012

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/Persistence

This is what you get when you try to test code that relies on Java EE APIs. You can compile the code because the javaee;javaee-api;5 dependency has stubs for the methods. Unfortunately, it does not contain implementations for the methods … Continue reading

Posted in Java, JUnit, Maven | Leave a comment

The correct way to load the spring context

We added Spring to a legacy application. We encountered places where we needed access to Spring beans by non-Spring beans. The Spring context was loaded by: The appeared to work fine, but what we did not realize until we looked … Continue reading

Posted in Java, Spring | Tagged , | Leave a comment

When a vanilla CXF Soap client isn’t enough

Normally, I have been able to generate a Soap client and be on my way. This particular time I had to perform some business logic on the client. One of the first things that I encountered was the nuisance of … Continue reading

Posted in Java, Maven, xml | Tagged , , | Leave a comment

How to check if a jsp fragment is empty

I have a JSP tag file named collapsiblePanel with the following attribute declaration for a JSP fragment. I am using the tag around some output to create a collapsed panel. The collapsible panel adds an arrow before the heading and … Continue reading

Posted in Java, JSP | 1 Comment