4

我最近从 Netbeans 和 GlassFish 迁移到 Eclipse 和 JBoss。我已经安装了 eclipse-jboss 工具,并且服务器运行时设置正确(至少 afaik)。

我遇到的问题是,每当我尝试从 Eclipse 启动 JBoss 时,都会得到以下信息:

20:37:23,853 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
20:37:24,136 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
20:37:24,194 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
20:37:24,306 ERROR [org.jboss.msc.service.fail] MSC000001: Failed to start service jboss.deployment-mount-provider: org.jboss.msc.service.StartException in service jboss.deployment-mount-provider: JBAS015843: Failed to create temp file provider
    at org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.start(DeploymentMountProvider.java:111) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09-icedtea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09-icedtea]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]

我已经用谷歌搜索了这个并尝试了我能找到的所有解决方法,包括(!!!)给予 jboss-as.service 根权限(编辑:这是毫无意义的,因为在这种情况下 Eclipse 甚至没有触及 systemd)。没有什么帮助。有人可以帮忙吗?这将不胜感激。

编辑:这很有趣:

服务器日志:

20:35:39,344 ERROR [org.jboss.remoting.remote.connection] (Remoting "chrisdesktop:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1195725856
20:35:39,389 ERROR [org.jboss.remoting.remote.connection] (Remoting "chrisdesktop:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1195725856
20:35:42,379 ERROR [org.jboss.remoting.remote.connection] (Remoting "chrisdesktop:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1195725856
20:35:42,907 ERROR [org.jboss.remoting.remote.connection] (Remoting "chrisdesktop:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1195725856
20:35:43,081 ERROR [org.jboss.remoting.remote.connection] (Remoting "chrisdesktop:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1195725856
20:35:43,242 ERROR [org.jboss.remoting.remote.connection] (Remoting "chrisdesktop:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1195725856
20:35:44,851 ERROR [org.jboss.remoting.remote.connection] (Remoting "chrisdesktop:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 1195725856

[截图信息日志]

20:55:29,931 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) MSC000001: Failed to start service jboss.osgi.as.framework.bootstrap: org.jboss.msc.service.StartException in service jboss.osgi.as.framework.bootstrap: JBAS011965: Failed to create Framework services
    at org.jboss.as.osgi.service.FrameworkBootstrapService.start(FrameworkBootstrapService.java:161)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09-icedtea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09-icedtea]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: java.lang.NoClassDefFoundError: org/osgi/util/xml/XMLParserActivator
    at org.jboss.as.osgi.service.FrameworkBootstrapService.start(FrameworkBootstrapService.java:139)
    ... 5 more
Caused by: java.lang.ClassNotFoundException: org.osgi.util.xml.XMLParserActivator from [Module "org.jboss.as.osgi:main" from local module loader @7fae4426 (roots: /usr/share/jboss-as/modules)]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
    ... 6 more

20:55:29,932 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
20:55:29,949 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
20:55:30,027 FATAL [org.jboss.as.webservices] (MSC service thread 1-19) JBAS015577: Error while creating configuration service
20:55:30,028 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-19) MSC000001: Failed to start service jboss.ws.config: org.jboss.msc.service.StartException in service jboss.ws.config: java.lang.RuntimeException: org.jboss.modules.ModuleNotFoundException: Module org.jboss.ws.jaxws-client:main is not found in local module loader @7fae4426 (roots: /usr/share/jboss-as/modules)
    at org.jboss.as.webservices.service.ServerConfigService.start(ServerConfigService.java:72)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09-icedtea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09-icedtea]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: java.lang.RuntimeException: org.jboss.modules.ModuleNotFoundException: Module org.jboss.ws.jaxws-client:main is not found in local module loader @7fae4426 (roots: /usr/share/jboss-as/modules)
    at org.jboss.as.webservices.util.ModuleClassLoaderProvider.getServerIntegrationClassLoader(ModuleClassLoaderProvider.java:56)
    at org.jboss.ws.common.management.AbstractServerConfig.create(AbstractServerConfig.java:201)
    at org.jboss.as.webservices.service.ServerConfigService.start(ServerConfigService.java:69)
    ... 5 more
Caused by: org.jboss.modules.ModuleNotFoundException: Module org.jboss.ws.jaxws-client:main is not found in local module loader @7fae4426 (roots: /usr/share/jboss-as/modules)
    at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.Module.addPaths(Module.java:841) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.Module.link(Module.java:1196) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.Module.relinkIfNecessary(Module.java:1225) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.as.webservices.util.ModuleClassLoaderProvider.getServerIntegrationClassLoader(ModuleClassLoaderProvider.java:53)
    ... 7 more

20:55:30,065 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 48) JBAS014612: Operation ("add") failed - address: ([("subsystem" => "webservices")]): java.lang.RuntimeException: org.jboss.modules.ModuleNotFoundException: Module org.jboss.ws.jaxws-client:main is not found in local module loader @7fae4426 (roots: /usr/share/jboss-as/modules)
    at org.jboss.as.webservices.util.ModuleClassLoaderProvider.getServerIntegrationClassLoader(ModuleClassLoaderProvider.java:56)
    at org.jboss.as.webservices.deployers.deployment.DeploymentAspectsProvider.getSortedDeploymentAspects(DeploymentAspectsProvider.java:53)
    at org.jboss.as.webservices.dmr.WSDeploymentActivator.addDeploymentProcessors(WSDeploymentActivator.java:77)
    at org.jboss.as.webservices.dmr.WSDeploymentActivator.activate(WSDeploymentActivator.java:71)
    at org.jboss.as.webservices.dmr.WSSubsystemAdd$1.execute(WSSubsystemAdd.java:118)
    at org.jboss.as.server.AbstractDeploymentChainStep.execute(AbstractDeploymentChainStep.java:45)
    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:311) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09-icedtea]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09-icedtea]
    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
    at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads.jar:2.0.0.GA]
