I thought when we package a sar, the only requirement is that there is a META-INF directory and a xml file named like ***-service.xml inside the META-INF directory. But I always name it as jboss-service.xml. Until recently I found out that if I changed it from jboss-service.xml to something else, such as 'router-service.xml', the jboss would not start. It gives error message such as jboss-service.xml not found.
What is wrong? Does it have to be names jboss-service.xml inside a SAR?
yes, the name is fixed to META-INF/jboss-service.xml