Project

General

Profile

« Previous | Next » 

Revision 47588

Copy for migration to java8 and dnet45

View differences:

modules/dnet-shadow-functionality-services/trunk/src/main/resources/META-INF/services/javax.xml.transform.TransformerFactory
1
net.sf.saxon.TransformerFactoryImpl
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/cxf.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans xmlns="http://www.springframework.org/schema/beans"
3
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://cxf.apache.org/core"
4
	xmlns:http="http://cxf.apache.org/transports/http/configuration"
5
	xmlns:wsa="http://cxf.apache.org/ws/addressing" xmlns:p="http://www.springframework.org/schema/p"
6
	xmlns:pol="http://cxf.apache.org/policy" xmlns:condbean="http://dnetlib.eu/springbeans/condbean"
7
	xsi:schemaLocation="
8
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
9
http://cxf.apache.org/ws/addressing http://cxf.apache.org/schemas/ws-addr-conf.xsd
10
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
11
http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd
12
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
13
http://dnetlib.eu/springbeans/condbean http://dnetlib.eu/springbeans/condbean.xsd">
14

  
15
	<cxf:bus>
16
		<cxf:inInterceptors>
17
<!--			<bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor" />-->
18
<!--			<bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />-->
19
		</cxf:inInterceptors>
20
		<cxf:features>
21
<!--			<wsa:addressing />-->
22
<!--			<cxf:logging />-->
23
<!--			<pol:policies ignoreUnknownAssertions="true" />-->
24
		</cxf:features>
25
	</cxf:bus>
26

  
27

  
28
	<http:conduit name="*.http-conduit">
29
		<http:client AllowChunking="true" Connection="Keep-Alive" />
30
	</http:conduit>
31
</beans>
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/pages/search.jsp
1
<%@page import="java.util.List"%>
2
<%@page import="eu.dnetlib.domain.EPR"%>
3
<%@page import="gr.uoa.di.driver.enabling.resultset.ResultSet"%>
4
<%@page import="org.apache.commons.lang.StringEscapeUtils"%>
5

  
6
<jsp:useBean id="query" class="eu.dnetlib.data.search.web.Query" scope="request">
7
<jsp:setProperty name="query" property="*"/>
8
</jsp:useBean>
9

  
10
<%
11
if (query == null) {
12
%>
13
    <jsp:forward page="/"/>
14
<%
15
}
16
%>
17

  
18

  
19
<%@page import="eu.dnetlib.api.data.SearchService"%>
20
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
21
<%@page import="org.springframework.context.ApplicationContext"%>
22
<%@page import="eu.dnetlib.data.search.web.SearchServiceContextUtils"%>
23
<%@page import="gr.uoa.di.driver.enabling.resultset.ResultSetFactory"%>
24
<html>
25
	<head>
26
		<title>Index Lookup</title>
27
	</head>
28
	<body>
29
		<h1>Index Lookup</h1>
30
		Search for <b>
31
		<%
32
		if (query.getQuery() == null || query.getQuery().length() == 0 ) {
33
		%>
34
			(empty query)
35
		<%
36
		} else {
37
		%>
38
			<%=query.getQuery()%>
39
		<%
40
		}
41
		%>
42
		</b> in <a href="services/searchWebService">local search service</a>...<br>
43

  
44
<%
45
	long time = System.currentTimeMillis();
46
	SearchService searchService = SearchServiceContextUtils.getSearchService(request);
47
%>
48
	Created index endpoint in <%=System.currentTimeMillis()-time%> ms.<br>
49

  
50
<%
51
	time = System.currentTimeMillis();
52
	EPR epr = searchService.search(query.getQuery());
53
%>
54
	Index lookup lasted <%=System.currentTimeMillis()-time%> ms.<br>
55
	Returned EPR: <pre><%=StringEscapeUtils.escapeHtml(epr.toString())%></pre><br>
