|
From: Markus K. <ma...@pr...> - 2013-07-11 20:21:34
|
Hi Jesús,
The "connection refused" looks like the client application is not able
to open a connection to the host livecd on port 8080.
Please, make sure you can connect, from the same host as your client
code is running, for instance using telnet:
telnet livecd 8080
Best regards,
Markus
On 2013-07-10 19:14, Jesús Arnáiz wrote:
> Hi.
>
> I'm trying to use SignServer API, my code is:
> ------------
>
> public static void sign(SignOptions options, InputStream input,
> OutputStream output)
> throws ConnectionProblemExeption {
> try {
> ISigningAndValidation signserver = new
> SigningAndValidationWS(options.getHost(), options.getPort(),
> options.getUseSSL());
> GenericSignResponse signResponse =
> signserver.sign(options.getSigner(), IOUtils.toByteArray(input));
>
> }
> catch (Exception ex) {
> throw new ConnectionProblemExeption(ex.getMessage());
> }
> }
> ----------------
> I set the options to be: "livecd" (host), 8080 (port), and false (useSSL).
>
> But I get:
>
> "HTTP transport error: java.net.ConnectException: Connection refused:
> connect" exception due to the call to "signserver.sign".
>
> I'm able to sign using web JSP:
>
> http://livecd:8080/signserver/demo/genericsign.jsp
>
> using CMSSignerJ3 Signer and a string as Data.
>
> Why I'm getting "connection refused"?
>
> Any help would be appreciated.
>
> Thanks in advance.
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> SignServer-develop mailing list
> Sig...@li...
> https://lists.sourceforge.net/lists/listinfo/signserver-develop
>
|