Announcement Announcement Module
Collapse
No announcement yet.
Missing Class: javax/el/ValueExpression Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Missing Class: javax/el/ValueExpression

    Is there an incompatibility here? I have an app that runs okay under Tomcat 6.0 using Spring 2.5.5. But when I run the same application under Tomcat 5.5, still using Spring 2.5.5, I get this error:

    java.lang.NoClassDefFoundError: javax/el/ValueExpression
    java.lang.Class.getDeclaredMethods0(Native Method)
    java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    java.lang.Class.getDeclaredMethods(Unknown Source)
    java.beans.Introspector$1.run(Unknown Source)
    java.security.AccessController.doPrivileged(Native Method)
    ...


    My classpath contains jsp-api-2.1.6.0.2.jar, which contains the missing class.

    The Tomcat 5.5 version of the project is built with Dynamic Web Module facet 2.4, and the Tomcat 6.0 version is built with DWM facet 2.5. Both use Java 1.5.

    Thanks,
    Elliott

  • #2
    I've worked past this problem by adding jsp-api-2.1-6.0.2.jar to $CATALINE-HOME\common\lib.

    Comment


    • #3
      I don't think that this is a correct. What you've done is added (partial) support for J2EE 5.0, in particular JSP2.1.

      i've had it up to here with the varied versioning on the java products.

      that off my chest if you're wanting to stick with the J2EE4 stack, you'll want the following dependencies:

      servlet 2.4
      jsp 2.0
      jstl 1.1.2

      the more correct solution is to:
      either use tomcat6 (or other j2ee5 compliant container)
      stick with j2ee 4 stack.

      i wouldn't take my chances in a production environment mixing and matching versions.


      in short, my problem solved by sticking with j2ee4 stack.


      <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.4</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jsp-api</artifactId>
      <version>2.0</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>1.1.2</version>
      </dependency>
      <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>1.1.2</version>
      </dependency>

      Comment


      • #4
        I had the same problem when I bundled servlet-api as part of the application. If you're using Tomcat (in my case it was 5.5), this should be there already in $CATALINA_HOME/common/lib

        Comment

        Working...
        X