JBoss-4.2.3 GA 部署的时候注意jdk版本

在尝试启动JBoss-4.2.3 GA时,如果使用JDK 1.5,会出现错误。错误原因是JBoss-4.2.3 GA有两个版本,分别对应JDK6和JDK5,使用了错误版本的JBoss导致。解决方案包括切换到JDK6或下载与JDK5兼容的JBoss-4.2.3 GA版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Error starting JBoss-4.2.3 GA with JDK 1.5

Problem:

 

When using JBoss-4.2.3 GA with JDK 1.5, you see errors such as this, during the server startup:


2008-10-12 21:24:13,656 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
java.lang.NoClassDefFoundError: javax/annotation/Resource

2008-10-12 21:24:13,672 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method init
javax.management.RuntimeErrorException: Error invoking method addChild

Caused by: javax.management.RuntimeErrorException: Error invoking method addChild

 

Reason:

 

There are 2 versions of JBoss-4.2.3 GA. One for JDK6 and one for JDK5. You probably downloaded the JDK6 version which cannot be used with a JDK5.

 

Solution:

 

You have two options - either to use JDK6 or to download the JDK5 version of JBoss-4.2.3 GA

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值