Preparing Glassfish for the Shibboleth Identity Provider

Version Requirements/Recommendations

Required Configuration Changes

Deployment

Once the configuration changes have been made the idp.war file may be deployed using Glassfish asadmin command line interface (CLI) as follows:

  1. Startup Glassfish domain

    ~/glassfish3/bin/asadmin start-domain domain1

  2. Deploy IdP war

    ~/glassfish3/bin/asadmin deploy --force=true --contextroot idp --precompilejsp=false --verify=false --upload=false ~/shibboleth/shibboleth-identityprovider-2.4.0/installation/war/idp.war

  3. You can tail the Glassfish log:

    tail -f ~/glassfish3/glassfish/domains/domain1/logs/server.log

  4. After deployment make sure that the idp webapp is configured to load before your Service Provider app. This is done by editing the .../glassfish/domains/domain1/config/domain.xml file and making sure that the <application> tag for idp is before the <application> tag for any SP apps.
    If the IdP is loaded after an SP then you will see the following error:

    INFO: 12:17:38,740 ERROR HTTPMetadataProvider:261 - Non-ok status code 404 returned from remote metadata source