JBoss服务器启动问题

时间:2012-11-24 07:58:07

标签: java eclipse jboss

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

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

我不知道如何为我新下载的Eclipse Juno配置它。

我做的是:

1)在我的C:\ Program files

中复制提取的zip内容

2)在Eclipse IDE中,添加=> server => 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 ...当我试图深入研究不同的链接时,我真的很困惑:(

此致

2 个答案:

答案 0 :(得分:2)

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

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

建议:

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

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

答案 1 :(得分:0)

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