Unable to run XQueries using Quip

I am unable to connect to the Tamino server through Quip whereas my code works when executing XQueries on the xml file in the filesystem.

Here is the part of the code at my end -

Properties prop = new Properties();
String x = “http://localhost/tamino/mydb” ;
prop.put(“quipcmd”,“E:\Tamino/QuiP/quip.exe” );
prop.put(“qmachineoptions”,"+RTS -M200M -RTS");
String query=“for $a in document(“file:E:\Small/Small.xml”)//AtomicPart return $a”;
Connection connect = DriverManager.getConnection( “http://localhost/tamino/mydb”, (Properties)prop );
QueryResult result = connect.executeQuery(query);

The connect variable returned is NULL though the server is running. The same works when i connect to the file on the filesystem.
It would be really helpful if you could suggest a solution to it.