12 Replies Latest reply on Mar 13, 2008 3:02 PM by Alessandro Di Sipio

    NoClassDefFoundError: javax/servlet/jsp/JspContext on weblog

    Alessandro Di Sipio Newbie

      Hi,
      I deployed a richfaces application on weblogic 8.1sp4 (running on HP-UX)
      and when I request every page (jsf) which contanins
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

      I got this error:

      java.lang.NoClassDefFoundError: javax/servlet/jsp/JspContext
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
      at java.lang.Class.getDeclaredMethods(Class.java:1139)
      at java.beans.Introspector$1.run(Introspector.java:1127)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1125)
      at java.beans.Introspector.getTargetMethodInfo(Introspector.java:990)
      at java.beans.Introspector.getBeanInfo(Introspector.java:371)
      at java.beans.Introspector.getBeanInfo(Introspector.java:208)
      at java.beans.Introspector.(Introspector.java:352)
      at java.beans.Introspector.getBeanInfo(Introspector.java:208)
      at java.beans.Introspector.getBeanInfo(Introspector.java:194)
      at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1331)
      at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1269)
      at weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:292)
      at weblogic.servlet.jsp.TagLibHelper.loadTagLib(TagLibHelper.java:314)
      at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
      at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5053)
      at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4891)
      at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4737)
      at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2147)
      at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1933)
      at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1806)
      at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:963)
      at weblogic.servlet.jsp.JspParser.doit(JspParser.java:106)
      at weblogic.servlet.jsp.JspParser.parse(JspParser.java:234)
      at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125)
      at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
      at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:388)
      at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238)
      at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188)
      at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
      at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:328)
      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      ...

      I think I selected right version of Sun JSF (1.1) and right version of jakarta. I don't understand why the compiler search for JspContext which is a jsp 2.0 Class.
      Can anyone help me?
      Thanks in advance...