56
<%
57
	time = System.currentTimeMillis();
58
	ResultSet<String> rs = SearchServiceContextUtils.getResultSetFactory(request).createResultSet(epr);
59
	int count = rs.size();
60
%>
61
	Total documents in result set: <%=count%><br>
62
	Query Numof Documents lasted <%=System.currentTimeMillis()-time%> ms.<br>
63

  
64
<%
65
	time = System.currentTimeMillis();
66
	List<String> list = null;
67
	int MAX = 50;
68
	if (count > 0) {
69
		list = rs.getElements(1, Math.min(MAX, count));
70
	}
71
%>
72
	Retrieve top-<%=MAX%> docs lasted <%=System.currentTimeMillis()-time%> ms.<br>
73

  
74
	Top-<%=MAX%> results:
75
	<table>
76
		<tr><th>Count</th><th>Record</th></tr>
77
	<% for (int i = 0 ; i < MAX && i < count; i++ ) { %>
78
		<tr>
79
			<td><%=i+1%></td>
80
			<!--
81
			<td><pre><%=StringEscapeUtils.escapeHtml(list.get(i))%></pre></td>
82
			-->
83
			<td><pre><%=StringEscapeUtils.escapeHtml(
84
					SearchServiceContextUtils.prettyPrint(list.get(i)))%>
85
			</pre></td>
86
		</tr>
87
	<% } %>
88
	</table>
89
	
90
	</body>
91
</html>
92

  
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/pages/openSearchDescriptor.jsp
1
<%@page contentType="application/xml" %><%@ page isELIgnored="false" %><?xml version="1.0" encoding="UTF-8"?>
2
 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
3
	<ShortName>OpenAIRE Search</ShortName>
4
	<Description>Use OpenAIRE to search for research results</Description>
5
	<Tags>OpenAIRE</Tags>
6
	<Contact>https://www.openaire.eu/support/helpdesk</Contact>
7
	<Url type="application/rss+xml"
8
		template="${baseUrl}/api/publications?keywords={searchTerms}&amp;page={startPage}&amp;size={count}&amp;format=rss"/>
9
</OpenSearchDescription>
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/pages/index.jsp
1
<html>
2
	<head>
3
		<title>XFire</title>
4
	</head>
5
	<body>
6
		<h1>Ubuntu Rockz!!!</h1>
7
		<p/>
8
		
9
		<H2>
10
		<a href="services/">Search Service</a>
11
		[<a href="services/searchWebService?wsdl">WSDL</a>]
12
		</H2>
13
	
14
		<p>
15
		<hr>
16
		<p>
17
		
18
		<H2>Index Lookup</H2>
19
		<form action="search.jsp" method="post">
20
			<table border="0" cellpadding="0" cellspacing="0">
21
				<tr><td>
22
					<center>
23
					<input type="text" name="query" size="40"/>
24
					</center>
25
				</td></tr>
26
				<tr><td>
27
					<center>
28
					<input type="submit" name="submit"/>
29
					<input type="reset" name="reset"/>
30
					</center>
31
				</td></tr>
32
			</table>
33
		</form>
34

  
35
		<p>
36
		<hr>
37
		<p>
38
		
39
		<H2>Index Refine</H2>
40
		<form action="refine.jsp" method="post">
41
			<table border="0" cellpadding="0" cellspacing="0">
42
				<tr><td>query</td><td>
43
					<input type="text" name="query" size="40"/>
44
				</td></tr>
45
				<tr><td>fields</td><td>
46
					<input type="text" name="fields" size="30"/><br>
47
					<small>(comma or white space separated)</small>
48
				</td></tr>
49
				<tr><td>
50
					<center>
51
					<input type="submit" name="submit"/>
52
					<input type="reset" name="reset"/>
53
					</center>
54
				</td></tr>
55
			</table>
56
		</form>
57
		
58
		<p>
59
		<hr>
60
		<p>
61
		
