Hello,

When I add a simple <c:set var="foo" value="bar"/> line to my jsp I get the following error:

javax.servlet.ServletException: javax/el/ELException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause

java.lang.NoClassDefFoundError: javax/el/ELException
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)
java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)
java.beans.Introspector.getTargetMethodInfo(Unknown Source)
java.beans.Introspector.getBeanInfo(Unknown Source)
java.beans.Introspector.getBeanInfo(Unknown Source)
java.beans.Introspector.getBeanInfo(Unknown Source)
java.beans.Introspector.<init>(Unknown Source)
java.beans.Introspector.getBeanInfo(Unknown Source)
org.apache.jasper.compiler.Generator$TagHandlerInfo.<init>(Generator.java:3734)
org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(Generator.java:2146)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1614)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2240)
org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:598)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
org.apache.jasper.compiler.Generator.generate(Generator.java:3326)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:220)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

I'm developing in Eclipse using Tomcat 5.5.28. I've got the latest JSTL jars from GlassFish. Looking through these jars and all the rest of the jars in my my project I don't see the offending class (or even a 'javax/el' package). Am I missing a jar somewhere?

Any help appreciated.

Regards,

Bill

Actually, I take back part of what I said. Looking more closely at the jars in my project there is a jsp-api.jar that contains the class:

javax.servlet.jsp.el.ELException

It appears that this jar came from my Tomcat 5.5.28 installation from the 'common/lib' directory and was copied into my project when I created my Eclipse project as a Tomcat project (using the sysdeo Tomcat plugin).

So it would appear that something is looking for ELException in the wrong package? Any ideas what/why/how to fix it?

thanks in advance,

Bill

The problem seems to be that I was using JSTL jars that I downloaded from:

https://jstl.dev.java.net/download.html

These appear to be version 1.2. For whatever reason, they do not appear to be compatible w/ the jsp-api.jar that comes with Tomcat 5.5.28.

When I went back to version 1.1.2 from:

http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi

Things started working.

regards,

Bill

Bill,

Thanks so much for posting your solution - saved me tons of time as I was having the exact same issue.

Heather

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.