tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <delbd+jaka...@oma.be>
Subject Re: unknown protocol: httpg
Date Tue, 18 Sep 2007 14:34:38 GMT
Hello Nicolas,

java.net.URL is trying to instanciate a handler for protocol httpg and
fails. Looking at your code, i suppose
org.globus.axis.util.Util.registerTransport() is
supposed to add an handler. This works find in standalone application,
but in J2EE environment the URL class can not see classes inside your
webapp (see tomcat classloader documentation on website for
explanations) and as such can not instanciate them.

I recommend you try using the following URL form:
new URL(URL context, String spec, URLStreamHandler handler)
and you provide a URLStreamHandler for globus.

Another, but ugly, solution is to put globus classes inside system
classloader.

En l'instant précis du 18/09/07 14:42, DEMESY Nicolas s'exprimait en ces
termes:
> Hi,
>
> I would like to contact httpg servers with a servlet host on a tomcat
> server and I have an error :
>
> java.net.MalformedURLException: unknown protocol: httpg
>      at java.net.URL.<init>(URL.java:395)
>      at java.net.URL.<init>(URL.java:283)
>
> when I do :
> SimpleProvider p = new SimpleProvider();
> p.deployTransport("httpg", new SimpleTargetedChain(new
> org.globus.axis.transport.GSIHTTPSender()));
> org.globus.axis.util.Util.registerTransport();
> new java.net.URL("httpg","srm-server", 1234, "/srm");
>
> It seems that the httpg registration is not done ...
> I use a Tomcat 5 server,
>
> ideas?
>
> Thanks,
> Nicolas
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


-- 
http://www.noooxml.org/


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message