关闭

Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor

标签: Struts2SpringHibernate
3424人阅读 评论(0) 收藏 举报
分类:

1、错误描述

信息: Setting autowire strategy to name
2014-7-13 1:37:43 org.apache.struts2.spring.StrutsSpringObjectFactory info
信息: ... initialized Struts-Spring integration successfully
2014-7-13 1:37:44 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390)
	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347)
	at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:268)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 26 more
2014-7-13 1:37:44 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2014-7-13 1:37:44 org.apache.catalina.core.StandardContext startInternal
严重: Context [/FirstSSH] startup failed due to previous errors
2014-7-13 1:37:44 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2014-7-13 1:37:44 org.springframework.web.context.support.XmlWebApplicationContext doClose
信息: Closing Root WebApplicationContext: startup date [Sun Jul 13 01:37:37 CST 2014]; root of context hierarchy
2014-7-13 1:37:44 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/FirstSSH] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2014-7-13 1:37:44 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/FirstSSH] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
2014-7-13 1:37:44 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/FirstSSH] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@c21a68]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2014-7-13 1:37:44 org.apache.catalina.startup.HostConfig deployDirectory

2、错误原因

      通过这句“Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor”可知,是缺少有关asm jar包


3、解决办法

     将“asm-3.3.1.jar”复制到lib目录下,重新启动服务

2
0
查看评论
发表评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场

java常见的ClassNotFoundException

1 - java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory    添加包common-logging.ja...
  • niqinwen
  • niqinwen
  • 2012-05-23 15:24
  • 3252

Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Type

我的myeclipse 一建立ssh项目   然后开始做一些
  • aibianchendewo
  • aibianchendewo
  • 2014-04-15 17:14
  • 980

蛋疼的Caused by: java.lang.ClassNotFoundException

开发中最长遇到的错误提示,遇到这种错误提示,一般可能有: 1.忘记在AndroidManifest中配置,这个很好解决,在里面配置一下就行了。 2.更常见的问题是在引入外包时出现这个问题,怎么解决...
  • yayun0516
  • yayun0516
  • 2015-05-20 17:51
  • 1798

Caused by: java.lang.ClassNotFoundException[android的终极解决错误]

08-13 18:29:22.924: E/AndroidRuntime(1875): Caused by: java.lang.ClassNotFoundException:XXXXX    in ...
  • changemyself
  • changemyself
  • 2012-08-13 18:56
  • 103319

启动项目出现:java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor

启动项目出现:java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor [问题点数:40分,结帖人zcjavaxue1]...
  • evilcry2012
  • evilcry2012
  • 2015-10-18 09:44
  • 1887

ssh整合异常:java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor

错误:java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor的解决方法在使用Spring的AOP编程时,会用到这几个lib: as...
  • sdyy321
  • sdyy321
  • 2010-10-29 17:47
  • 4439

Caused by: java.lang.ClassNotFoundException: FilterConfig错误的解决办法

今天项目遇到个问题,之前解决过,但是时间长了忘了怎么解决的,今天吃了亏,浪费了不少的时间。网上也没找到这样的错误。 痛定思痛,今天我要把这个问题记录一下,并记下解决办法。 tomcat报的错误如下: ...
  • yipanbo
  • yipanbo
  • 2015-07-23 10:33
  • 11620

Android Studio Caused by: java.lang.ClassNotFoundException

遇到情况: 项目一直运行的很正常,最近在做友盟社会化分享的时候需要导入jar包,导入相关jar编译没问题一运行APP就报ClassNotFoundException,删除了jar包就一切正常了...
  • qy7941237
  • qy7941237
  • 2015-12-09 14:18
  • 2294

ssh整合中,hibernate3.6.0异常java.lang.NoClassDefFoundError: org/objectweb/asm/Type

1,新建工程,类型为Web Project,设置默认编码为UTF-8,并创建如下文件夹     1,Source Folder         1,src     ...
  • baoming_wang
  • baoming_wang
  • 2013-10-07 02:14
  • 851

java.lang.ClassNotFoundException: org.apache.catalina.core.JreMemoryLeakPreventionListener

2011-11-21 15:09:55 org.apache.tomcat.util.digester.Digester startElement 严重: Begin event threw exc...
  • chruan
  • chruan
  • 2011-11-21 15:11
  • 12087
    个人资料
    • 访问:5373599次
    • 积分:71123
    • 等级:
    • 排名:第30名
    • 原创:1921篇
    • 转载:76篇
    • 译文:3篇
    • 评论:1183条
    百度技术栏目
    网易博客
    新浪博客
    博客专栏
    Linux

    文章:47篇

    阅读:64260
    dojo

    文章:10篇

    阅读:30013
    Flex

    文章:13篇

    阅读:28758
    FusionCharts

    文章:14篇

    阅读:70701
    文章分类
    最新评论