0

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

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by heathersh
0

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

0

Bill,

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

Heather

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.