62
		<H2>Index Browse</H2>
63
		<form action="browse.jsp" method="post">
64
			<table border="0" cellpadding="0" cellspacing="0">
65
				<tr><td>prefix</td><td>
66
					<input type="text" name="query" size="30"/><br>
67
					<small>(prefix query)</small>
68
				</td></tr>
69
				<tr><td>fields</td><td>
70
					<input type="text" name="fields" size="30"/><br>
71
					<small>(only first is used)</small>
72
				</td></tr>
73
				<tr><td>
74
					<center>
75
					<input type="submit" name="submit"/>
76
					<input type="reset" name="reset"/>
77
					</center>
78
				</td></tr>
79
			</table>
80
		</form>
81
		
82
	</body>
83
</html>
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/pages/refine.jsp
1
<%@page import="java.util.List"%>
2
<%@page import="eu.dnetlib.domain.EPR"%>
3
<%@page import="gr.uoa.di.driver.enabling.resultset.ResultSet"%>
4
<%@page import="eu.dnetlib.api.data.SearchService"%>
5

  
6
<jsp:useBean id="query" class="eu.dnetlib.data.search.web.Query" scope="request">
7
<jsp:setProperty name="query" property="*"/>
8
</jsp:useBean>
9

  
10
<% if (query == null) { %>
11
    <jsp:forward page="/"/>
12
<% } %>
13

  
14

  
15
<%@page import="org.apache.commons.lang.StringEscapeUtils"%>
16
<%@page import="eu.dnetlib.data.search.web.SearchServiceContextUtils"%>
17
<%@page import="gr.uoa.di.driver.enabling.resultset.ResultSetFactory"%>
18
<html>
19
	<head>
20
		<title>Index Refine</title>
21
	</head>
22
	<body>
23
		<h1>Index Refine</h1>
24
		Refine for <b>
25
		<% if (query.getQuery() == null || query.getQuery().length() == 0 ) { %>
26
			(empty query)
27
		<% } else { %>
28
			<%=query.getQuery()%>
29
		<% } %>
30
		</b>
31
		<% List<String> fields = query.parseFields(); %>
32
		using <%=(fields==null)?0:fields.size()%>fields: <b><%=fields%></b>
33
		in <a href="services/searchWebService">local search service</a>...<br>
34
		
35
<%
36
	long time = System.currentTimeMillis();
37
	SearchService search = SearchServiceContextUtils.getSearchService(request);
38
%>
39
	Created index endpoint in <%=System.currentTimeMillis()-time%> ms.<br>
40

  
41
<%
42
	time = System.currentTimeMillis();
43
	EPR epr = search.refine(query.getQuery(), fields);
44
%>
45
	Index lookup lasted <%=System.currentTimeMillis()-time%> ms.<br>
46
	Returned EPR: <pre><%=StringEscapeUtils.escapeHtml(epr.toString())%></pre><br>
47
	
48
<%
49
	time = System.currentTimeMillis();
50
	ResultSet<String> rs = SearchServiceContextUtils.getResultSetFactory(request).createResultSet(epr);
51
	int count = rs.size();
52
%>
53
	Total records in result set: <%=count%><br>
54
	Query Numof records lasted <%=System.currentTimeMillis()-time%> ms.<br>
55

  
56
<%
57
	time = System.currentTimeMillis();
58
	List<String> list = null;
59
	int MAX = 50;
60
	if (count > 0) {
61
		list = rs.getElements(1, Math.min(MAX, count));
62
	}
63
%>
64
	Retrieve top-<%=MAX%> records lasted <%=System.currentTimeMillis()-time%> ms.<br>
65

  
66
	Top-<%=MAX%> results:
67
	<table>
68
		<tr><th>Count</th><th>Record</th></tr>
