我从以下链接下载了 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……在尝试挖掘不同的链接时我真的很困惑 :(
问候,