users@glassfish.java.net

Re: [V3] Nightly Errors

From: <Jan.Luehe_at_Sun.COM>
Date: Tue, 17 Jun 2008 10:39:53 -0700

Hi Raju,

Raju Uppalapati wrote:

>Hi,
>I am using: glassfish-snapshot-v3-preview-06_16_2008.zip
>and running on JDK 1.6 using the bin/startserv command (Felix Mode)
>
>~~~~~~~~~~~~~~~~~~
>Jun 16, 2008 11:02:30 AM
>INFO: 11:02:30,044 ERROR [ContextLoader:220] Context initialization failed
>java.lang.NoSuchMethodError:
>org.apache.commons.collections.IteratorUtils.emptyIterator()Lorg/apache/commons/collections/ResettableIterator;
> at org.apache.commons.configuration.PropertyConverter.toIterator(PropertyConverter.java:882)
> at org.apache.commons.configuration.AbstractConfiguration.addPropertyValues(AbstractConfiguration.java:416)
> at org.apache.commons.configuration.AbstractConfiguration.addProperty(AbstractConfiguration.java:389)
>~~~~~~~~~~~~~~~~~~
>
>The deployed WAR file bundles commons-collections.jar 3.2.0
>So it appears the apache commons bundled into GFV3 is taking
>precedence over the ones in the WEB-INF/lib of the WAR file. Since
>apache commons is not a J2EE API, the version of this Jar bundled into
>GFV3 should not affect the runtime of webapps.
>
>This is a bug right? I created Issue :
>https://glassfish.dev.java.net/issues/show_bug.cgi?id=5168 to track
>it.
>
>

Yes, looks like a bug.

In V3, we recently removed GF's dependency on the renamed org.apache.commons
packages (prefixed by com.sun), and started using the original
org.apache.commons
modules from Apache, with the assumption that these packages would not
be visible to
applications, and therefore would not create any conflicts with locally
bundled versions
of these packages.

Looks like that assumption must be re-evaluated.

Jan


>_raju
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>