aturetsky
asked on
java.lang.NoClassDefFoundError: javax/servlet/jsp/el/VariableResolve
I am getting a following error only when I use a c:set in my jsp. All the other c tags work no problem.
java.lang.NoClassDefFoundE rror: javax/servlet/jsp/el/Varia bleResolve r
at java.lang.Class.getDeclare dMethods0( Native Method)
at java.lang.Class.privateGet DeclaredMe thods(Clas s.java:168 1)
at java.lang.Class.getDeclare dMethods(C lass.java: 1144)
at java.beans.Introspector$1. run(Intros pector.jav a:1126)
at java.security.AccessContro ller.doPri vileged(Na tive Method)
at java.beans.Introspector.ge tPublicDec laredMetho ds(Introsp ector.java :1124)
at java.beans.Introspector.ge tTargetMet hodInfo(In trospector .java:989)
at java.beans.Introspector.ge tBeanInfo( Introspect or.java:37 0)
at java.beans.Introspector.ge tBeanInfo( Introspect or.java:14 4)
at java.beans.Introspector.ge tBeanInfo( Introspect or.java:20 5)
at java.beans.Introspector.<i nit>(Intro spector.ja va:351)
at java.beans.Introspector.ge tBeanInfo( Introspect or.java:14 4)
at org.apache.jasper.compiler .TagCache. setTagHand lerClass(T agCache.ja va:116)
at org.apache.jasper.compiler .TagBeginG enerator.i nit(TagBeg inGenerato r.java:150 )
at org.apache.jasper.compiler .JspParseE ventListen er$Generat orWrapper. init(JspPa rseEventLi stener.jav a:866)
at org.apache.jasper.compiler .JspParseE ventListen er.addGene rator(JspP arseEventL istener.ja va:153)
at org.apache.jasper.compiler .JspParseE ventListen er.handleT agBegin(Js pParseEven tListener. java:1076)
at org.apache.jasper.compiler .Delegatin gListener. handleTagB egin(Deleg atingListe ner.java:2 21)
at org.apache.jasper.compiler .Delegatin gListener. handleTagB egin(Deleg atingListe ner.java:2 16)
at org.apache.jasper.compiler .Parser$Ta g.accept(P arser.java :852)
at org.apache.jasper.compiler .Parser.pa rse(Parser .java:1157 )
at org.apache.jasper.compiler .Parser.pa rse(Parser .java:1115 )
My c library is declared like this: <%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
and, just in case here's the first few lines of that c.tld file, so you know which one it is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-ve rsion>
<jsp-version>1.2</jsp-vers ion>
<short-name>c</short-name>
<uri>http://java.sun.com/jstl/core</uri>
<display-name>JSTL core</display-name>
<description>JSTL 1.0 core library</description>
java.lang.NoClassDefFoundE
at java.lang.Class.getDeclare
at java.lang.Class.privateGet
at java.lang.Class.getDeclare
at java.beans.Introspector$1.
at java.security.AccessContro
at java.beans.Introspector.ge
at java.beans.Introspector.ge
at java.beans.Introspector.ge
at java.beans.Introspector.ge
at java.beans.Introspector.ge
at java.beans.Introspector.<i
at java.beans.Introspector.ge
at org.apache.jasper.compiler
at org.apache.jasper.compiler
at org.apache.jasper.compiler
at org.apache.jasper.compiler
at org.apache.jasper.compiler
at org.apache.jasper.compiler
at org.apache.jasper.compiler
at org.apache.jasper.compiler
at org.apache.jasper.compiler
at org.apache.jasper.compiler
My c library is declared like this: <%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
and, just in case here's the first few lines of that c.tld file, so you know which one it is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
<tlib-version>1.0</tlib-ve
<jsp-version>1.2</jsp-vers
<short-name>c</short-name>
<uri>http://java.sun.com/jstl/core</uri>
<display-name>JSTL core</display-name>
<description>JSTL 1.0 core library</description>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ha, don't worry dude, we've all done it, me especially :-P
ASKER