Gepardec / sy-poc

Switchyard Proof Of Concept (Example Project)
1 stars 2 forks source link

Setup broken switchyard #1

Open cchet opened 7 years ago

cchet commented 7 years ago

I tried to start the application and it seems that configuration is broken, because the commit message of this Commit says it supports switchyard-2.1.0-Final, but a switchyard bpm module is expected which provides the jar switchyard-component-bpm-2.0.0.Alpha2.jar but switchyard-component-bpm-2.1.0.Final.jar is present in the module.

See this error message:

Undeploy failed: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYCTL0216: Management resource '[(\"deployment\" => \"sy-poc-main-0.0.1-SNAPSHOT.war\")]' not found"}} {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.sy-poc-main-0.0.1-SNAPSHOT.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.sy-poc-main-0.0.1-SNAPSHOT.war\".main: WFLYSRV0179: Failed to load module: deployment.sy-poc-main-0.0.1-SNAPSHOT.war:main Caused by: org.jboss.modules.ModuleLoadException: Error loading module from /home/herzog/Workspaces/sy-poc/wildfly/modules/system/layers/soa/org/switchyard/component/bpm/main/module.xml Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add resource root 'switchyard-component-bpm-2.0.0.Alpha2.jar' at path 'switchyard-component-bpm-2.0.0.Alpha2.jar' (position: END_TAG seen ... <resource-root path=\"switchyard-component-bpm-2.0.0.Alpha2.jar\"/>... @17:74) caused by: java.io.FileNotFoundException: /home/herzog/Workspaces/sy-poc/wildfly/modules/system/layers/soa/org/switchyard/component/bpm/main/switchyard-component-bpm-2.0.0.Alpha2.jar (No such file or directory)"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.module.service.\"deployment.sy-poc-main-0.0.1-SNAPSHOT.war\".main"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}}} ==== FAILURE code 1 ====

cchet commented 7 years ago

I think the problem relies here: 02_switchyard-2.0.0-Alpha2_patch.module. The module.xml still uses the alpha version of swtichyard

ErhardSiegl commented 7 years ago

You can try to remove the patch and use the latest switchyard version

cchet commented 7 years ago

I have created a pull request with the fixed module.xml, which now points to the proper switchyard archive.

cchet commented 7 years ago

If next pull request is accepted, then this issue is fixed. *.module archive got lost and has been added again, with some other changes, which can be evaluated on the new pull request