To my big surprise I was not able to find the official way to apply patches to a glassfish installation. I found several patches posted on the issue tracker and paying customers have access to tested and supported patch bundles, which are released outside of the regular release cycle. But even some extensive googling didn't easily reveal how to apply them.
Then luckily I found this discussion on the glassfish mailing list, which describes the process.
To make life easier for others and google to index this information, here is a brief recap:
- Create a directory
<glassfishroot>/lib/patches
- Copy the jar with your patch into this directory
- Edit your
<glassfishroot>/domain/<domainname>/config/domain.xml
and add attributeclasspath-prefix="${com.sun.aas.installRoot}/lib/patches/<patchname.jar>"
to the<java-config ...>
node - Restart your domain
2 comments:
This really helped me out when I tried to figure out how to patch Glassfish !! THANKS! // ola
Nice! Simple and sweet. Thanks!!!
Post a Comment