Ron,

thx for your answer.

I found the problem. If you want to use the tcp example, your sample
directory must contain a class 'Handler' which looks like this:

public class Handler extends java.net.URLStreamHandler {
        static {
                /* Register the TCPTransport class */
                org.apache.axis.client.Call.setTransportForProtocol(
                                "tcp", TCPTransport.class);
        }

        protected URLConnection openConnection(URL u) {
                return null;
        }
}

Now, it works.
Chris

-----Ursprüngliche Nachricht-----
Von: Ron Reynolds [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 14. Oktober 2005 16:56
An: [email protected]
Betreff: Re: Problems using tcp sample

i've never seen a tcp URL - what protocol is that without ip?  i'm no 
protocol expert, but...  do you have a tcp server running on port 9999?  
so it's not http or ftp or...?
[EMAIL PROTECTED] wrote:

>Hi,
>
>I'm using Axis 1.2.1 and I try to use the tcp sample which can be found in
>package 'samples\transport\tcp'.
>
>My CLASSPATH contain: an XML parser, JUnit, all the jars in the lib
>directory, and the directory containing the samples subdirectory.
>
>When I execute 
>
>java samples.transport.tcp.AdminClient -l tcp://localhost:9999 deploy.wsdd
>
>then I receive the following Exception.
>
>- getURL failed to correctly process URL; protocol not supported
>java.net.MalformedURLException: unknown protocol: tcp
>java.net.MalformedURLException: unknown protocol: tcp
>        at java.net.URL.<init>(Unknown Source)
>        at java.net.URL.<init>(Unknown Source)
>        at java.net.URL.<init>(Unknown Source)
>        at org.apache.axis.utils.Options.getURL(Options.java:237)
>        at org.apache.axis.utils.Options.<init>(Options.java:65)
>        at org.apache.axis.client.AdminClient.process(AdminClient.java:281)
>        at samples.transport.tcp.AdminClient.main(AdminClient.java:53)
>
>
>Why isn't the protocol registered? What's wrong??
>Thx for your help,
>
>Chris
>
>  
>

Reply via email to