Steps to reproduce the error:
grails create-app my-project
copy war to jboss.
Try and go to my-project in browser.
can you try disabling osgi subsystem, you do that by commenting out subsystem in standalone.xml.
There are some known issues with grails that produce invalid osgi bundles which couses that osgi compatible containers recognise app as osgi bundle event if it is not.
I disabled osgi in standalone.xml and now grails loads properly.
I do get this warning
13:13:34,031 WARN [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
but grails does work if the osgi subsystem is disabled in standalone.xml
The initial problem acutally lies in the way grails grenerates war, there are some entries inside META-INF/manifest.mf that are indicating that this is OSGI bundle but in reality it is not.
I think some of the problems with this ware fixed in latest 2.0.x version of grails but I am not sure.
There are two solutions for this problem
- remove osgi subsystem if you do not need it (if you don't know if you do, you probably don't)
- or fix the war/META-INF/manifest.mf so it does not include Bundle and any other osgi entries.