69
	<% for (int i = 0 ; i < MAX && i < count; i++ ) { %>
70
		<tr>
71
			<td><%=i+1%></td>
72
			<td><pre><%=StringEscapeUtils.escapeHtml(list.get(i))%></pre></td>
73
		</tr>
74
	<% } %>
75
	</table>
76
	
77
	</body>
78
</html>
79

  
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/pages/error.jsp
1
<%@ page contentType="text/html; charset=utf-8" %>
2

  
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml">
5

  
6

  
7
	<head>
8
	<title>Error Page</title>
9

  
10
		<%
11
		  Throwable exception = (Throwable)
12
		  		request.getAttribute("javax.servlet.error.exception");
13
		  String message = (String)
14
		  		request.getAttribute("javax.servlet.error.message");
15
		  Integer statusCode = (Integer)
16
		  		request.getAttribute("javax.servlet.error.status_code");
17
		%>
18
  		<b>Status Code : </b> <%=statusCode%> <br/>
19
  		<b>Message : </b> <%=message%> <br/>
20
  		
21
  		<% while (exception != null) { %>
22
			<!-- Caught Exception -->
23
	  		<b>Exception : <%=exception.getMessage() %></b> <br/>
24
	  		<%
25
	  			StackTraceElement[] trace = exception.getStackTrace();
26
				for (int i = 0; i < trace.length; i++) {
27
			%>
28
					<i>&nbsp;&nbsp; <%=trace[i]%></i><br/>	
29
	  		<%
30
				}
31
				exception = exception.getCause();
32
			}
33
  			%>
34
  		  		
35
</body>
36
</html>
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/pages/browse.jsp
1
<%@page import="java.util.List"%>
2
<%@page import="eu.dnetlib.domain.EPR"%>
3
<%@page import="gr.uoa.di.driver.enabling.resultset.ResultSet"%>
4
<%@page import="eu.dnetlib.api.data.SearchService"%>
5

  
6
<jsp:useBean id="query" class="eu.dnetlib.data.search.web.Query" scope="request">
7
<jsp:setProperty name="query" property="*"/>
8
</jsp:useBean>
9

  
10
<% if (query == null) { %>
11
    <jsp:forward page="/"/>
12
<% } %>
13

  
14
<%@page import="org.apache.commons.lang.StringEscapeUtils"%>
15
<%@page import="eu.dnetlib.data.search.web.SearchServiceContextUtils"%>
16
<%@page import="eu.dnetlib.domain.data.BrowseData"%>
17
<%@page import="eu.dnetlib.api.data.BrowseDataNotAvailableException"%>
18
<html>
19
	<head>
20
		<title>Index Browse</title>
21
	</head>
22
	<body>
23
		<h1>Index Browse</h1>
24
		Browse for <b>
25
		<% if (query.getQuery() == null || query.getQuery().length() == 0 ) { %>
26
			(empty query)
27
		<% } else { %>
28
			<%=query.getQuery()%>
29
		<% } %>
30
		</b>
31
		<% List<String> fields = query.parseFields(); %>
32
		<% String field = (fields==null)?null:fields.get(0); %>
33
		<% if (field == null) { %>
34
		<b>using no field</b>
35
		<% } else { %>
36
		<b>using field: <%=field %></b>
37
		<% } %>
38
		in <a href="services/searchWebService">local search service</a>...<br>
39
		
40

  
41
<%
42
	long time = System.currentTimeMillis();
43
	SearchService search = SearchServiceContextUtils.getSearchService(request);
44
%>
45
	Created index endpoint in <%=System.currentTimeMillis()-time%> ms.<br>
46

  
47
<%
48
	time = System.currentTimeMillis();
49
	BrowseData data = null;
50
	try {
51
		data = search.browse(query.getQuery(), field);
52
	} catch (BrowseDataNotAvailableException bdna) {
53
		data = null;
54
	}
55
%>
56
	Index lookup lasted <%=System.currentTimeMillis()-time%> ms.<br>
57
	
