首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableExcepti

2014-01-26 
tomcat5.027 ,调试包含javabean的jsp页面就报如下错误:type Exception reportmessagedescription The serve

tomcat5.027 ,调试包含javabean的jsp页面就报如下错误:   

    
  type Exception report
 
  message
 
  description The server encountered an internal error () that prevented it from fulfilling this request.
 
  exception
 
  javax.servlet.ServletException: org/apache/commons/lang/exception/NestableException
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
  root cause
 
  java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableException
  java.lang.ClassLoader.defineClass0(Native Method)
  java.lang.ClassLoader.defineClass(ClassLoader.java:537)
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
  org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  java.lang.Class.getDeclaredConstructors0(Native Method)
  java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
  java.lang.Class.getConstructor0(Class.java:1922)
  java.lang.Class.getConstructor(Class.java:1019)
  org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1220)
  org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
  org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
  org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
  org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
  org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  org.apache.jasper.compiler.Generator.generate(Generator.java:3269)
  org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 
  note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
 
 
  --------------------------------------------------------------------------------
 
  不知道为什么,请各位指教!

------解决方法--------------------------------------------------------
java.lang.NoClassDefFoundError:
  org/apache/commons/lang/exception/NestableException
 
  org.apache.commons.lang.exception.NestableException类找不到
  你的classpath配置了吗   

------解决方法--------------------------------------------------------
你的JavaBean放对地方了吗?
 
------解决方法--------------------------------------------------------
有没有将commons-lang.jar文件放到WEB-INF/lib目录下?         

热点排行