1 2 Previous Next 18 Replies Latest reply: Feb 13, 2012 7:14 PM by Tomaz Cerar Go to original post RSS
  • 15. Re: Where is my application webpage in AS7
    David Pugh Newbie

    @David

     

    Steps to reproduce the error:

     

    Download grails.
    grails create-app my-project
    cd my-project
    grails war

    copy war to jboss.
    Try and go to my-project in browser.

  • 16. Re: Where is my application webpage in AS7
    Tomaz Cerar Master

    Hi,

     

    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.

     

     

    --

    tomaz

  • 17. Re: Where is my application webpage in AS7
    David Pugh Newbie

    @Tomaz Cerar

     

    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

  • 18. Re: Where is my application webpage in AS7
    Tomaz Cerar Master

    Great!

     

    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.

     

    --

    tomaz

1 2 Previous Next