当前位置: 代码迷 >> J2EE >> java.lang.NoClassDefFoundError: org/apache/log4j/Level 错误
  详细解决方案

java.lang.NoClassDefFoundError: org/apache/log4j/Level 错误

热度:842   发布时间:2016-04-22 01:18:31.0
java.lang.NoClassDefFoundError: org/apache/log4j/Level 异常
java.lang.NoClassDefFoundError: org/apache/log4j/Level
at com.handsome.ip.util.Util.getIpByteArrayFromString(Util.java:28)
at com.handsome.ip.IPSeeker.getArea(IPSeeker.java:250)
at com.handsome.ip.IPSeeker.getIPLocation(IPSeeker.java:126)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:431)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.iprecare.util.EncodingFilter.doFilter(EncodingFilter.java:36)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
谁见过啊。在以前的电脑上没的出现 。在win7下出现了这个问题。是版本的问题吗?
是这个包 handsome-ipaddress-bin的问题吗?

------解决方案--------------------
java.lang.NoClassDefFoundError: org/apache/log4j/Level
log4j的包没导入。
------解决方案--------------------
* log4j-1.2.15.jar 这个包 或者更高版本的...
------解决方案--------------------
错误提示是要org/apache/log4j/Level这个包
你导的这个handsome-ipaddress-bin 里面有这个路径的包吗
而且他提示的是这个Level类找不到 
你虽然有log4j的包 但是由于版本问题 里面并没有Level类 你直接到你的jar包里找看有没有

------解决方案--------------------
重新导入1.2以上的jar包 重新部署 安逸
  相关解决方案