Quantcast
Channel: Ben McCann » Java
Browsing latest articles
Browse All 8 View Live

Hibernate ASM Incompatibilities

A few times now I’ve tried to use ASM 2.2.3 in an application that was utilizing Hibernate. It doesn’t work the way you’d hope. The easiest solution I’ve found is to remove the CGLib and ASM (1.5.3),...

View Article



Image may be NSFW.
Clik here to view.

Running Ant within Eclipse

I tried to run an Ant target within Eclipse today and got a fun error: BUILD FAILED java.lang.NoClassDefFoundError: com/sun/javadoc/Type This happened because Ant could not find tools.jar, which...

View Article

Showdown – Java HTML Parsing Comparison

I had to do some HTML parsing today, but unfortunately most HTML on the web is not well-formed like any markup I’d create. Missing end tags and other broken syntax throws a wrench into the situation....

View Article

Suppressing Compile Warnings with Java Annotations

If you’ve used Java 1.5 Generics much then you’re probably familiar with the following compile warning: “Type safety: The expression of type List needs unchecked conversion to conform to...

View Article

Intro to URL Rewriting with Apache’s .htaccess

I have created an .htaccess file to do URL rewriting for every site I’ve ever created. If you’re not familiar with URL rewriting, it is used to modify a URL or redirect the user before the requested...

View Article


HTML Parsing using the Firefox DLLs

One of my first posts was a comparison of HTML parsers. Today I found a particularly challenging document to parse. None of the parsers I had compared earlier were able to handle the malformed HTML in...

View Article

Easy Java Bean toString() using BeanUtils

I often want to have a String description of my beans for debugging or logging purposes, but hate having to manually concatenate the fields in my class to create a toString() method. This code snippet...

View Article

Embedded Jetty

One of the coolest things about Jetty is the ability to run it in embedded mode.  This means that you can write a Java app with a main method that will launch a Jetty server.  This has some really nice...

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images