cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject RE: [PATCH] resource: URL handling (cleaned-up code)
Date Tue, 31 Oct 2000 21:50:59 GMT

I know that WebLogic does not allow to modify system properties by servlets.

> -----Original Message-----
> From: rossyb@lineone.net [mailto:rossyb@lineone.net]On Behalf Of
> Ross Burton
> Sent: Tuesday, October 31, 2000 2:14 PM
> To: cocoon-dev@xml.apache.org
> Subject: Re: [PATCH] resource: URL handling (cleaned-up code)
>
>
> Ovidiu Predescu wrote:
>
> > The following patch cleans up the way Cocoon handles the
> resource: URLs. This
> > allows the resource: URL to be used everywhere as it is now a
> first class URL.
> > To be able to use it, you need to add the following line in
> jserv.properties
> > (for other servlet containers the setup should be similar):
> >
> >
> wrapper.bin.parameters=-Djava.protocol.handler.pkgs=org.apache.coc
> oon.protocol
>
> Isn't it possible to set this property when Cocoon starts?  In Tomcat 4
> this code is called:
>
>
> private static final String PROTOCOL_PACKAGES =
> "java.protocol.handler.pkgs";
> private static final String PROTOCOL_HANDLER =
> "com.sun.net.ssl.internal.www.protocol";
>
> private void initHandler() {
> 	String packages = System.getProperty(PROTOCOL_PACKAGES);
> 	if (packages == null)
> 		packages = PROTOCOL_HANDLER;
> 	else if (packages.indexOf(PROTOCOL_HANDLER) < 0)
> 		packages += "|" + PROTOCOL_HANDLER;
> 	System.setProperty(PROTOCOL_PACKAGES, packages);
> }
>
> Is this possible inside Cocoon?  I'm interested in this as Cocoon 2
> needs jar: and cocoon: URL handlers, but am hearing conflicting reports
> about how to do this.  Does anyone know if servlets are allowed to
> modifiy this property?
>
> Ross Burton
>


Mime
View raw message