我自學RESTEasy,使用Maven構建,並部署在jBoss中,稍後將其與Jenkins集成。Maven RESTEasy jboss .war部署失敗
目前我已經創建了一個非常簡單的RESTEasy webservice並使用maven構建它。我有一個.war
文件和爆炸戰爭(這是我相信的戰爭的「解壓縮」文件夾),1.0 snapshot folder
與WEB-INF
和META-INF
文件夾在我的netbeans項目目標文件夾中。
我已經在我的mac中安裝了jboss 7.x.x,併成功啓動並驗證了它在我的localhost:8080
上工作。我將我的.war文件複製到jboss7.x.x/standalone/deployments文件夾。
- 通過服務器 - sh jboss-7.x.x.Final/bin/standalone.sh
-Got some error such such。
- 停止jboss,將分解的war文件夾複製到獨立/部署文件夾中,然後再次運行服務器。
- 即將出錯。
- 我錯過了什麼?
-The錯誤日誌:
00:12:18,315 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart
00:12:18,316 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/HelloRESTEasy] startup failed due to previous errors
00:12:18,348 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.web.deployment.default-host./HelloRESTEasy: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./HelloRESTEasy: JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
00:12:18,566 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "HelloRESTEasy-1.0-SNAPSHOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./HelloRESTEasy" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./HelloRESTEasy: JBAS018040: Failed to start context"}}
00:12:18,589 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment HelloRESTEasy-1.0-SNAPSHOT.war in 21ms
00:12:18,591 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host./HelloRESTEasy: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./HelloRESTEasy: JBAS018040: Failed to start context
00:12:18,593 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./HelloRESTEasy" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./HelloRESTEasy: JBAS018040: Failed to start context"}}}}
^C00:16:14,240 INFO [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011942: Stopping OSGi Framework
當我訪問http://localhost:8080/HelloRESTEasy-1.0-SNAPSHOT/Hello/justin
我有一個404
。