Hello all,

I am writing a code to connect to one of the Biological pathway IdMapping services. Following is the snippet of the code I am using:

Class.forName("org.bridgedb.webservice.bridgerest. BridgeRest");
IDMapper mapper = BridgeDb.connect("idmapper-bridgerest:http://webservice.bridgedb.org/Human");
BioDataSource.init();


I am getting the following error:

Exception in thread "main" org.bridgedb.IDMapperException: java.net.ConnectException: Connection refused
at org.bridgedb.webservice.bridgerest.BridgeRest$Rest Capabilities.<init>(BridgeRest.java:75)
at org.bridgedb.webservice.bridgerest.BridgeRest.<ini t>(BridgeRest.java:288)
at org.bridgedb.webservice.bridgerest.BridgeRest$Driv er.connect(BridgeRest.java:58)
at org.bridgedb.BridgeDb.connect(BridgeDb.java:54)
at test_pack.testCyto.main(testCyto.java:75)
Caused by: java.net.ConnectException: Connection refused



I have inlcuded the jar files for java-mail in my classpath.

Please let me know if there is any way to fix the above.

regards,
Tanisha