I am currently learning the Java EE and wanted to follow a tutorial, who uses cargo tracker as an example.
I could import the maven project to the eclipse successfully and can build it with mvn clean install successfully.
At the end of the day, there is a war file in the target folder of the project but wildfly 10 could not start it.
In the readme of the project, I have read such a sentence and would like to issue it;
mvn -Pwildfly package cargo:run
however, in this case, maven gives the following error;
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.14:run (default-cli) on project cargo-tracker: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.14:run failed: Failed to create a GlassFish 4.x standalone configuration: GlassFish admin command with args (--interactive=false --user admin --passwordfile /home/laptop/Schreibtisch/cargo-tracker-ee-master/target/cargo/configurations/glassfish4x/password.properties create-domain --adminport 4848 --instanceport 8080 --domainproperties jms.port=7676:orb.listener.port=3700:orb.ssl.port=3820:http.ssl.port=8181:orb.mutualauth.port=3920:domain.jmxPort=8686:java.debugger.port=9009:osgi.shell.telnet.port=6666
--domaindir /home/laptop/Schreibtisch/cargo-tracker-ee-master/target/cargo/configurations/glassfish4x cargo-domain) failed: asadmin exited 1 -> [Help 1]
If you need more info, I can supply.
Edit
When I deploy the war file manually as K5 mentioned in this comment, I get the following error from wildfly;
19:18:36,042 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."cargo-tracker.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."cargo-tracker.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "cargo-tracker.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found
at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:669)
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.getDefaultResourceAdapterName(MessageDrivenComponentDescriptionFactory.java:274)
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processMessageBeans(MessageDrivenComponentDescriptionFactory.java:154)
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processAnnotations(MessageDrivenComponentDescriptionFactory.java:81)
at org.jboss.as.ejb3.deployment.processors.AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.processAnnotations(AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.java:57)
at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.deploy(AbstractDeploymentUnitProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
19:18:36,050 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "cargo-tracker.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"cargo-tracker.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"cargo-tracker.war\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"cargo-tracker.war\"
Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"cargo-tracker.war\".PARSE"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
19:18:36,080 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "cargo-tracker.war" (runtime-name : "cargo-tracker.war")
19:18:36,083 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."cargo-tracker.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."cargo-tracker.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "cargo-tracker.war"
On the download page of the wildfly, there are several download options. It is possible that you have downloaded a version, which does not have the needed service for your application. In order to find if the problem is because of your wildfly version, download the Java EE7 Full & Web Distribution and see if something will change.
add dependency :
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.12.1.1</version>
<scope>test</scope>
</dependency>
update maven project and built it and recreate the jar file and try to deploy.
Related
been struggling with this for a while, whenever I deploy my EAR project to wildfly by doing right click -> Run As -> Run on Server I get this error
20:22:35,100 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7)
WFLYSRV0028: Stopped deployment VetSpaEAR-0.0.1-SNAPSHOT.ear (runtime-name:
VetSpaEAR-0.0.1-SNAPSHOT.ear) in 0ms
20:22:35,102 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3)
WFLYSRV0027: Starting deployment of "VetSpaEAR-0.0.1-SNAPSHOT.ear" (runtime-
name: "VetSpaEAR-0.0.1-SNAPSHOT.ear")
20:22:35,108 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7)
MSC000001: Failed to start service jboss.deployment.unit."VetSpaEAR-0.0.1-
SNAPSHOT.ear".STRUCTURE: org.jboss.msc.service.StartException in service
jboss.deployment.unit."VetSpaEAR-0.0.1-SNAPSHOT.ear".STRUCTURE: WFLYSRV0153:
Failed to process phase STRUCTURE of deployment "VetSpaEAR-0.0.1-
SNAPSHOT.ear"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(
DeploymentUnitPh aseService.java:151)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(
ServiceControllerImpl.java:1714)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(
ServiceControllerImpl.java:1693)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(
ServiceControllerImpl.java:1540)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(
ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads.EnhancedQueueExecutor.safeRun(
EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(
EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(
EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException:
WFLYEE0031: Unable to process modules in application.xml for EAR
["/C:/wildfly-12.0.0.Final/standalone/deployments/VetSpaEAR-0.0.1-
SNAPSHOT.ear"], module file com.vetspa-VetSpaEJB-0.0.1-SNAPSHOT.jar not found
at
org.jboss.as.ee.structure.EarStructureProcessor.deploy(
EarStructureProcessor.java:187)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(
DeploymentUnitPhaseService.java:144)
... 8 more
20:22:35,109 ERROR [org.jboss.as.controller.management-operation]
(DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-
deployment") failed - address: ([]) - failure description: {"WFLYCTL0080:
Failed services" => {"jboss.deployment.unit.\"VetSpaEAR-0.0.1-
SNAPSHOT.ear\".STRUCTURE" => "WFLYSRV0153: Failed to process phase STRUCTURE
of deployment \"VetSpaEAR-0.0.1-SNAPSHOT.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException:
WFLYEE0031: Unable to process modules in application.xml for EAR
[\"/C:/wildfly-12.0.0.Final/standalone/deployments/VetSpaEAR-0.0.1-
SNAPSHOT.ear\"], module file com.vetspa-VetSpaEJB-0.0.1-SNAPSHOT.jar not
found"}}
20:22:35,140 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2)
WFLYSRV0016: Replaced deployment "VetSpaEAR-0.0.1-SNAPSHOT.ear" with
deployment "VetSpaEAR-0.0.1-SNAPSHOT.ear"
20:22:35,140 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2)
WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service
jboss.deployment.unit."VetSpaEAR-0.0.1-SNAPSHOT.ear".STRUCTURE: WFLYSRV0153:
Failed to process phase STRUCTURE of deployment "VetSpaEAR-0.0.1-
SNAPSHOT.ear"
I know the stacktrace doesn't help too much, this is my application.xml (auto generated by maven)
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/application_7.xsd" version="7">
<display-name>VetSpaEAR</display-name>
<module>
<ejb>com.vetspa-VetSpaEJB-0.0.1-SNAPSHOT.jar</ejb>
</module>
<module>
<web>
<web-uri>com.vetspa-VetSpaWS-0.0.1-SNAPSHOT.war</web-uri>
<context-root>/VetSpaWS</context-root>
</web>
</module>
<module>
<web>
<web-uri>com.vetspa-VetSpaRS-0.0.1-SNAPSHOT.war</web-uri>
<context-root>/VetSpaRS</context-root>
</web>
</module>
<library-directory>lib</library-directory>
And this is my project structure
Im no expert but as far as I can tell there is nothing wrong, I read somewhere that eclipse publishes the ear as an exploded artifact rather than the compressed version, this makes sense because if I deploy it manually (via cli or gui) it works like a charm, but while developing this is just not viable. I hope you can help guys thanks for your help
Wildfly 12.0.0
Java 8
Eclipse Oxygen
give this a try: right-click on the project folder -> properties -> Deployment Assembly and inspect / add the ejb jar manually
Hi I'm using JBOSS EAP 6.4 and JDK java version "1.7.0_79".The deployments are failing due to below error. I tried various solutions available on the web. Can anyone shed some light on this. Any help is much appreciated.
16:59:51,595 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015973: Starting subdeployment (runtime-name: "Project-WAR.war")
16:59:51,596 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015973: Starting subdeployment (runtime-name: "Project.jar")
16:59:52,145 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."Project-EAR.ear"."Project-0.0.1-SNAPSHOT.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Project-EAR.ear"."Project-0.0.1-SNAPSHOT.jar".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment "Project-0.0.1-SNAPSHOT.jar" of deployment "Project-EAR.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found
at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:625) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.getDefaultResourceAdapterName(MessageDrivenComponentDescriptionFactory.java:275)
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processMessageBeans(MessageDrivenComponentDescriptionFactory.java:155)
at org.jboss.as.ejb3.deployment.processors.MessageDrivenComponentDescriptionFactory.processAnnotations(MessageDrivenComponentDescriptionFactory.java:82)
at org.jboss.as.ejb3.deployment.processors.AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.processAnnotations(AnnotatedEJBComponentDescriptionDeploymentUnitProcessor.java:58)
at org.jboss.as.ejb3.deployment.processors.AbstractDeploymentUnitProcessor.deploy(AbstractDeploymentUnitProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
... 5 more
16:59:52,228 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "Project-EAR.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"Project-EAR.ear\".\"Project-0.0.1-SNAPSHOT.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"Project-EAR.ear\".\"Project-0.0.1-SNAPSHOT.jar\".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment \"Project-0.0.1-SNAPSHOT.jar\" of deployment \"Project-EAR.ear\"
are you using jms in your project? If so, the problem could be that you are not installing the messaging subsytem.. try starting your eap with standalone-full profile (which includes <subsystem xmlns="urn:jboss:domain:messaging:1.1">)
Ran into this issue on jboss-eap-6.1
"JBAS018733 : Failed to process phase PARSE..."
Cause-found duplicate JARs were in the ...WAR/WEB-INF/lib/1.2.X.jar
Solution:
removed older version of the two ..<APPNAME>.WAR/WEB-INF/lib/<APPNAME>1.2.X.jar
cleanout ../tmp/vfs
cleanout ../tmp/work/jboss.web/default-host/<APPNAME>Webservice
restart Jboss
The error:
2016-04-12 12:32:04,399 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 62) HHH000230: Schema export complete
2016-04-12 12:32:04,753 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./BanqueEEWeb.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./BanqueEEWeb.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener from [Module "deployment.BanqueEE.ear.BanqueEEWeb.war:main" from Service Module Loader]
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:870)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:242)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_66]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_66]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_66]
Caused by: java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener from [Module "deployment.BanqueEE.ear.BanqueEEWeb.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final]
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.addListener(UndertowDeploymentInfoService.java:1145)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:734)
... 6 more
2016-04-12 12:32:05,109 INFO [org.jboss.weld.Bootstrap] (weld-worker-4) WELD-000119: Not generating any bean definitions from org.apache.struts2.tiles.StrutsTilesListener because of underlying class loading error: Type org.apache.struts2.tiles.StrutsTilesListener from [Module "deployment.BanqueEE.ear.BanqueEEWeb.war:main" from Service Module Loader] not found. If this is unexpected, enable DEBUG logging to see the full error.
2016-04-12 12:32:07,323 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "BanqueEE.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./BanqueEEWeb.UndertowDeploymentInfoService" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./BanqueEEWeb.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener from [Module \"deployment.BanqueEE.ear.BanqueEEWeb.war:main\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener from [Module \"deployment.BanqueEE.ear.BanqueEEWeb.war:main\" from Service Module Loader]"}}
2016-04-12 12:32:07,408 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) JBAS018559: Deployed "BanqueEE.ear" (runtime-name : "BanqueEE.ear")
2016-04-12 12:32:07,410 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./BanqueEEWeb.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./BanqueEEWeb.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener from [Module "deployment.BanqueEE.ear.BanqueEEWeb.war:main" from Service Module Loader]
How to debug this error in Struts 2?
You have missed a library struts2-tiles-plugin-x.x.x.x.jar and probably their dependencies.
What you need is to add these libraries to the Deployment Assembly. It will help you to archive ear project and include dependencies that have equivalent manifest settings in their classpath.
If you want to know what is a Deployment Assembly you can read this article Eclipse : Java EE Module Dependencies is replaced by Web Deployment Assembly.
“Web Deployment Assembly“, which provide more powerful and flexible ways to configure the project packaging structure.
There's also a page that describes the process of linking external resources with the ear application: Web Application Development: Configuring Projects with External Resources.
Do you have some javaee api jar in your war ? Maybe a servlet.jar ? Please remove it, and check after that.
I'm getting below error while starting the jboss the server.
Just i installed the JBPM 6.1.0 and trying to start the server and deployment also getting fail.
Please advise...
2014-09-16 12:16:54,008 ERROR
[org.jboss.as.controller.management-operation]
(DeploymentScanner-threads - 2) JBAS014613: Operation
("full-replace-deployment") failed - address: ([]) - failure
description: {
"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"jbpm-console.war\".weld.weldClassIntrospector
is missing [jboss.deployment.unit.\"jbpm-console.war\".beanmanager]"],
"JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {
"Services that were unable to start:" => ["jboss.deployment.unit.\"jbpm-console.war\".INSTALL"],
"Services that may be the cause:" => [
"jboss.deployment.unit.\"jbpm-console.war\".beanmanager",
"jboss.http-upgrade-registry.default",
"jboss.remoting.remotingConnectorInfoService.http-remoting-connector"
]
} }
2014-09-16 12:16:54,046 INFO [org.jboss.as.server]
(DeploymentScanner-threads - 2) JBAS018565: Replaced deployment
"jbpm-console.war" with deployment "jbpm-console.war" 2014-09-16
12:16:54,048 INFO [org.jboss.as.controller]
(DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.app.jbpm-console (unavailable) dependents: [service jboss.deployment.unit."jbpm-console.war".INSTALL]
service jboss.naming.context.java.module.jbpm-console.jbpm-console
(unavailable) dependents: [service
jboss.deployment.unit."jbpm-console.war".INSTALL] JBAS014777:
Services which failed to start: service
jboss.serverManagement.controller.management.http:
org.jboss.msc.service.StartException in service
jboss.serverManagement.controller.management.http: JBAS015811: Failed
to start the http-interface service
service jboss.jacorb.poa-service.rootpoa: org.jboss.msc.service.StartException in service
jboss.jacorb.poa-service.rootpoa: JBAS016490: Failed to resolve
initial reference RootPOA
service jboss.undertow.listener.default: org.jboss.msc.service.StartException in service
jboss.undertow.listener.default: Could not start http listener
This means that there is another server in the same port that jboss is using:
"org.jboss.msc.service.StartException in service jboss.undertow.listener.default: Could not start http listener", if that's not the issue, please provide the full stack trace.
Regards
I am self learning the RESTEasy, to be built with Maven and to be deployed in jBoss and later on to integrate it with Jenkins.
Currently I have created a very simple RESTEasy webservice and built it with maven. I've got a .war file and exploded war(which is "unzipped" folder of the war I believe), a 1.0 snapshot folder with WEB-INF and META-INF folders inside of it in my netbeans project target folder.
I've installed jboss 7.x.x in my mac and successfully started and verified it's working on my localhost:8080. I copied my .war file to jboss7.x.x/standalone/deployments folder.
-Ran the server by: sh jboss-7.x.x.Final/bin/standalone.sh
-Got some error such.
-Stopped the jboss, copied the exploded war folder into the standalone/deployments folder and ran the server again.
-Still getting the error.
-What am I missing?
-The error log:
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
And when I access the http://localhost:8080/HelloRESTEasy-1.0-SNAPSHOT/Hello/justin I got a 404.
That log is not complete and you picked the least important part, but my experience on that suggest that your WAR has resteasy*.jar libs inside it. For jboss 7 your pom.xml at resteasy dependency you must put "<scope>provided</scope>", so when you compile and package that lib will be skipped.