dev@glassfish.java.net

[HEADS-UP] org.apache.commons.* package renaming changes

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Fri, 03 Mar 2006 15:41:30 -0800

Early next week, I am going to commit the package renaming changes
from org.apache.commons to com.sun.org.apache.commons.

The following package names have been prefixed with "com.sun.":

  org.apache.commons.beanutils
  org.apache.commons.collections
  org.apache.commons.digester
  org.apache.commons.launcher
  org.apache.commons.logging
  org.apache.commons.modeler

The renamed packages have been staged for bootstrapping.

These changes will avoid collisions between the org.apache.commons
packages currently bundled by AS with the same packages (with possibly
different versions) bundled by deployed webapps. These changes have
become necessary because it is currently impossible to isolate the AS
packages from deployed webapps.

Webapps that have a dependency on these packages, and have been
relying on the AS to supply them, will no longer work. In order to
make them work again, the following options are available:

- Have those webapps bundle the required org.apache.commons JARs

- Make the required org.apache.commons packages available for sharing by
  placing their JARs in this location:

    ${com.sun.aas.instanceRoot}/lib/applibs

  - During deployment, specify the "--libraries" option and list the
    specific JARs your webapp depends on

  - For autodeployed webapps, reference the JARs in the
    "extra-class-path" attribute of the <class-loader> element in
    /WEB-INF/sun-web.xml.


Jan