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

标签: Struts2 Spring Hibernate
3800人阅读 评论(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目录下,重新启动服务

查看评论

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

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

java.lang.ClassNotFoundException: org.objectweb.asm.util.TraceClassVisitor

在从jboss升级到tomcat的时候,出现了这个错误。 Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.util.Tr...
  • jianghuihong2012
  • jianghuihong2012
  • 2016-01-14 17:07:18
  • 910

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

SEVERE: Exception sending context initialized event to listener instance of class org.springframewor...
  • rchm8519
  • rchm8519
  • 2014-06-12 19:31:25
  • 7735

Exception starting filter struts2 java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

struts版本 2.3.4.1 jdk 1.6 tomcat 7.0 按教程,使用Convention插件进行配置 教程中说只要加入struts2-convention-plugin-2.3.4...
  • blueling51
  • blueling51
  • 2012-08-13 23:11:29
  • 11530

JAVA异常之spring 4.2.0兼容asm报.ClassVisitor as super clas

[localhost-startStop-1] ERROR [org.springframework.web.servlet.DispatcherServlet] - Context initiali...
  • mcbeath
  • mcbeath
  • 2015-08-08 13:51:49
  • 5335

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

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

spring asm JAR冲突

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Fai...
  • xiazou
  • xiazou
  • 2014-06-10 14:42:59
  • 9439

rmijdbc+access实现远程访问access数据库

前言access数据库存在远程访问的限制,无法直接通过url方式去加载,需要借助第三方驱动rmijdbc来完成。 在数据库所在机上: 在windows中配置数据源,数据源的配置为系统dsn,并给数据源...
  • mlc0202
  • mlc0202
  • 2015-04-28 13:23:53
  • 1934

对RmiJdbc的二次开发

对RmiJdbc的二次开发 接到一个任务,需要对项目中用到的JDBC进行改造,需求如下: 不要将实际数据库的连接方式(包括url,user,password)暴露给客户端 记录每个执行的sql内...
  • hy309
  • hy309
  • 2015-11-28 14:49:01
  • 584

java常见的ClassNotFoundException

1 - java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory    添加包common-logging.ja...
  • niqinwen
  • niqinwen
  • 2012-05-23 15:24:42
  • 3402
    个人资料
    专栏达人 持之以恒
    等级:
    访问量: 603万+
    积分: 7万+
    排名: 25
    新浪博客
    博客专栏
    FusionCharts

    文章:14篇

    阅读:72240
    Flex

    文章:13篇

    阅读:29777
    dojo

    文章:10篇

    阅读:31029
    Linux

    文章:47篇

    阅读:68938
    最新评论