migrate to jersey for an easy wadl generator,
add sentences and keywords positions
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index 27ff16c..d2235e6 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -1,9 +1,18 @@
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="SRU_WEB_SERVICE">
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app id="SRU_WEB_SERVICE">
<display-name>SRU Web-service</display-name>
<servlet>
<servlet-name>SRU_WS</servlet-name>
- <servlet-class>de.mannheim.ids.sruws.SRU_WS</servlet-class>
+ <!-- <servlet-class>de.mannheim.ids.sruws.SRU_WS</servlet-class> -->
+ <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
+ <init-param>
+ <param-name>com.sun.jersey.config.property.packages</param-name>
+ <param-value>de.mannheim.ids.sruws</param-value>
+ </init-param>
<init-param>
<param-name>de.mannheim.ids.sruws.endpoint.korap</param-name>
<param-value>http://clarin.ids-mannheim.de/korapsru</param-value>
@@ -24,34 +33,45 @@
<param-name>de.mannheim.ids.sruws.endpoint.stuttgart</param-name>
<param-value>http://clarin01.ims.uni-stuttgart.de/SRUCQIBridge</param-value>
</init-param>
- <!-- same case like goethe, pid is sub-resource -->
- <init-param>
- <param-name>de.mannheim.ids.sruws.endpoint.muenchen</param-name>
- <param-value>https://clarin.phonetik.uni-muenchen.de/BASSRU/</param-value>
- </init-param>
- <!-- weird pid -->
- <init-param>
- <param-name>de.mannheim.ids.sruws.endpoint.mpi</param-name>
- <param-value>http://cqlservlet.mpi.nl/</param-value>
- </init-param>
- <!-- doesnt provide scan -->
- <init-param>
- <param-name>de.mannheim.ids.sruws.endpoint.saarland</param-name>
- <param-value>http://fedora.clarin-d.uni-saarland.de/sru2</param-value>
- </init-param>
- <!-- empty pid -->
+
+ <!-- empty pid -->
<init-param>
<param-name>de.mannheim.ids.sruws.endpoint.berlin</param-name>
<param-value>http://dspin.dwds.de:8088/DDC-Endpoint/sru</param-value>
- </init-param>
+ </init-param>
+
+
+ <!-- broken sentences -->
+
+ <!-- same case like goethe, pid is sub-resource -->
+ <!-- <init-param>
+ <param-name>de.mannheim.ids.sruws.endpoint.muenchen</param-name>
+ <param-value>https://clarin.phonetik.uni-muenchen.de/BASSRU/</param-value>
+ </init-param> -->
+
+ <!-- weird pid -->
+ <!-- <init-param>
+ <param-name>de.mannheim.ids.sruws.endpoint.mpi</param-name>
+ <param-value>http://cqlservlet.mpi.nl/</param-value>
+ </init-param> -->
+
<!-- pid doesn't match -->
- <init-param>
+ <!-- <init-param>
<param-name>de.mannheim.ids.sruws.endpoint.hamburg</param-name>
<param-value>http://virt-fedora.multilingua.uni-hamburg.de:8080/HZSKsru/</param-value>
- </init-param>
+ </init-param> -->
+
+ <!-- doesnt provide scan -->
+ <!-- <init-param>
+ <param-name>de.mannheim.ids.sruws.endpoint.saarland</param-name>
+ <param-value>http://fedora.clarin-d.uni-saarland.de/sru2/</param-value>
+ </init-param> -->
+
+ <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SRU_WS</servlet-name>
<url-pattern>/*</url-pattern>
- </servlet-mapping>
+ </servlet-mapping>
+
</web-app>
\ No newline at end of file