-
1. Re: SwitchYard war archive : Unknown Service name
mageshbk Apr 3, 2013 5:15 AM (in response to anikulin)Hi Anton,
Could you attach your war packed in a zip? I was unable to download this file completely.
-
2. Re: SwitchYard war archive : Unknown Service name
anikulin Apr 3, 2013 10:03 AM (in response to mageshbk)Yes, sure
-
3. Re: SwitchYard war archive : Unknown Service name
mageshbk Apr 4, 2013 2:19 AM (in response to anikulin)1 of 1 people found this helpfulThanks Anton for the zipped version! The issue is the way you have packaged the war.
- You have multiple WEB-INF and META-INF folders in the war. Remove the ones under WEB-INF/classes .
- For a war deployment you do not need to include the binaries in lib folder. Remove this lib folder.
- For a war deployment the switchyard.xml should reside in WEB-INF folder rather than META-INF.
I have attached the modified war now. Just note that I have removed the persistence.xml that was under WEB-INF/classes/META-INF. Please follow the Hibernate guide on where that needs to be placed in a war.
-
4. Re: SwitchYard war archive : Unknown Service name
anikulin Apr 4, 2013 11:26 AM (in response to mageshbk)Thanks a lot, Magesh
But when I move switchyard.xml to WEB-INF folder, switchyard's services didn't invoked at all, so as i read from the following link, switchyard.xml should be in META-INF folder.
https://docs.jboss.org/author/display/SWITCHYARD/Deployment
And mistake that i had was caused because i don't have beans.xml file in WEB-INF folder. When i put it here, everything became ok. -
5. Re: SwitchYard war archive : Unknown Service name
mageshbk Apr 5, 2013 3:29 AM (in response to anikulin)But when I move switchyard.xml to WEB-INF folder, switchyard's services didn't invoked at all, so as i read from the following link, switchyard.xml should be in META-INF folder.
Oops, I thought we already provided this feature of reading from WEB-INF folder.