社区
Web 开发
帖子详情
java.lang.NoClassDefFoundError: javax/annotation/Resource
jsphandsome132
2008-10-26 03:25:59
Caused by: javax.management.RuntimeOperationsException: Exception invoking method init
Caused by:java.lang.NoClassDefFoundError: javax/annotation/Resource,
高手帮忙一下啊,没辙了。。。。
...全文
1248
4
打赏
收藏
java.lang.NoClassDefFoundError: javax/annotation/Resource
Caused by: javax.management.RuntimeOperationsException: Exception invoking method init Caused by:java.lang.NoClassDefFoundError: javax/annotation/Resource, 高手帮忙一下啊,没辙了。。。。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
抬头望远,低头沉思
2008-10-26
打赏
举报
回复
你在类定义的开头,有没有import javax.annotation.Resource;
抬头望远,低头沉思
2008-10-26
打赏
举报
回复
NoClassDefFound:
当 Java 虚拟机或 ClassLoader 实例试图在类的定义中加载(作为通常方法调用的一部分或者作为使用new 表达式创建的新实例的一部分),但无法找到该类的定义时,抛出此异常。
我的理解:
当在一个类中,用到了另外一个类,这里的用到是指:在某个方法中用到或者是通过new 表达式创建新实例, 如果无法找到该类的定义,则抛出些异常。
a1405
2008-10-26
打赏
举报
回复
那个类没找到而已
Leonhe2022
2008-10-26
打赏
举报
回复
找不到
javax.annotation.Resource
类的定义,你在做EJB开发吗?
看看你在哪里用了 @
Resource
注释,导入的包是不是有问题。
Eclipse启动报错:org.eclipse.e4.core.di.InjectionException:
java
.
lan
g.
NoClassDefFoundError
:
java
x/annotat
启动 Eclipse 的时候,出现了下面这个错误 org.eclipse.e4.core.di.InjectionException:
java
.
lan
g.
NoClassDefFoundError
:
java
x/
annotation
/PostConstruct 看了一下日志,错误信息大致是 !ENTRY org.eclipse.core.
resource
s 2 10035 2020-01-01 ...
Caused by:
java
.
lan
g.
NoClassDefFoundError
:
java
x/persistence/SynchronizationType
重构项目,出现问题求大佬解决,主要找不到
java
.
lan
g.
NoClassDefFoundError
:
java
x/persistence/SynchronizationType的问题
java
.
lan
g.
NoClassDefFoundError
: org/springframework/core/KotlinDetector
报错信息: Exception in thread "main"
java
.
lan
g.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer : org.springframework.boot.context.Config...
nested exception is
java
.
lan
g.
NoClassDefFoundError
: org/springframework/boot/bind/RelaxedDataBinder
Failed to instantiate [
java
x.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is
java
.
lan
g.
NoClassDefFoundError
: org/springframework/boot/bind/RelaxedDataBinder
java
.
lan
g.
NoClassDefFoundError
: com/mchange/v2/c3p0/AbstractComboPooledDataSourc
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [
java
x.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is
java
.
lan
g.
NoClassDefFoundError
: com/mchange/v2/c3p0/AbstractComboPooledDataSourc
Web 开发
81,090
社区成员
341,731
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章