I still can't figure out what's wrong, here's the piece of code I'm using to
deploy the service:
AdminClient adminClient = new AdminClient();
String args[] = {
"-lhttp://localhost:9595/test/services/AdminService",
"/tmp/deploy.wsdd"
};
adminClient.process(args);
The previous code throws a ConnectException: connection refused, but the same
arguments in the command line work just fine:
java org.apache.axis.client.AdminClient
-lhttp://localhost:9595/test/services/AdminService /tmp/deploy.wsdd
I looked at the AdminClient.java file and the main() method does pretty much
the same. Also checked the log files and the getURL method of the
org.apache.axis.utils.Options class returns the URL I'm specifying in the
array. More ideas?
Jorge
On Thursday 25 July 2002 06:42 am, Ballard, Margaret wrote:
> Hi Jorge,
>
> I'm also working with the AdminClient programatically. This works for
> me.
> When I took out the port call, it stopped working (because I use port
> 7001 locally,
> and the default is to 8080). Otherwise, when the port is set, this
> works for me.
>
> The only thing is that I can't see that the debug flag makes much of a
> difference.
>
>
> String deployPort = "-p7001";
> String deployName = "/config/deploy.wsdd";
>
> String[] args = {"-ddd",deployPort,deployName};
> AdminClient adminClient = new AdminClient();
> adminClient.process(args);
>
>
>
> Margaret
>
>
>
> -----Urspr�ngliche Nachricht-----
> Von: Jorge M. Aliss [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 25. Juli 2002 11:30
> An: [EMAIL PROTECTED]
> Betreff: Re: AdminClient using the wrong port!
>
>
> Nicolas,
>
> I tried that, and the AdminClient just ignores it if I'm calling it from
>
> inside my servlet. Only works from the command line.
> Thanks,
>
> Jorge
>
> On Thursday 25 July 2002 06:27 am, Nicolas BESSON wrote:
> > Try parameter -p<port>
> >
> > <port> : the port (ex: -p80)
> >
> > Nicolas
> >
> > > -----Message d'origine-----
> > > De : Jorge M. Aliss [mailto:[EMAIL PROTECTED]]
> > > Envoye : jeudi 25 juillet 2002 11:09
> > > A : axis user
> > > Objet : AdminClient using the wrong port!
> > >
> > >
> > > I'm trying to deploy a webservice programmatically from a
> > > servlet. I am using
> > > the AdminClient class and specifying the location for the
> > > AxisServlet using
> > > the -l option (I tried -h -p and -s too). The problem is that the
>
> Admin
>
> > > client ignores the port I specify and tries to open the connection
>
> using
>
> > > default one (8080).
> > >
> > > This doesn't happen if I run the AdminClient from the command line.
>
> Does
>
> > > anyone know to solve this?
> > > Thanks,
> > >
> > > Jorge