Hi David;

Ok , It works well with the second solution, I put the globus library in the common/lib directory of Tomcat .
Thanks a lot
Nicolas

David Delbecq a écrit:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to