Async JAX-RS: Quick Tips…

This article outlines the use of Jetty with JAX-RS Async. Use the webapp archetype and create the webapp in the specific archetype version. mvn archetype:generate -DgroupId=org.bastide -DartifactId=webapp -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.4 When prompted, confirm details: [INFO] Using property: groupId = org.bastide [INFO] Using property: artifactId = webapp Define value for property ‘version’ 1.0-SNAPSHOT: : 1.0-SNAPSHOT [INFO] Using […]

JAX-RS Servlet properties

Recently, I have done a good amount of JAX-RS development, and I needed to kept hitting an issue with forms parameter validation errors on my query params.  The errors kept driving me nuts, until I read the documentation and found – jersey.config.servlet.form.queryParams.disabled .   I also learned the java property is available for those with code […]

JAX-RS Mapping All ClientExceptions with ExceptionMappers

As many of you know, I have been working with JAX-RS and WebSphere Liberty for a few years now. Somehow, after this time has passed, I still seem to uncover new JAX-RS capabilities. For those familiar with JAX-RS, you know it generates some funky errors. I wanted to control the data in the response. I […]

JAX-RS: Lesson Learned – JaxbAnnotationIntrospector.findAnnotation:909′ java.lang.NullPointerException

I recently was working with a colleague that was building a quick (and dirty) web project with Java API for RESTful Web Services (JAX-RS). We ran into an issue (which we realized later was due to rushing).   Exception thrown by application class ‘org.codehaus.jackson.xc.JaxbAnnotationIntrospector.findAnnotation:909‘ java.lang.NullPointerException We built an Application config (see any issue yet? ) […]