[redhat-ccm-list] weblogic URL("resource:///..") problem
Chris Burdess
chris at runtime-collective.com
Fri May 7 09:30:35 UTC 2004
Dennis Gregorovic wrote:
> sun.net.www.protocol.resource.Handler is the URL protocol handler for
> resource://. This class is part of WAF.
You're right. You appear to be unaware that this is a violation of the
EULA for the Java runtime:
http://java.sun.com/j2se/1.4.2/j2sdk-1_4_2_04-license.txt
See the last sentence of section D of "Supplemental Licence Terms".
As such, you are prohibited from distributing CCM under the current
licences (CCM Public Licence and GPL), and you need to issue a recall
for all versions already distributed in which this class exists.
Technically, it is not difficult to solve this problem. Instead of
using "resource:" URLs, you need to use the Class or ClassLoader
getResource() and/or getResourceAsStream() methods.
Alternatively, you can set the system property
java.protocol.handler.pkgs to include the package (in a suitable
non-"sun" namespace) with the "Handler" class that you want to handle
the "resource:" URL scheme. This property was documented in the API for
Java 1.2 and is implemented in GNU Classpath, but is not documented in
recent Sun versions and therefore may not work either in those versions
or in the future, so the first solution is preferable.
What are your plans as regards a new release that resolves this
problem, especially regarding the APLAWS+ distribution under GPL?
More information about the Redhat-ccm-list
mailing list