Grails

ClassNotFoundException when using ServletAPI 2.5 (jstl.jar problem)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.1.1
  • Fix Version/s: 1.2.1
  • Component/s: Project infrastructure
  • Labels:
    None
  • Environment:
    Linux Sun JDK 1.6

Description

When you are building a 2.5 Servlet application (eg app.servlet.version=2.5 in application.properties) you can get the following CNF error:

java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config

This is because apparently there is no jstl-2.5.jar in the grails/lib folder, and it seems Grails loads classes corresponding to jstl-{SERVLET_VERSION}.jar.

Just renaming jstl-2.4.jar to jstl-2.5.jar solved the problem.

By the way, where does this jar comes from? Did you use the one from the Jakarta-Standard Lib project?

Activity

Hide
Graeme Rocher added a comment -

jars renamed and we only support servlet 2.5+ now

Show
Graeme Rocher added a comment - jars renamed and we only support servlet 2.5+ now
Hide
Jean-Noël Rivasseau added a comment -

With Grails 1.2 and servlet 2.5 version, jstl.jar is NOT shipped into the created war. At least not by default. I managed to ship it with:

runtime("javax.servlet:jstl:1.1.2")

But it should really be shipped by default.

Show
Jean-Noël Rivasseau added a comment - With Grails 1.2 and servlet 2.5 version, jstl.jar is NOT shipped into the created war. At least not by default. I managed to ship it with: runtime("javax.servlet:jstl:1.1.2") But it should really be shipped by default.
Hide
Jean-Noël Rivasseau added a comment -

Please reshedule to 1.2.1.

Show
Jean-Noël Rivasseau added a comment - Please reshedule to 1.2.1.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: