Skip to content
Tags

,

Fix Jetty 9.1 for JDK8 annotations

December 18, 2013

I discovered this problem and solution while trying to run an app built using Spring 4.0 GA and JDK8b120 and deploying within Jetty. Spring Web MVC makes heavy use of the newly added Java 8 annotations on types which causes a problem with the version of ASM bundled in Jetty.

Jetty 9.1.0 comes bundled with ASM 4.1 but running with bytecode level 1.8 and annotations causes the following error:

The fix is pretty simple. Download ASM 5.0 or greater and replace TWO(2) files within the Jetty installation.

Replace: jetty-distribution-9.1.0.v20131115/lib/annotations/(asm-4.1.jar|asm-commons-4.1.jar) with asm-5.0_BETA/(asm-5.0_BETA.jar|asm-commons-5.0_BETA.jar)

Advertisements

From → Java

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: