Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-18094

Bundle sun-web.xml with classloader settings required for GlassFish (PATCH)

    XMLWordPrintable

    Details

    • Feedback Policy:
      We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see An updated workflow for server feature suggestions.

      Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Confluence won't work properly on Glassfish (v2.1 or v3) unless the classloader delegation is switched off. This can be configured via sun-web.xml which could be bundled with Confluence without affecting any other containers.

      diff -r 39c81074bb98 confluence/confluence-project/conf-webapp/src/main/webapp/WEB-INF/sun-web.xml
      --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
      +++ b/confluence/confluence-project/conf-webapp/src/main/webapp/WEB-INF/sun-web.xml	Sun Dec 20 09:28:16 2009 -0800
      @@ -0,0 +1,9 @@
      +<?xml version="1.0" encoding="UTF-8"?>
      +
      +<!DOCTYPE sun-web-app
      +        PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN"
      +        "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
      +
      +<sun-web-app error-url="">
      +    <class-loader delegate="false"/>
      +</sun-web-app>
      

      Unless the classloader delegation if turned off, the container will try to use container's classloader to load classes before the application specific classloader is used. This will result in all kinds of weird errors in cases where same libraries but different versions are bundled with both Confluence and GlassFish (e.g. Felix, Xalan, etc).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                igorminar Igor Minar
                Participants:
                Last Touched By:
                Rachel Lin (Inactive)
              • Votes:
                6 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  4 years, 46 weeks, 3 days ago