Lost file for committed not-working WS
authorNatasha Sherstneva <n.shertneva@gmail.com>
Tue, 10 Dec 2013 22:08:39 +0000 (22:08 +0000)
committerNatasha Sherstneva <n.shertneva@gmail.com>
Tue, 10 Dec 2013 22:08:39 +0000 (22:08 +0000)
WEB-INF/web.xml
datadb/compbio/cassandra/CassandraReader.java
server/compbio/ws/jpred/JpredWS.java

index 2032623..937633c 100644 (file)
        <listener>\r
                <listener-class>compbio.listeners.ContextListener</listener-class>\r
        </listener>\r
+       <listener>\r
+               <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>\r
+       </listener>\r
+       <servlet>\r
+               <servlet-name>JpredWS</servlet-name>\r
+               <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>\r
+               <load-on-startup>1</load-on-startup>\r
+       </servlet>\r
+       <servlet-mapping>\r
+               <servlet-name>JpredWS</servlet-name>\r
+               <url-pattern>/JpredWS</url-pattern>\r
+       </servlet-mapping>\r
 \r
        <!-- Session timeout in minutes -->\r
        <session-config>\r
index 00a9f27..81add8f 100644 (file)
@@ -118,7 +118,7 @@ public class CassandraReader {
                String com = "SELECT JobID, Predictions FROM ProteinRow WHERE Protein = '" + queryProtein + "';";
                System.out.println("Command: " + com);
                ResultSet results = session.execute(com);
-               if (results.isExhausted())
+               if (results.isExhausted()) 
                        return null;
                final long queryTime = System.currentTimeMillis();
                List<Row> rows = results.all();
index 32b5399..2f208ad 100644 (file)
@@ -5,9 +5,7 @@ import javax.jws.WebService;
 import compbio.cassandra.CassandraNativeConnector;
 import compbio.statistic.CassandraRequester;
 
-
-@WebService(endpointInterface = "compbio.ws.jpred.Jpred", 
-targetNamespace = "http://server.ws.compbio", serviceName = "JpredWS")
+@WebService(endpointInterface = "compbio.ws.jpred.Jpred", targetNamespace = "http://server.ws.compbio", serviceName = "JpredWS")
 public class JpredWS implements Jpred {
 
        @Override