Caused by: org.jboss.modules.ModuleNotFoundException: Module org.jboss.ws.jaxws-client:main is not found in local module loader @7fae4426 (roots: /usr/share/jboss-as/modules)
    at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222) [jboss-modules.jar:1.1.1.GA]
    at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94) [snip]
4

7 回答 7

4

在mac上,我在(我想)将外部文件复制到wildfly目录之后使用了WildFly。正如伙计们所说,这是权限问题

chmod -R 777 [wildfly dir]

帮助。如果您处于开发周期,则不是那么准确,但快速的解决方案。

于 2014-05-21T11:40:23.387 回答
1

我看到错误 - JBAS015843:无法创建临时文件提供程序。

我猜您使用的是 Windows 7。Windows 7 要求我授予进程权限,以便从单独的对话框中在 Windows\Temp 目录中创建文件。您可能必须找到该对话框并授予权限。这与 Windows 服务没有任何关系,因为您是从 Eclipse 启动 jboss。

于 2012-11-01T23:10:10.447 回答
1

检查 $JBOSS_HOME/standalone 上设置的权限,尤其是 $JBOSS_HOME/standalone/log 目录

见鬼,它有什么作用chmod -R 777 $JBOSS_HOME/standalone?并不是说我建议除了调试之外...

因为给予 jboss-as.service root 权限并没有多大作用,因为 eclipse 不使用该服务来运行 AS7,而是手动运行它。

于 2012-11-02T00:53:10.093 回答
1

这是一个奇怪的空间问题。

df -h

上面的命令发出了文件挂载中有相当大的空间。尽管,

df -PhI

担心挂载上没有空间,表明 I-Node 空间不足。扩展更多空间是随后的解决方案。

于 2018-03-12T11:41:31.200 回答
0

在 Windows 7 环境中使用 Eclipse JUNO 时,我也遇到了同样的问题。我试图从 eclipse juno 运行 jboss AS 7.0 服务器,但我遇到了同样的错误。

然后我意识到这可能是因为我在“c:\program files”下安装了 jboss EAP 6.0 包。然后我卸载了我的 jboss EAP 6.0 并在“c:\”中重新安装它,并将 eclipse 的 jboss 服务器适配器指向新位置。这个解决方案对我有用!

我不知道为什么 Windows 7 将程序文件视为不同的目录。

于 2013-07-26T19:09:26.720 回答
0

您必须确保您的用户在 jboss-as 组中。

还要检查该组是否对 /usr/share/jboss-as/standalone 下的符号链接目录具有写权限

如果您之前启动了 JbossAS,可能会有一些文件归 root 用户所有。并且很可能您的用户无法写入这些文件。

于 2013-04-18T13:16:40.000 回答
0

错误JBAS015843: Failed to create temp file provider

是因为没有足够的内存空间。请检查您的 Jboss 的独立文件夹下的 tmp 文件夹。使用清除其内容

rm -rfv tmp/*

然后重新启动您的 Jboss 服务器。

于 2021-07-12T14:26:20.973 回答