I've written a WebApp containing some JSPs. First I deployed the WebApp as a WAR-file. Because of using Hibernate I need a jboss-service.xml file (defining a mbean) in folder META-INF. If I deploy the WebApp as a WAR-file, the container doesn't process the jboss-service.xml. So I renamed the WAR-file to a SAR-file. Now the jboss-service.xml is processed successfully, but I can't reach my JSP-files after deploying the SAR-file.
Can somebody help me? What is the interrelation of EAR-, SAR- and WAR-files?
For servlets and JSPs to work, they must be deployed to the servlet container. So they still need to be identified as WARs. Nest your WAR within your SAR. See jboss-net.sar for an example.