gpt4 book ai didi

java - JBoss 服务器启动问题

转载 作者:行者123 更新时间:2023-11-30 09:29:45 25 4
gpt4 key购买 nike

我从以下链接下载了 JBoss 7.0.2 Final(zip 格式):

http://www.jboss.org/jbossas/downloads/

我不确定如何为我新下载的 Eclipse Juno 配置它。

我所做的是:

1) 将提取的 zip 内容复制到我的 C:\Program files

2) 在 Eclipse IDE 中,添加=>服务器=>JBoss AS 7.0=>完成。

然后我尝试启动服务器并得到这个异常:

编辑

13:57:53,217 INFO  [org.jboss.modules] JBoss Modules version 1.0.2.GA
13:57:54,106 INFO [org.jboss.msc] JBoss MSC version 1.0.1.GA
13:57:54,185 INFO [org.jboss.as] JBoss AS 7.0.2.Final "Arc" starting
13:57:54,201 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.as: org.jboss.msc.service.StartException in service jboss.as: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_31]
at java.lang.Thread.run(Unknown Source) [:1.6.0_31]
Caused by: java.lang.IllegalStateException: Failed to create a directory at C:\Program Files\jboss-as-web-7.0.2.Final\standalone\data\content
at org.jboss.as.server.deployment.repository.impl.ContentRepositoryImpl.<init>(ContentRepositoryImpl.java:77)
at org.jboss.as.server.deployment.repository.impl.ContentRepositoryImpl.addService(ContentRepositoryImpl.java:60)
at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:118) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
... 3 more

13:57:54,201 ERROR [stderr] java.util.concurrent.ExecutionException: Operation failed

13:57:54,201 ERROR [stderr] at org.jboss.threads.AsyncFutureTask.operationFailed(AsyncFutureTask.java:74)

13:57:54,201 ERROR [stderr] at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:268)

13:57:54,201 ERROR [stderr] at org.jboss.as.server.Main.main(Main.java:106)

13:57:54,201 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

13:57:54,201 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

13:57:54,217 ERROR [stderr] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

13:57:54,217 ERROR [stderr] at java.lang.reflect.Method.invoke(Unknown Source)

13:57:54,217 ERROR [stderr] at org.jboss.modules.Module.run(Module.java:272)

13:57:54,217 ERROR [stderr] at org.jboss.modules.Main.main(Main.java:313)

13:57:54,217 ERROR [stderr] Caused by: org.jboss.msc.service.StartException in service jboss.as: Failed to start service

13:57:54,217 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780)

13:57:54,217 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

请让我知道如何通过简单的步骤在 Eclipse IDE 中配置 JBoss...在尝试深入研究不同的链接时我真的很困惑:(

问候,

最佳答案

c:\Program Files\是win7上 protected 文件夹之一

因此,当您尝试在那里创建任何文件夹/文件(即使您是管理员)时,它会发出警告,并且当某些程序(在您的情况下是 jboss)在 eclipse 之上试图修改这些区域时,访问被拒绝

建议:

  1. 将您的 jboss 根移动到 c:\或更好地移动到其他驱动器

  2. 关闭 eclipse,右键单击 eclipse.exe 并选择以管理员身份运行。

关于java - JBoss 服务器启动问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13539425/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com