/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
- * Copyright (C) 2015 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*/
package jalview.ws.jws2;
-import jalview.bin.Cache;
+import jalview.bin.Console;
import jalview.ws.jws2.jabaws2.Jws2Instance;
import jalview.ws.jws2.jabaws2.Jws2InstanceFactory;
registry = Jws2Client.connectToRegistry(jwsserver);
if (registry != null)
{
- // System.err.println("Test Services Output\n"
+ // jalview.bin.Console.errPrintln("Test Services Output\n"
// + registry.testAllServices());
// TODO: enumerate services and test those that haven't been tested
// in the last n-days/hours/etc.
srv_set = registry.getSupportedServices();
// dan test
- System.out.println("registry.getSupportedServices: "
- + srv_set.toString());
+ jalview.bin.Console.outPrintln(
+ "registry.getSupportedServices: " + srv_set.toString());
svccategories = registry.getServiceCategories();
// dan test
- // System.out.println("registry.getServiceCategories: " +
+ // jalview.bin.Console.outPrintln("registry.getServiceCategories: "
+ // +
// svccategories.toString());
}
} catch (Exception ex)
{
- System.err.println("Exception whilst trying to get at registry:");
+ jalview.bin.Console.errPrintln(
+ "Exception whilst trying to get at registry:");
ex.printStackTrace();
// if that failed, then we are probably working with a JABAWS1 server.
// in that case, look for each service endpoint
- System.err.println("JWS2 Discoverer: " + jwsserver
+ jalview.bin.Console.errPrintln("JWS2 Discoverer: " + jwsserver
+ " is a JABAWS1 server. Using hardwired list.");
for (Services srv : JABAWS1SERVERS)
{
service = Jws2Client.connect(jwsserver, srv);
} catch (Exception e)
{
- System.err.println("Jws2 Discoverer: Problem on " + jwsserver
- + " with service " + srv + ":\n" + e.getMessage());
+ jalview.bin.Console.errPrintln("Jws2 Discoverer: Problem on "
+ + jwsserver + " with service " + srv + ":\n"
+ + e.getMessage());
if (!(e instanceof javax.xml.ws.WebServiceException))
{
e.printStackTrace();
else
{
jws2Discoverer.addInvalidServiceUrl(jwsserver);
- Cache.log.warn("Ignoring invalid Jws2 service url " + jwsserver);
+ Console.warn("Ignoring invalid Jws2 service url " + jwsserver);
}
} catch (Exception e)
{
e.printStackTrace();
- Cache.log.warn("Exception when discovering Jws2 services.", e);
+ Console.warn("Exception when discovering Jws2 services.", e);
jws2Discoverer.addInvalidServiceUrl(jwsserver);
} catch (Error e)
{
- Cache.log.error("Exception when discovering Jws2 services.", e);
+ Console.error("Exception when discovering Jws2 services.", e);
jws2Discoverer.addInvalidServiceUrl(jwsserver);
}
running = false;
result = true;
} catch (MalformedURLException e)
{
- System.err.println("Invalid server URL: " + server);
+ jalview.bin.Console.errPrintln("Invalid server URL: " + server);
result = false;
} catch (IOException e)
{
- System.err.println("Error connecting to server: " + server + ": "
- + e.toString());
+ jalview.bin.Console.errPrintln("Error connecting to server: "
+ + server + ": " + e.toString());
result = false;
}
}