58
	<% if (data == null) { %>
59
	<i>Browse results are currently being updated...</i>
60
	<% } else { %>
61
	Browse results:
62
	<table>
63
		<tr><th>Field</th><th>Value</th><th>Count</th></tr>
64
		<%
65
		for (String f : data.getFields()) {
66
			List<Integer> counts = data.getFieldCounts(f);
67
			List<String> values = data.getFieldValues(f);
68
			for (int i=0; i<counts.size(); i++) {
69
		%>
70
		<tr>
71
			<td><%=f%></td>
72
			<td><%=values.get(i)%></td>
73
			<td><%=counts.get(i)%></td>
74
		</tr>
75
		<% }} %>
76
	</table>
77
	<% } %>
78
	</body>
79
</html>
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/uoa-shadow-override.properties
1
services.search.mdFormat = DMF
2
# just to make sure that it keeps the  default value
3

  
4
services.search.infrastructure = shadow
5
services.search.indexMode = solr
6
services.search.mdFormat = TMF
7
services.search.vocabulariesPath = /tmp/vocabularies/
8
services.search.infrastructure = shadow
9
services.registration.default.removeRegistration=false
10

  
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/applicationContext.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2

  
3
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xmlns:context="http://www.springframework.org/schema/context"
5
	xmlns="http://www.springframework.org/schema/beans"
6
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
7
	http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
8

  
9
	<import resource="classpath:META-INF/cxf/cxf.xml" />
10
	
11
	<import resource="classpath*:/gr/uoa/di/driver/app/springContext-commons.xml" />
12
	<import resource="classpath*:/gr/uoa/di/driver/util/springContext-locators.xml" />
13
	<import resource="classpath*:/gr/uoa/di/driver/app/springContext-registrator.xml" />
14
	<import resource="classpath*:/eu/dnetlib/clients/ws/springContext-locatorFactory.xml" />
15
	<import resource="classpath*:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml"/>
16
	<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.xml" />
17
	<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupClients.xml" />
18

  
19
	<import resource="classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.xml" />
20
	<import resource="classpath*:/eu/dnetlib/data/search/solr/springContext-searchService-solr.xml" />
21
	<import resource="classpath*:/eu/dnetlib/data/search/springContext-transformation.xml" />
22
	<import resource="classpath*:/eu/dnetlib/data/search/springContext-searchService.xml" />
23

  
24
	<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
25
		<property name="order" value="2" />
26
		<property name="ignoreUnresolvablePlaceholders" value="true" />
27
		<property name="properties">
28
			<bean class="eu.dnetlib.conf.WebappContextProperyFactory">
29
				<property name="propertyFetcher">
30
					<bean class="eu.dnetlib.conf.PropertyFetcher" />
31
				</property>
32
			</bean>
33
		</property>
34
		<property name="locations">
35
			<list>
36
				<value>classpath*:/eu/**/applicationContext*.properties</value>
37
				<value>classpath*:/eu/dnetlib/applicationContext-defaultProperties.properties</value>
38
				<value>classpath*:/gr/**/springContext-commons.properties</value>
39
				<value>classpath*:/gr/**/springContext-registrator.properties</value> 
40
				<value>classpath*:/gr/**/springContext-locators.properties</value>
41
				<value>classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.properties</value>
42
				<value>classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.properties</value>
43
				<value>classpath*:/eu/**/springContext-searchService-solr.properties</value>
44
				<value>classpath*:/eu/**/springContext-searchService.properties</value>
45
				<value>classpath*:/eu/**/springContext-transformation.properties</value>
46
				<value>classpath*:/uoa-override.properties</value>
47
				<value>classpath*:/dnet-override.properties</value>
48
				<value>classpath*:/uoa-shadow-override.properties</value>
49
</list>
50
</property>
51
	</bean>
52

  
53
	<context:annotation-config />
54
	<import resource="./cxf.xml" />
