Deploying grails 1.3.x war to glassfish

This was a recent bug bear which may be a regression from 1.2.x line

When you deploy to Glassfish you get an error message

An error has occurred
There is no installed container capable of handling this application com.sun.enterprise.deploy.shared.FileArchive@1e46947

The fix is to include in BuildConfig.groovy

grails.project.war.osgi.headers=false

Maven users can also set the property when running the grails war artificat.

mvn clean grails:war -Dgrails.project.war.osgi.headers=false

via Grails – grails 1.2.2 and glassfish.

Leave a Reply