Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type

问题描述

将项目挂载到 Myeclipse 的 tomcat 上,启动 tomcat ,报错“Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type”

问题原因

缺少 jar 包

解决方案

第一种方案:

1、将需要的第三方包拷贝进libs 文件夹。

2、将引用的第三方包,添加进工作的build path -->工程上右键 -->Properties -->Java Build Path -->Libraries -->add jars -->添加进对应jar包

3、(关键的一步)将lib设为源文件夹。---libs文件夹右键-->build path -->Use as Source Folder

此时应该就可以编译运行了,可以看下对应包大小是不是增大不少(预计是增加jar包2倍大小);

第二种方案:

鼠标右键项目,然后属性(Properties),然后java build path 然后order and export 使android private librars处于勾选状态,让你的jar包也处于勾选状态

原文地址:https://www.cnblogs.com/7q4w1e/p/10012916.html

时间: 2024-10-25 04:17:50

Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type的相关文章

Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V

启动web应用时出现以下异常: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(A

Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/jms/JMSContext

参考链接 : https://blog.csdn.net/angus_Lucky/article/details/82811946?utm_source=blogxgwz7 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in class path resource [spring/applicationContex

Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeExcep

body { font-family: "Microsoft YaHei UI","Microsoft YaHei",SimSun,"Segoe UI",Tahoma,Helvetica,Sans-Serif,"Microsoft YaHei", Georgia,Helvetica,Arial,sans-serif,宋体, PMingLiU,serif; font-size: 10.5pt; line-height: 1.5;

spring Boot启动报错Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.getAnnotationAttributes

spring boot 启动报错如下 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure

spring quartz:Instantiation of bean failed; nested exception is java.lang.IncompatibleClassChangeErr

spring 调度类初始化失败,分析是jar包冲突,日志如下: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler' defined in file [D:\InstallApplication\apache-tomcat-7.0.23\wtpwebapps\campaign\WEB-INF\classes\spring\applicationConte

使用CGlib出现java.lang.NoClassDefFoundError: org/objectweb/asm/Type异常【补充】

援引:使用CGlib出现java.lang.NoClassDefFoundError: org/objectweb/asm/Type异常 援引:class net.sf.cglib.core.DebuggingClassWriter has interface org.objectweb.asm.ClassVisitor as super class 源环境: IDE:IntelliJ IDEA 项目目的:测试动态代理 -- CGLIB 项目属性:Java Application 项目结构: 被

Hibernate异常:java.lang.NoClassDefFoundError: org/objectweb/asm/Type

解决方法:将Hibernate lib包下的asm.jar添加到项目的library中. 解决方法:将Hibernate lib包下的cglib-2.1.3.jar添加到项目的library中.  Hibernate异常:java.lang.NoClassDefFoundError: org/objectweb/asm/Type

项目启动时报错Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError

https://www.cnblogs.com/liuyp-ken/p/7911536.html 解决过程: 1.检查配置,反反复复看了很多遍,确认没有问题. 2. 网上找了很多资料,类似的问题很多,看过答案以后依旧不得其要领.只好继续看报错代码,直到看到这一句: 1 2 3 4 Caused by: java.lang.NullPointerException     at ***.***.SearchIPAttributionService.load(SearchIPAttributionS

HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

今天在用idea搭建spring mvc时候报了这个错误,缺少jstl的依赖包.由于是使用的spring-core的依赖,而spring-core里面是有jstl的.这就郁闷了,最后是在自己的pom.xml里面又引入了jstl解决的 <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version&g