55
</beans>
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/dispatcher-servlet.xml
1
<beans xmlns="http://www.springframework.org/schema/beans"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
3
	xmlns:context="http://www.springframework.org/schema/context"
4
	xsi:schemaLocation="http://www.springframework.org/schema/beans
5
	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
6
	http://www.springframework.org/schema/context
7
	http://www.springframework.org/schema/context/spring-context-2.5.xsd">
8
	
9
	<import resource="classpath*:/eu/dnetlib/data/search/web/api/dispatcher-servlet.xml"/>
10

  
11
    <bean id="viewResolver"
12
          class="org.springframework.web.servlet.view.UrlBasedViewResolver">
13
        <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
14
        <property name="prefix" value="/WEB-INF/pages/"/>
15
        <property name="suffix" value=".jsp"/>
16
    </bean>
17
</beans>
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/log4j.properties
1
log4j.rootLogger = WARN, R
2

  
3
log4j.logger.eu.dnetlib = INFO
4
log4j.logger.gr.uoa = INFO, S
5
log4j.logger.org.apache.cxf.interceptor = FATAL, stdout
6

  
7
log4j.additivity.org.springframework = false
8

  
9
log4j.appender.R=org.apache.log4j.RollingFileAppender
10
log4j.appender.R.File=/var/log/dnet/shadowSearch/shadowSearch.log
11
log4j.appender.R.MaxFileSize=10MB
12
log4j.appender.R.MaxBackupIndex=10
13
log4j.appender.R.layout=org.apache.log4j.PatternLayout
14
log4j.appender.R.layout.ConversionPattern= %d %p %t [%c] - %m%n
15

  
16
log4j.appender.S=org.apache.log4j.RollingFileAppender
17
log4j.appender.S.File=/var/log/dnet/shadowSearch/shadowSearch-spring.log
18
log4j.appender.S.MaxFileSize=10MB
19
log4j.appender.S.MaxBackupIndex=10
20
log4j.appender.S.layout=org.apache.log4j.PatternLayout
21
log4j.appender.S.layout.ConversionPattern= %d %p %t [%c] - %m%n
22

  
modules/dnet-shadow-functionality-services/trunk/src/main/webapp/WEB-INF/web.xml
1
<!DOCTYPE web-app PUBLIC
2
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
3
 "http://java.sun.com/dtd/web-app_2_3.dtd" >
4
<web-app>
5
	<display-name>uoa-shadow-search</display-name>
6
	<context-param>
7
		<param-name>webAppRootKey</param-name>
8
		<param-value>uoa-shadow-search</param-value>
9
	</context-param>
10
	<context-param>
11
		<param-name>contextConfigLocation</param-name>
12
		<param-value>/WEB-INF/applicationContext.xml</param-value>
13
	</context-param>
14
	<context-param>
15
		<param-name>log4jConfigLocation</param-name>
16
		<param-value>/WEB-INF/log4j.properties</param-value>
17
	</context-param>
18

  
19
	<listener>
20
		<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
21
	</listener>
22
	<listener>
23
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
24
	</listener>
25
	<servlet>
26
		<servlet-name>CXFServlet</servlet-name>
27
		<display-name>CXF Servlet</display-name>
28
		<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
29
		<load-on-startup>1</load-on-startup>
30
	</servlet>
31

  
32
	<servlet>
33
		<servlet-name>dispatcher</servlet-name>
34
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
35
		<load-on-startup>1</load-on-startup>
36
	</servlet>
37

  
38
	<servlet-mapping>
39
		<servlet-name>CXFServlet</servlet-name>
