2

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

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

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

我所做的是:

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

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……在尝试挖掘不同的链接时我真的很困惑 :(

问候,

4

2 回答 2

2

c:\Program Files\是win7上受保护的文件夹之一

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

建议:

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

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

于 2012-11-24T14:23:12.140 回答
0

该问题可能与 'C:\Program Files \' 路径中的空间有关,尝试将 JBoss 安装在根文件夹中,然后更改 Eclipse 中的服务器配置。

于 2012-11-24T13:38:54.267 回答