[问题] JBOSS启动时的错误

楼主: lueichun (no anonymous)   2019-08-23 14:50:39
我在本机解压缩JBOSS到C槽:
https://i.imgur.com/tgECyKI.png
https://i.imgur.com/Cl1Spwi.png
然后设定环境变量:
https://i.imgur.com/zflo5Ga.png
https://i.imgur.com/w4Mk4Ux.png
然后在CMD启动JBOSS,执行java -jar run.jar
却跳出一堆ClassNotFoundException:
Caused by: java.lang.ClassNotFoundException:
org.jboss.ejb3.resolvers.DefaultMessageDestinationReferenceResolver
2019-08-22 14:37:16,978 ERROR
java.lang.NoClassDefFoundError:
org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentGroup
Caused by: java.lang.ClassNotFoundException:
org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentGroup
2019-08-22 14:37:16,981 ERROR
java.lang.NoClassDefFoundError:
org/jboss/resource/metadata/RARDeploymentMetaData
Caused by: java.lang.ClassNotFoundException:
org.jboss.resource.metadata.RARDeploymentMetaData
... 63 more
2019-08-22 14:37:16,983 ERROR
java.lang.NoClassDefFoundError:
org/jboss/resource/metadata/RARDeploymentMetaData
Caused by: java.lang.ClassNotFoundException:
org.jboss.resource.metadata.RARDeploymentMetaData
... 63 more
2019-08-22 14:37:16,985 ERROR
java.lang.NoClassDefFoundError:
org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentGroup
Caused by: java.lang.ClassNotFoundException:
org.jboss.resource.metadata.mcf.ManagedConnectionFactoryDeploymentGroup
作者: cancelpc (阿吉)   2019-08-23 19:57:00
有时候路径名称有空白、中文是地雷JAVA_HOME 含有空白、中文 问题很多不是每个 bat,cmd,sh 中的写法都能正确处理我都习惯将 JAVA 安装在如 c:\JAVA\JDK1.8.0 等路径下(多版本亦同)路径忽略小版本,避免更新问题
作者: jej (晃奶大馬桶)   2019-08-24 07:42:00
单纯看执行jar却没有要用的lib 铁定是你的指令错误建议上jboss看一下guild line吧例如说是不是执行run.bat之类的还有 你的第二张图有run.sh 可能你下错版本或是不该在windows执行
作者: kohmiho (kohmiho)   2019-08-26 11:51:00
所以你原来下的是linux版

Links booklink

Contact Us: admin [ a t ] ucptt.com