40
		<url-pattern>/services/*</url-pattern>
41
	</servlet-mapping>
42
	
43
	<servlet-mapping>
44
		<servlet-name>dispatcher</servlet-name>
45
		<url-pattern>/</url-pattern>
46
	</servlet-mapping>
47
	<filter>
48
                <filter-name>encodingFilter</filter-name>
49
                <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
50
                <init-param>
51
                        <param-name>encoding</param-name>
52
                        <param-value>UTF-8</param-value>
53
                </init-param>
54
                <init-param>
55
                        <param-name>forceEncoding</param-name>
56
                        <param-value>true</param-value>
57
                </init-param>
58
        </filter>
59

  
60
        <filter-mapping>
61
                <filter-name>encodingFilter</filter-name>
62
                <url-pattern>/*</url-pattern>
63
        </filter-mapping>
64
</web-app>
modules/dnet-shadow-functionality-services/trunk/pom.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
	<parent>
5
		<groupId>eu.dnetlib</groupId>
6
		<artifactId>dnet-parent</artifactId>
7
		<version>1.0.0-SNAPSHOT</version>
8
	</parent>
9
	<modelVersion>4.0.0</modelVersion>
10
	<groupId>eu.dnetlib</groupId>
11
	<artifactId>dnet-shadow-functionality-services</artifactId>
12
	<packaging>war</packaging>
13
	<version>1.0.0-SNAPSHOT</version>
14
	<dependencies>
15
		<dependency>
16
			<groupId>eu.dnetlib</groupId>
17
			<artifactId>uoa-search</artifactId>
18
			<version>[2.0.0-SNAPSHOT,)</version>
19
			<exclusions> <!-- already included in tomcat7 -->
20
				<exclusion>
21
					<groupId>javax.servlet</groupId>
22
					<artifactId>javax.servlet-api</artifactId>
23
				</exclusion>
24
				<exclusion>
25
					<groupId>eu.dnetlib</groupId>
26
					<artifactId>cnr-service-common</artifactId>
27
				</exclusion>
28
			</exclusions>
29
		</dependency>
30
<dependency>
31

  
32
			<groupId>eu.dnetlib</groupId>
33
			<artifactId>uoa-clients</artifactId>
34
			<version>[1.1.0, 1.3.0-SNAPSHOT)</version>
35
			<exclusions>
36
				<exclusion>
37
					<groupId>cglib</groupId>
38
					<artifactId>cglib</artifactId>
39
				</exclusion>
40
				<exclusion>
41
					<groupId>eu.dnetlib</groupId>
42
					<artifactId>cnr-service-common</artifactId>
43
				</exclusion>
44
				<exclusion>
45
					<groupId>eu.dnetlib</groupId>
46
					<artifactId>cnr-cql-utils</artifactId>
47
				</exclusion>
48
			</exclusions>
49
		</dependency>
50
		<dependency>
51
			<groupId>eu.dnetlib</groupId>
52
			<artifactId>uoa-hcm</artifactId>
53
			<version>[1.1.0, 1.3.0-SNAPSHOT)</version>
54
		</dependency>
55
		<dependency>
56
			<groupId>eu.dnetlib</groupId>
57
			<artifactId>dnet-runtime</artifactId>
58
			<version>[1.0.0]</version>
59
		</dependency>
60
		<dependency>
61
			<groupId>cglib</groupId>
62
			<artifactId>cglib-nodep</artifactId>
63
			<version>2.2</version>
64
		</dependency>
65
		<dependency>
66
			<groupId>org.apache.cxf</groupId>
67
			<artifactId>cxf-rt-transports-http</artifactId>
68
			<version>${cxf.version}</version>
69
		</dependency>
70
        <dependency>
71
            <groupId>jstl</groupId>
72
            <artifactId>jstl</artifactId>
73
            <version>1.2</version>
74
        </dependency>
75
		<dependency>
76
			<groupId>eu.dnetlib</groupId>
77
			<artifactId>cnr-service-common</artifactId>
78
			<version>1.0.0-hotfix</version>
79
		</dependency>
80

  
81
    </dependencies>
82

  
83
<build>
84
    <finalName>shadowSearch</finalName>
85
</build>
86
</project>

Also available in: Unified diff