Revision 48511
Added by Katerina Iatropoulou almost 6 years ago
modules/dnet-shadow-functionality-services/branches/beta/src/main/resources/META-INF/services/javax.xml.transform.TransformerFactory | ||
---|---|---|
1 |
net.sf.saxon.TransformerFactoryImpl |
modules/dnet-shadow-functionality-services/branches/beta/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/branches/beta/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/branches/beta/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}&page={startPage}&size={count}&format=rss"/> |
|
9 |
</OpenSearchDescription> |
modules/dnet-shadow-functionality-services/branches/beta/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/branches/beta/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/branches/beta/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> <%=trace[i]%></i><br/> |
|
29 |
<% |
|
30 |
} |
|
31 |
exception = exception.getCause(); |
|
32 |
} |
|
33 |
%> |
|
34 |
|
|
35 |
</body> |
|
36 |
</html> |
modules/dnet-shadow-functionality-services/branches/beta/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/branches/beta/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/branches/beta/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 |
<context:component-scan base-package="eu.dnetlib.data.search.web.api" /> |
|
55 |
<import resource="./cxf.xml" /> |
|
56 |
</beans> |
modules/dnet-shadow-functionality-services/branches/beta/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/branches/beta/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/branches/beta/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 |
<servlet> |
|
48 |
<servlet-name>jersey-serlvet</servlet-name> |
|
49 |
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class> |
|
50 |
<init-param> |
|
51 |
<param-name>com.sun.jersey.config.property.packages</param-name> |
|
52 |
<param-value>eu.dnetlib.data.search.web.api</param-value> |
|
53 |
</init-param> |
|
54 |
<load-on-startup>1</load-on-startup> |
|
55 |
</servlet> |
|
56 |
<servlet-mapping> |
|
57 |
<servlet-name>jersey-serlvet</servlet-name> |
|
58 |
<url-pattern>/rest/*</url-pattern> |
|
59 |
</servlet-mapping> |
|
60 |
|
|
61 |
<filter> |
|
62 |
<filter-name>CorsFilter</filter-name> |
|
63 |
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class> |
|
64 |
<init-param> |
|
65 |
<param-name>cors.allowed.origins</param-name> |
|
66 |
<param-value>*</param-value> |
|
67 |
</init-param> |
|
68 |
<init-param> |
|
69 |
<param-name>cors.allowed.methods</param-name> |
|
70 |
<param-value>GET,POST,HEAD,OPTIONS,DELETE</param-value> |
|
71 |
</init-param> |
|
72 |
<init-param> |
|
73 |
<param-name>cors.exposed.headers</param-name> |
|
74 |
<param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials,Access-Control-Allow-Methods</param-value> |
|
75 |
</init-param> |
|
76 |
<init-param> |
|
77 |
<param-name>cors.support.credentials</param-name> |
|
78 |
<param-value>true</param-value> |
|
79 |
</init-param> |
|
80 |
</filter> |
|
81 |
|
|
82 |
<filter-mapping> |
|
83 |
<filter-name>CorsFilter</filter-name> |
|
84 |
<url-pattern>/*</url-pattern> |
|
85 |
</filter-mapping> |
|
86 |
<filter> |
|
87 |
<filter-name>encodingFilter</filter-name> |
|
88 |
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> |
|
89 |
<init-param> |
|
90 |
<param-name>encoding</param-name> |
|
91 |
<param-value>UTF-8</param-value> |
|
92 |
</init-param> |
|
93 |
<init-param> |
|
94 |
<param-name>forceEncoding</param-name> |
|
95 |
<param-value>true</param-value> |
|
96 |
</init-param> |
|
97 |
</filter> |
|
98 |
|
|
99 |
<filter-mapping> |
|
100 |
<filter-name>encodingFilter</filter-name> |
|
101 |
<url-pattern>/*</url-pattern> |
|
102 |
</filter-mapping> |
|
103 |
</web-app> |
modules/dnet-shadow-functionality-services/branches/beta/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>dnet45-container-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>2.0.0-SNAPSHOT</version> |
|
14 |
<scm> |
|
15 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-shadow-functionality-services/trunk</developerConnection> |
|
16 |
</scm> |
|
17 |
<dependencies> |
|
18 |
<dependency> |
|
19 |
<groupId>eu.dnetlib</groupId> |
|
20 |
<artifactId>uoa-search</artifactId> |
|
21 |
<version>[3.0.0-SNAPSHOT, 4.0.0)</version> |
|
22 |
</dependency> |
|
23 |
<dependency> |
|
24 |
<groupId>eu.dnetlib</groupId> |
|
25 |
<artifactId>uoa-clients</artifactId> |
|
26 |
<version>[2.0.0, 3.0.0)</version> |
|
27 |
<exclusions> |
|
28 |
<exclusion> |
|
29 |
<groupId>cglib</groupId> |
|
30 |
<artifactId>cglib</artifactId> |
|
31 |
</exclusion> |
|
32 |
</exclusions> |
|
33 |
</dependency> |
|
34 |
<dependency> |
|
35 |
<groupId>eu.dnetlib</groupId> |
|
36 |
<artifactId>uoa-hcm</artifactId> |
|
37 |
<version>[2.0.0, 3.0.0)</version> |
|
38 |
</dependency> |
|
39 |
<dependency> |
|
40 |
<groupId>eu.dnetlib</groupId> |
|
41 |
<artifactId>dnet-runtime</artifactId> |
|
42 |
<version>[1.0.0,2.0.0)</version> |
|
43 |
</dependency> |
|
44 |
<dependency> |
|
45 |
<groupId>cglib</groupId> |
|
46 |
<artifactId>cglib-nodep</artifactId> |
|
47 |
<version>2.2</version> |
|
48 |
</dependency> |
|
49 |
<dependency> |
|
50 |
<groupId>org.apache.cxf</groupId> |
|
51 |
<artifactId>cxf-rt-transports-http</artifactId> |
|
52 |
<version>${cxf.version}</version> |
|
53 |
</dependency> |
|
54 |
<dependency> |
|
55 |
<groupId>jstl</groupId> |
|
56 |
<artifactId>jstl</artifactId> |
|
57 |
<version>1.2</version> |
|
58 |
</dependency> |
|
59 |
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-nop --> |
|
60 |
<dependency> |
|
61 |
<groupId>org.slf4j</groupId> |
|
62 |
<artifactId>slf4j-nop</artifactId> |
|
63 |
<version>1.7.21</version> |
|
64 |
</dependency> |
|
65 |
<dependency> |
|
66 |
<groupId>org.slf4j</groupId> |
|
67 |
<artifactId>slf4j-log4j12</artifactId> |
|
68 |
<version>1.7.5</version> |
|
69 |
</dependency> |
|
70 |
<dependency> |
|
71 |
<groupId>eu.dnetlib</groupId> |
|
72 |
<artifactId>cnr-service-common</artifactId> |
|
73 |
<version>[2.1.6-SNAPSHOT, 3.0.0)</version> |
|
74 |
<exclusions> |
|
75 |
<exclusion> |
|
76 |
<groupId>xml-apis</groupId> |
|
77 |
<artifactId>xml-apis</artifactId> |
|
78 |
</exclusion> |
|
79 |
</exclusions> |
|
80 |
</dependency> |
|
81 |
|
|
82 |
<!-- https://mvnrepository.com/artifact/xml-apis/xml-apis --> |
|
83 |
<dependency> |
|
84 |
<groupId>xml-apis</groupId> |
|
85 |
<artifactId>xml-apis</artifactId> |
|
86 |
<version>1.4.01</version> |
|
87 |
</dependency> |
|
88 |
|
|
89 |
</dependencies> |
|
90 |
|
|
91 |
<build> |
|
92 |
<finalName>shadowSearch</finalName> |
|
93 |
</build> |
|
94 |
</project> |
Also available in: Unified diff
Creating branch for beta.