I downloaded JBoss 7.0.2 Final (zip format) from the below link:
http://www.jboss.org/jbossas/downloads/
I am not sure how to configure it for my newly downloaded Eclipse Juno.
What I did was:
1) Copied the extracted zip contents in my C:\\Program files
2) In Eclipse IDE, add=>server=>JBoss AS 7.0=> finish.
Then I tried starting the server and got this exception:
EDIT
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)
Please let me know how to configure JBoss in Eclipse IDE in simple steps...am really confused when tried to dig into different links :(
Regards,
c:\\Program Files\\
is one of the protected folders on win7
So, it gives a warning when you try to create any folder/file there(even if you are admin), and when some program, in your case jboss,on top of eclipse tries to modify these areas, access is denied
suggestion:
Either move your jboss root to c:\\ or better to some other drive
close eclipse, right click eclipse.exe and select run as administrator.
该问题可能与“C:\\Program Files\\”路径中的空间有关,请尝试在根文件夹中安装 JBoss 并因此更改 Eclipse 中的服务器配置。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.