websolr-rails 1.4.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/.gitignore +1 -10
  2. data/LICENSE +17 -16
  3. data/README.rdoc +16 -62
  4. data/Rakefile +2 -60
  5. data/VERSION +1 -1
  6. data/lib/websolr-rails.rb +54 -1
  7. data/lib/websolr.rb +2 -1
  8. metadata +12 -215
  9. data/CHANGELOG +0 -8
  10. data/TESTING_THE_PLUGIN +0 -25
  11. data/bin/websolr +0 -10
  12. data/config/solr.yml +0 -15
  13. data/config/solr_environment.rb +0 -22
  14. data/generate_rdoc.sh +0 -13
  15. data/lib/acts_as_solr.rb +0 -65
  16. data/lib/acts_methods.rb +0 -281
  17. data/lib/class_methods.rb +0 -243
  18. data/lib/common_methods.rb +0 -89
  19. data/lib/deprecation.rb +0 -61
  20. data/lib/instance_methods.rb +0 -181
  21. data/lib/lazy_document.rb +0 -18
  22. data/lib/parser_methods.rb +0 -230
  23. data/lib/search_results.rb +0 -72
  24. data/lib/solr.rb +0 -21
  25. data/lib/solr/connection.rb +0 -190
  26. data/lib/solr/document.rb +0 -78
  27. data/lib/solr/exception.rb +0 -13
  28. data/lib/solr/field.rb +0 -39
  29. data/lib/solr/importer.rb +0 -19
  30. data/lib/solr/importer/array_mapper.rb +0 -26
  31. data/lib/solr/importer/delimited_file_source.rb +0 -38
  32. data/lib/solr/importer/hpricot_mapper.rb +0 -27
  33. data/lib/solr/importer/mapper.rb +0 -51
  34. data/lib/solr/importer/solr_source.rb +0 -43
  35. data/lib/solr/importer/xpath_mapper.rb +0 -35
  36. data/lib/solr/indexer.rb +0 -52
  37. data/lib/solr/request.rb +0 -26
  38. data/lib/solr/request/add_document.rb +0 -63
  39. data/lib/solr/request/base.rb +0 -36
  40. data/lib/solr/request/commit.rb +0 -31
  41. data/lib/solr/request/delete.rb +0 -50
  42. data/lib/solr/request/dismax.rb +0 -46
  43. data/lib/solr/request/index_info.rb +0 -22
  44. data/lib/solr/request/modify_document.rb +0 -51
  45. data/lib/solr/request/optimize.rb +0 -21
  46. data/lib/solr/request/ping.rb +0 -36
  47. data/lib/solr/request/select.rb +0 -56
  48. data/lib/solr/request/spellcheck.rb +0 -30
  49. data/lib/solr/request/standard.rb +0 -402
  50. data/lib/solr/request/update.rb +0 -23
  51. data/lib/solr/response.rb +0 -27
  52. data/lib/solr/response/add_document.rb +0 -17
  53. data/lib/solr/response/base.rb +0 -42
  54. data/lib/solr/response/commit.rb +0 -17
  55. data/lib/solr/response/delete.rb +0 -13
  56. data/lib/solr/response/dismax.rb +0 -8
  57. data/lib/solr/response/index_info.rb +0 -26
  58. data/lib/solr/response/modify_document.rb +0 -17
  59. data/lib/solr/response/optimize.rb +0 -14
  60. data/lib/solr/response/ping.rb +0 -28
  61. data/lib/solr/response/ruby.rb +0 -42
  62. data/lib/solr/response/select.rb +0 -17
  63. data/lib/solr/response/spellcheck.rb +0 -20
  64. data/lib/solr/response/standard.rb +0 -64
  65. data/lib/solr/response/xml.rb +0 -42
  66. data/lib/solr/solrtasks.rb +0 -27
  67. data/lib/solr/util.rb +0 -32
  68. data/lib/solr/xml.rb +0 -44
  69. data/lib/solr_fixtures.rb +0 -13
  70. data/lib/tasks/database.rake +0 -18
  71. data/lib/tasks/solr.rake +0 -94
  72. data/lib/tasks/test.rake +0 -7
  73. data/lib/websolr_controller.rb +0 -233
  74. data/lib/websolr_option_parser.rb +0 -61
  75. data/lib/websolr_rails.rb +0 -1
  76. data/lib/websolr_rails/tasks.rb +0 -4
  77. data/lib/will_paginate_support.rb +0 -12
  78. data/solr/CHANGES.txt +0 -1207
  79. data/solr/LICENSE.txt +0 -712
  80. data/solr/NOTICE.txt +0 -90
  81. data/solr/etc/jetty.xml +0 -205
  82. data/solr/etc/webdefault.xml +0 -379
  83. data/solr/lib/easymock.jar +0 -0
  84. data/solr/lib/jetty-6.1.3.jar +0 -0
  85. data/solr/lib/jetty-util-6.1.3.jar +0 -0
  86. data/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
  87. data/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
  88. data/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
  89. data/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
  90. data/solr/lib/servlet-api-2.4.jar +0 -0
  91. data/solr/lib/servlet-api-2.5-6.1.3.jar +0 -0
  92. data/solr/lib/xpp3-1.1.3.4.O.jar +0 -0
  93. data/solr/logs/.empty-dir-for-git +0 -0
  94. data/solr/solr/README.txt +0 -52
  95. data/solr/solr/bin/abc +0 -176
  96. data/solr/solr/bin/abo +0 -176
  97. data/solr/solr/bin/backup +0 -108
  98. data/solr/solr/bin/backupcleaner +0 -142
  99. data/solr/solr/bin/commit +0 -128
  100. data/solr/solr/bin/optimize +0 -129
  101. data/solr/solr/bin/readercycle +0 -129
  102. data/solr/solr/bin/rsyncd-disable +0 -77
  103. data/solr/solr/bin/rsyncd-enable +0 -76
  104. data/solr/solr/bin/rsyncd-start +0 -145
  105. data/solr/solr/bin/rsyncd-stop +0 -105
  106. data/solr/solr/bin/scripts-util +0 -83
  107. data/solr/solr/bin/snapcleaner +0 -148
  108. data/solr/solr/bin/snapinstaller +0 -168
  109. data/solr/solr/bin/snappuller +0 -248
  110. data/solr/solr/bin/snappuller-disable +0 -77
  111. data/solr/solr/bin/snappuller-enable +0 -77
  112. data/solr/solr/bin/snapshooter +0 -109
  113. data/solr/solr/conf/admin-extra.html +0 -31
  114. data/solr/solr/conf/protwords.txt +0 -21
  115. data/solr/solr/conf/schema.xml +0 -126
  116. data/solr/solr/conf/scripts.conf +0 -24
  117. data/solr/solr/conf/solrconfig.xml +0 -458
  118. data/solr/solr/conf/stopwords.txt +0 -57
  119. data/solr/solr/conf/synonyms.txt +0 -31
  120. data/solr/solr/conf/xslt/example.xsl +0 -132
  121. data/solr/solr/conf/xslt/example_atom.xsl +0 -63
  122. data/solr/solr/conf/xslt/example_rss.xsl +0 -62
  123. data/solr/start.jar +0 -0
  124. data/solr/tmp/.empty-dir-for-git +0 -0
  125. data/solr/webapps/solr.war +0 -0
  126. data/test/config/solr.yml +0 -2
  127. data/test/db/connections/mysql/connection.rb +0 -10
  128. data/test/db/connections/sqlite/connection.rb +0 -8
  129. data/test/db/migrate/001_create_books.rb +0 -15
  130. data/test/db/migrate/002_create_movies.rb +0 -12
  131. data/test/db/migrate/003_create_categories.rb +0 -11
  132. data/test/db/migrate/004_create_electronics.rb +0 -16
  133. data/test/db/migrate/005_create_authors.rb +0 -12
  134. data/test/db/migrate/006_create_postings.rb +0 -9
  135. data/test/db/migrate/007_create_posts.rb +0 -13
  136. data/test/db/migrate/008_create_gadgets.rb +0 -11
  137. data/test/fixtures/authors.yml +0 -9
  138. data/test/fixtures/books.yml +0 -13
  139. data/test/fixtures/categories.yml +0 -7
  140. data/test/fixtures/db_definitions/mysql.sql +0 -41
  141. data/test/fixtures/electronics.yml +0 -49
  142. data/test/fixtures/movies.yml +0 -9
  143. data/test/fixtures/postings.yml +0 -10
  144. data/test/functional/acts_as_solr_test.rb +0 -413
  145. data/test/functional/association_indexing_test.rb +0 -37
  146. data/test/functional/faceted_search_test.rb +0 -163
  147. data/test/functional/multi_solr_search_test.rb +0 -51
  148. data/test/models/author.rb +0 -10
  149. data/test/models/book.rb +0 -10
  150. data/test/models/category.rb +0 -8
  151. data/test/models/electronic.rb +0 -21
  152. data/test/models/gadget.rb +0 -9
  153. data/test/models/movie.rb +0 -17
  154. data/test/models/novel.rb +0 -2
  155. data/test/models/post.rb +0 -3
  156. data/test/models/posting.rb +0 -11
  157. data/test/test_helper.rb +0 -51
  158. data/test/unit/acts_methods_shoulda.rb +0 -70
  159. data/test/unit/class_methods_shoulda.rb +0 -88
  160. data/test/unit/common_methods_shoulda.rb +0 -112
  161. data/test/unit/instance_methods_shoulda.rb +0 -326
  162. data/test/unit/lazy_document_shoulda.rb +0 -35
  163. data/test/unit/parser_instance.rb +0 -19
  164. data/test/unit/parser_methods_shoulda.rb +0 -278
  165. data/test/unit/solr_instance.rb +0 -46
  166. data/test/unit/test_helper.rb +0 -14
  167. data/websolr-rails.gemspec +0 -243
data/solr/NOTICE.txt DELETED
@@ -1,90 +0,0 @@
1
- ==============================================================
2
- Apache Solr
3
- Copyright 2006-2008 The Apache Software Foundation
4
- ==============================================================
5
-
6
- This product includes software developed by
7
- The Apache Software Foundation (http://www.apache.org/).
8
-
9
- Includes software from other Apache Software Foundation projects,
10
- including, but not limited to:
11
- - Apache Lucene Java
12
- - Apache Tomcat (lib/servlet-api-2.4.jar)
13
- - Apache Commons
14
- - Apache Geronimo (stax API jar)
15
-
16
- This product includes tests written with EasyMock Copyright 2001-2007
17
- Tammo Freese (http://www.easymock.org/)
18
-
19
- This product includes the JQuery JavaScript library created by John Resig.
20
- Copyright (c) 2008 John Resig, http://jquery.com/
21
-
22
- This product includes the stax-utils jar: https://stax-utils.dev.java.net/
23
- Copyright (c) 2004, Christian Niles, unit12.net
24
- Copyright (c) 2004, Sun Microsystems, Inc.
25
- Copyright (c) 2006, John Kristian
26
- License: The BSD License (http://www.opensource.org/licenses/bsd-license.php)
27
-
28
- This product includes a JUnit jar: http://junit.sourceforge.net/
29
- License: Common Public License - v 1.0 (http://junit.sourceforge.net/cpl-v10.html)
30
-
31
- =========================================================================
32
- == Apache Lucene Notice ==
33
- =========================================================================
34
- The snowball stemmers in
35
- contrib/snowball/src/java/net/sf/snowball
36
- were developed by Martin Porter and Richard Boulton.
37
- The full snowball package is available from
38
- http://snowball.tartarus.org/
39
- ---
40
-
41
- This product includes/uses software, Woodstox (http://woodstox.codehaus.org),
42
- developed by Codehaus (http://www.codehaus.org/)
43
- License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
44
- =========================================================================
45
- == Woodstox Notice ==
46
- =========================================================================
47
- This product currently only contains code developed by authors
48
- of specific components, as identified by the source code files.
49
-
50
- Since product implements StAX API, it has dependencies to StAX API
51
- classes.
52
-
53
- For additional credits (generally to people who reported problems)
54
- see CREDITS file.
55
- ---
56
-
57
- This product includes software developed by Mort Bay Consulting
58
- (specifically, Jetty 6.1.3, the bundled servlet container in example)
59
- The jboss integration module is not included.
60
- =========================================================================
61
- == Jetty Notice ==
62
- =========================================================================
63
- ==============================================================
64
- Jetty Web Container
65
- Copyright 1995-2006 Mort Bay Consulting Pty Ltd
66
- ==============================================================
67
-
68
- This product includes some software developed at The Apache Software
69
- Foundation (http://www.apache.org/).
70
-
71
- The javax.servlet package used by Jetty is copyright
72
- Sun Microsystems, Inc and Apache Software Foundation. It is
73
- distributed under the Common Development and Distribution License.
74
- You can obtain a copy of the license at
75
- https://glassfish.dev.java.net/public/CDDLv1.0.html.
76
-
77
- The UnixCrypt.java code ~Implements the one way cryptography used by
78
- Unix systems for simple password protection. Copyright 1996 Aki Yoshida,
79
- modified April 2001 by Iris Van den Broeke, Daniel Deville.
80
-
81
- The default JSP implementation is provided by the Glassfish JSP engine
82
- from project Glassfish http://glassfish.dev.java.net. Copyright 2005
83
- Sun Microsystems, Inc. and portions Copyright Apache Software Foundation.
84
-
85
- Some portions of the code are Copyright:
86
- 2006 Tim Vernum
87
- 1999 Jason Gilbert.
88
-
89
- The jboss integration module contains some LGPL code.
90
- ---
data/solr/etc/jetty.xml DELETED
@@ -1,205 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
3
-
4
- <!-- =============================================================== -->
5
- <!-- Configure the Jetty Server -->
6
- <!-- -->
7
- <!-- Documentation of this file format can be found at: -->
8
- <!-- http://docs.codehaus.org/display/JETTY/jetty.xml -->
9
- <!-- -->
10
- <!-- =============================================================== -->
11
-
12
-
13
- <Configure id="Server" class="org.mortbay.jetty.Server">
14
-
15
- <!-- =========================================================== -->
16
- <!-- Server Thread Pool -->
17
- <!-- =========================================================== -->
18
- <Set name="ThreadPool">
19
- <!-- Default bounded blocking threadpool
20
- -->
21
- <New class="org.mortbay.thread.BoundedThreadPool">
22
- <Set name="minThreads">10</Set>
23
- <Set name="lowThreads">50</Set>
24
- <Set name="maxThreads">250</Set>
25
- </New>
26
-
27
- <!-- Optional Java 5 bounded threadpool with job queue
28
- <New class="org.mortbay.thread.concurrent.ThreadPool">
29
- <Arg type="int">0</Arg>
30
- <Set name="corePoolSize">10</Set>
31
- <Set name="maximumPoolSize">250</Set>
32
- </New>
33
- -->
34
- </Set>
35
-
36
-
37
-
38
- <!-- =========================================================== -->
39
- <!-- Set connectors -->
40
- <!-- =========================================================== -->
41
- <!-- One of each type! -->
42
- <!-- =========================================================== -->
43
-
44
- <!-- Use this connector for many frequently idle connections
45
- and for threadless continuations. -->
46
- <!-- <Call name="addConnector">
47
- <Arg>
48
- <New class="org.mortbay.jetty.nio.SelectChannelConnector">
49
- <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
50
- <Set name="maxIdleTime">30000</Set>
51
- <Set name="Acceptors">2</Set>
52
- <Set name="confidentialPort">8443</Set>
53
- </New>
54
- </Arg>
55
- </Call> -->
56
-
57
-
58
- <!-- Use this connector if NIO is not available. -->
59
- <!-- This connector is currently being used for Solr because the
60
- nio.SelectChannelConnector showed poor performance under WindowsXP
61
- from a single client with non-persistent connections (35s vs ~3min)
62
- to complete 10,000 requests)
63
- -->
64
- <Call name="addConnector">
65
- <Arg>
66
- <New class="org.mortbay.jetty.bio.SocketConnector">
67
- <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
68
- <Set name="maxIdleTime">50000</Set>
69
- <Set name="lowResourceMaxIdleTime">1500</Set>
70
- </New>
71
- </Arg>
72
- </Call>
73
-
74
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
75
- <!-- To add a HTTPS SSL listener -->
76
- <!-- see jetty-ssl.xml to add an ssl connector. use -->
77
- <!-- java -jar start.jar etc/jetty.xml etc/jetty-ssl.xml -->
78
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
79
-
80
- <!-- =========================================================== -->
81
- <!-- Set up global session ID manager -->
82
- <!-- =========================================================== -->
83
- <!--
84
- <Set name="sessionIdManager">
85
- <New class="org.mortbay.jetty.servlet.HashSessionIdManager">
86
- <Set name="workerName">node1</Set>
87
- </New>
88
- </Set>
89
- -->
90
-
91
- <!-- =========================================================== -->
92
- <!-- Set handler Collection Structure -->
93
- <!-- =========================================================== -->
94
- <Set name="handler">
95
- <New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection">
96
- <Set name="handlers">
97
- <Array type="org.mortbay.jetty.Handler">
98
- <Item>
99
- <New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection"/>
100
- </Item>
101
- <Item>
102
- <New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler"/>
103
- </Item>
104
- <Item>
105
- <New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler"/>
106
- </Item>
107
- </Array>
108
- </Set>
109
- </New>
110
- </Set>
111
-
112
- <!-- =========================================================== -->
113
- <!-- Configure the context deployer -->
114
- <!-- A context deployer will deploy contexts described in -->
115
- <!-- configuration files discovered in a directory. -->
116
- <!-- The configuration directory can be scanned for hot -->
117
- <!-- deployments at the configured scanInterval. -->
118
- <!-- -->
119
- <!-- This deployer is configured to deploy contexts configured -->
120
- <!-- in the $JETTY_HOME/contexts directory -->
121
- <!-- -->
122
- <!-- =========================================================== -->
123
- <Call name="addLifeCycle">
124
- <Arg>
125
- <New class="org.mortbay.jetty.deployer.ContextDeployer">
126
- <Set name="contexts"><Ref id="Contexts"/></Set>
127
- <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
128
- <Set name="scanInterval">1</Set>
129
- </New>
130
- </Arg>
131
- </Call>
132
-
133
- <!-- =========================================================== -->
134
- <!-- Configure the webapp deployer. -->
135
- <!-- A webapp deployer will deploy standard webapps discovered -->
136
- <!-- in a directory at startup, without the need for additional -->
137
- <!-- configuration files. It does not support hot deploy or -->
138
- <!-- non standard contexts (see ContextDeployer above). -->
139
- <!-- -->
140
- <!-- This deployer is configured to deploy webapps from the -->
141
- <!-- $JETTY_HOME/webapps directory -->
142
- <!-- -->
143
- <!-- Normally only one type of deployer need be used. -->
144
- <!-- -->
145
- <!-- =========================================================== -->
146
- <Call name="addLifeCycle">
147
- <Arg>
148
- <New class="org.mortbay.jetty.deployer.WebAppDeployer">
149
- <Set name="contexts"><Ref id="Contexts"/></Set>
150
- <Set name="webAppDir"><SystemProperty name="jetty.home" default="."/>/webapps</Set>
151
- <Set name="parentLoaderPriority">false</Set>
152
- <Set name="extract">true</Set>
153
- <Set name="allowDuplicates">false</Set>
154
- <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
155
- </New>
156
- </Arg>
157
- </Call>
158
-
159
- <!-- =========================================================== -->
160
- <!-- Configure Authentication Realms -->
161
- <!-- Realms may be configured for the entire server here, or -->
162
- <!-- they can be configured for a specific web app in a context -->
163
- <!-- configuration (see $(jetty.home)/contexts/test.xml for an -->
164
- <!-- example). -->
165
- <!-- =========================================================== -->
166
- <Set name="UserRealms">
167
- <Array type="org.mortbay.jetty.security.UserRealm">
168
- <!--
169
- <Item>
170
- <New class="org.mortbay.jetty.security.HashUserRealm">
171
- <Set name="name">Test Realm</Set>
172
- <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
173
- </New>
174
- </Item>
175
- -->
176
- </Array>
177
- </Set>
178
-
179
- <!-- =========================================================== -->
180
- <!-- Configure Request Log -->
181
- <!-- Request logs may be configured for the entire server here, -->
182
- <!-- or they can be configured for a specific web app in a -->
183
- <!-- contexts configuration (see $(jetty.home)/contexts/test.xml -->
184
- <!-- for an example). -->
185
- <!-- =========================================================== -->
186
- <Ref id="RequestLog">
187
- <Set name="requestLog">
188
- <New id="RequestLogImpl" class="org.mortbay.jetty.NCSARequestLog">
189
- <Arg><SystemProperty name="jetty.logs" default="./logs"/>/jetty.request.log</Arg>
190
- <Set name="append">true</Set>
191
- <Set name="extended">false</Set>
192
- <Set name="LogTimeZone">GMT</Set>
193
- </New>
194
- </Set>
195
- </Ref>
196
-
197
- <!-- =========================================================== -->
198
- <!-- extra options -->
199
- <!-- =========================================================== -->
200
- <Set name="stopAtShutdown">true</Set>
201
- <!-- ensure/prevent Server: header being sent to browsers -->
202
- <Set name="sendServerVersion">true</Set>
203
-
204
- </Configure>
205
-
@@ -1,379 +0,0 @@
1
- <?xml version="1.0" encoding="ISO-8859-1"?>
2
-
3
- <!-- ===================================================================== -->
4
- <!-- This file contains the default descriptor for web applications. -->
5
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
6
- <!-- The intent of this descriptor is to include jetty specific or common -->
7
- <!-- configuration for all webapps. If a context has a webdefault.xml -->
8
- <!-- descriptor, it is applied before the contexts own web.xml file -->
9
- <!-- -->
10
- <!-- A context may be assigned a default descriptor by: -->
11
- <!-- + Calling WebApplicationContext.setDefaultsDescriptor -->
12
- <!-- + Passed an arg to addWebApplications -->
13
- <!-- -->
14
- <!-- This file is used both as the resource within the jetty.jar (which is -->
15
- <!-- used as the default if no explicit defaults descriptor is set) and it -->
16
- <!-- is copied to the etc directory of the Jetty distro and explicitly -->
17
- <!-- by the jetty.xml file. -->
18
- <!-- -->
19
- <!-- ===================================================================== -->
20
- <web-app
21
- xmlns="http://java.sun.com/xml/ns/javaee"
22
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
24
- metadata-complete="true"
25
- version="2.5">
26
-
27
- <description>
28
- Default web.xml file.
29
- This file is applied to a Web application before it's own WEB_INF/web.xml file
30
- </description>
31
-
32
-
33
- <!-- ==================================================================== -->
34
- <!-- Context params to control Session Cookies -->
35
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
36
- <!-- UNCOMMENT TO ACTIVATE
37
- <context-param>
38
- <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name>
39
- <param-value>127.0.0.1</param-value>
40
- </context-param>
41
-
42
- <context-param>
43
- <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
44
- <param-value>/</param-value>
45
- </context-param>
46
-
47
- <context-param>
48
- <param-name>org.mortbay.jetty.servlet.MaxAge</param-name>
49
- <param-value>-1</param-value>
50
- </context-param>
51
- -->
52
-
53
- <context-param>
54
- <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>
55
- <param-value>start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar|</param-value>
56
- </context-param>
57
-
58
-
59
-
60
- <!-- ==================================================================== -->
61
- <!-- The default servlet. -->
62
- <!-- This servlet, normally mapped to /, provides the handling for static -->
63
- <!-- content, OPTIONS and TRACE methods for the context. -->
64
- <!-- The following initParameters are supported: -->
65
- <!-- -->
66
- <!-- acceptRanges If true, range requests and responses are -->
67
- <!-- supported -->
68
- <!-- -->
69
- <!-- dirAllowed If true, directory listings are returned if no -->
70
- <!-- welcome file is found. Else 403 Forbidden. -->
71
- <!-- -->
72
- <!-- redirectWelcome If true, redirect welcome file requests -->
73
- <!-- else use request dispatcher forwards -->
74
- <!-- -->
75
- <!-- gzip If set to true, then static content will be served-->
76
- <!-- as gzip content encoded if a matching resource is -->
77
- <!-- found ending with ".gz" -->
78
- <!-- -->
79
- <!-- resoureBase Can be set to replace the context resource base -->
80
- <!-- -->
81
- <!-- relativeResourceBase -->
82
- <!-- Set with a pathname relative to the base of the -->
83
- <!-- servlet context root. Useful for only serving -->
84
- <!-- static content from only specific subdirectories. -->
85
- <!-- -->
86
- <!-- useFileMappedBuffer -->
87
- <!-- If set to true (the default), a memory mapped -->
88
- <!-- file buffer will be used to serve static content -->
89
- <!-- when using an NIO connector. Setting this value -->
90
- <!-- to false means that a direct buffer will be used -->
91
- <!-- instead. If you are having trouble with Windows -->
92
- <!-- file locking, set this to false. -->
93
- <!-- -->
94
- <!-- cacheControl If set, all static content will have this value -->
95
- <!-- set as the cache-control header. -->
96
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
97
- <servlet>
98
- <servlet-name>default</servlet-name>
99
- <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
100
- <init-param>
101
- <param-name>acceptRanges</param-name>
102
- <param-value>true</param-value>
103
- </init-param>
104
- <init-param>
105
- <param-name>dirAllowed</param-name>
106
- <param-value>true</param-value>
107
- </init-param>
108
- <init-param>
109
- <param-name>redirectWelcome</param-name>
110
- <param-value>false</param-value>
111
- </init-param>
112
- <init-param>
113
- <param-name>maxCacheSize</param-name>
114
- <param-value>2000000</param-value>
115
- </init-param>
116
- <init-param>
117
- <param-name>maxCachedFileSize</param-name>
118
- <param-value>254000</param-value>
119
- </init-param>
120
- <init-param>
121
- <param-name>maxCachedFiles</param-name>
122
- <param-value>1000</param-value>
123
- </init-param>
124
- <init-param>
125
- <param-name>gzip</param-name>
126
- <param-value>false</param-value>
127
- </init-param>
128
- <init-param>
129
- <param-name>useFileMappedBuffer</param-name>
130
- <param-value>false</param-value>
131
- </init-param>
132
- <!--
133
- <init-param>
134
- <param-name>cacheControl</param-name>
135
- <param-value>max-age=3600,public</param-value>
136
- </init-param>
137
- -->
138
- <load-on-startup>0</load-on-startup>
139
- </servlet>
140
-
141
- <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
142
-
143
-
144
- <!-- ==================================================================== -->
145
- <!-- JSP Servlet -->
146
- <!-- This is the jasper JSP servlet from the jakarta project -->
147
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
148
- <!-- The JSP page compiler and execution servlet, which is the mechanism -->
149
- <!-- used by Glassfish to support JSP pages. Traditionally, this servlet -->
150
- <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
151
- <!-- following initialization parameters (default values are in square -->
152
- <!-- brackets): -->
153
- <!-- -->
154
- <!-- checkInterval If development is false and reloading is true, -->
155
- <!-- background compiles are enabled. checkInterval -->
156
- <!-- is the time in seconds between checks to see -->
157
- <!-- if a JSP page needs to be recompiled. [300] -->
158
- <!-- -->
159
- <!-- compiler Which compiler Ant should use to compile JSP -->
160
- <!-- pages. See the Ant documenation for more -->
161
- <!-- information. [javac] -->
162
- <!-- -->
163
- <!-- classdebuginfo Should the class file be compiled with -->
164
- <!-- debugging information? [true] -->
165
- <!-- -->
166
- <!-- classpath What class path should I use while compiling -->
167
- <!-- generated servlets? [Created dynamically -->
168
- <!-- based on the current web application] -->
169
- <!-- Set to ? to make the container explicitly set -->
170
- <!-- this parameter. -->
171
- <!-- -->
172
- <!-- development Is Jasper used in development mode (will check -->
173
- <!-- for JSP modification on every access)? [true] -->
174
- <!-- -->
175
- <!-- enablePooling Determines whether tag handler pooling is -->
176
- <!-- enabled [true] -->
177
- <!-- -->
178
- <!-- fork Tell Ant to fork compiles of JSP pages so that -->
179
- <!-- a separate JVM is used for JSP page compiles -->
180
- <!-- from the one Tomcat is running in. [true] -->
181
- <!-- -->
182
- <!-- ieClassId The class-id value to be sent to Internet -->
183
- <!-- Explorer when using <jsp:plugin> tags. -->
184
- <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
185
- <!-- -->
186
- <!-- javaEncoding Java file encoding to use for generating java -->
187
- <!-- source files. [UTF-8] -->
188
- <!-- -->
189
- <!-- keepgenerated Should we keep the generated Java source code -->
190
- <!-- for each page instead of deleting it? [true] -->
191
- <!-- -->
192
- <!-- logVerbosityLevel The level of detailed messages to be produced -->
193
- <!-- by this servlet. Increasing levels cause the -->
194
- <!-- generation of more messages. Valid values are -->
195
- <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
196
- <!-- [WARNING] -->
197
- <!-- -->
198
- <!-- mappedfile Should we generate static content with one -->
199
- <!-- print statement per input line, to ease -->
200
- <!-- debugging? [false] -->
201
- <!-- -->
202
- <!-- -->
203
- <!-- reloading Should Jasper check for modified JSPs? [true] -->
204
- <!-- -->
205
- <!-- suppressSmap Should the generation of SMAP info for JSR45 -->
206
- <!-- debugging be suppressed? [false] -->
207
- <!-- -->
208
- <!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
209
- <!-- dumped to a file? [false] -->
210
- <!-- False if suppressSmap is true -->
211
- <!-- -->
212
- <!-- scratchdir What scratch directory should we use when -->
213
- <!-- compiling JSP pages? [default work directory -->
214
- <!-- for the current web application] -->
215
- <!-- -->
216
- <!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
217
- <!-- -->
218
- <!-- xpoweredBy Determines whether X-Powered-By response -->
219
- <!-- header is added by generated servlet [false] -->
220
- <!-- -->
221
- <!-- If you wish to use Jikes to compile JSP pages: -->
222
- <!-- Set the init parameter "compiler" to "jikes". Define -->
223
- <!-- the property "-Dbuild.compiler.emacs=true" when starting Jetty -->
224
- <!-- to cause Jikes to emit error messages in a format compatible with -->
225
- <!-- Jasper. -->
226
- <!-- If you get an error reporting that jikes can't use UTF-8 encoding, -->
227
- <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
228
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
229
- <servlet id="jsp">
230
- <servlet-name>jsp</servlet-name>
231
- <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
232
- <init-param>
233
- <param-name>logVerbosityLevel</param-name>
234
- <param-value>DEBUG</param-value>
235
- </init-param>
236
- <init-param>
237
- <param-name>fork</param-name>
238
- <param-value>false</param-value>
239
- </init-param>
240
- <init-param>
241
- <param-name>xpoweredBy</param-name>
242
- <param-value>false</param-value>
243
- </init-param>
244
- <!--
245
- <init-param>
246
- <param-name>classpath</param-name>
247
- <param-value>?</param-value>
248
- </init-param>
249
- -->
250
- <load-on-startup>0</load-on-startup>
251
- </servlet>
252
-
253
- <servlet-mapping>
254
- <servlet-name>jsp</servlet-name>
255
- <url-pattern>*.jsp</url-pattern>
256
- <url-pattern>*.jspf</url-pattern>
257
- <url-pattern>*.jspx</url-pattern>
258
- <url-pattern>*.xsp</url-pattern>
259
- <url-pattern>*.JSP</url-pattern>
260
- <url-pattern>*.JSPF</url-pattern>
261
- <url-pattern>*.JSPX</url-pattern>
262
- <url-pattern>*.XSP</url-pattern>
263
- </servlet-mapping>
264
-
265
- <!-- ==================================================================== -->
266
- <!-- Dynamic Servlet Invoker. -->
267
- <!-- This servlet invokes anonymous servlets that have not been defined -->
268
- <!-- in the web.xml or by other means. The first element of the pathInfo -->
269
- <!-- of a request passed to the envoker is treated as a servlet name for -->
270
- <!-- an existing servlet, or as a class name of a new servlet. -->
271
- <!-- This servlet is normally mapped to /servlet/* -->
272
- <!-- This servlet support the following initParams: -->
273
- <!-- -->
274
- <!-- nonContextServlets If false, the invoker can only load -->
275
- <!-- servlets from the contexts classloader. -->
276
- <!-- This is false by default and setting this -->
277
- <!-- to true may have security implications. -->
278
- <!-- -->
279
- <!-- verbose If true, log dynamic loads -->
280
- <!-- -->
281
- <!-- * All other parameters are copied to the -->
282
- <!-- each dynamic servlet as init parameters -->
283
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
284
- <!-- Uncomment for dynamic invocation
285
- <servlet>
286
- <servlet-name>invoker</servlet-name>
287
- <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
288
- <init-param>
289
- <param-name>verbose</param-name>
290
- <param-value>false</param-value>
291
- </init-param>
292
- <init-param>
293
- <param-name>nonContextServlets</param-name>
294
- <param-value>false</param-value>
295
- </init-param>
296
- <init-param>
297
- <param-name>dynamicParam</param-name>
298
- <param-value>anyValue</param-value>
299
- </init-param>
300
- <load-on-startup>0</load-on-startup>
301
- </servlet>
302
-
303
- <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping>
304
- -->
305
-
306
-
307
-
308
- <!-- ==================================================================== -->
309
- <session-config>
310
- <session-timeout>30</session-timeout>
311
- </session-config>
312
-
313
- <!-- ==================================================================== -->
314
- <!-- Default MIME mappings -->
315
- <!-- The default MIME mappings are provided by the mime.properties -->
316
- <!-- resource in the org.mortbay.jetty.jar file. Additional or modified -->
317
- <!-- mappings may be specified here -->
318
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
319
- <!-- UNCOMMENT TO ACTIVATE
320
- <mime-mapping>
321
- <extension>mysuffix</extension>
322
- <mime-type>mymime/type</mime-type>
323
- </mime-mapping>
324
- -->
325
-
326
- <!-- ==================================================================== -->
327
- <welcome-file-list>
328
- <welcome-file>index.html</welcome-file>
329
- <welcome-file>index.htm</welcome-file>
330
- <welcome-file>index.jsp</welcome-file>
331
- </welcome-file-list>
332
-
333
- <!-- ==================================================================== -->
334
- <locale-encoding-mapping-list>
335
- <locale-encoding-mapping><locale>ar</locale><encoding>ISO-8859-6</encoding></locale-encoding-mapping>
336
- <locale-encoding-mapping><locale>be</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
337
- <locale-encoding-mapping><locale>bg</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
338
- <locale-encoding-mapping><locale>ca</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
339
- <locale-encoding-mapping><locale>cs</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
340
- <locale-encoding-mapping><locale>da</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
341
- <locale-encoding-mapping><locale>de</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
342
- <locale-encoding-mapping><locale>el</locale><encoding>ISO-8859-7</encoding></locale-encoding-mapping>
343
- <locale-encoding-mapping><locale>en</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
344
- <locale-encoding-mapping><locale>es</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
345
- <locale-encoding-mapping><locale>et</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
346
- <locale-encoding-mapping><locale>fi</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
347
- <locale-encoding-mapping><locale>fr</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
348
- <locale-encoding-mapping><locale>hr</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
349
- <locale-encoding-mapping><locale>hu</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
350
- <locale-encoding-mapping><locale>is</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
351
- <locale-encoding-mapping><locale>it</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
352
- <locale-encoding-mapping><locale>iw</locale><encoding>ISO-8859-8</encoding></locale-encoding-mapping>
353
- <locale-encoding-mapping><locale>ja</locale><encoding>Shift_JIS</encoding></locale-encoding-mapping>
354
- <locale-encoding-mapping><locale>ko</locale><encoding>EUC-KR</encoding></locale-encoding-mapping>
355
- <locale-encoding-mapping><locale>lt</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
356
- <locale-encoding-mapping><locale>lv</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
357
- <locale-encoding-mapping><locale>mk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
358
- <locale-encoding-mapping><locale>nl</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
359
- <locale-encoding-mapping><locale>no</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
360
- <locale-encoding-mapping><locale>pl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
361
- <locale-encoding-mapping><locale>pt</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
362
- <locale-encoding-mapping><locale>ro</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
363
- <locale-encoding-mapping><locale>ru</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
364
- <locale-encoding-mapping><locale>sh</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
365
- <locale-encoding-mapping><locale>sk</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
366
- <locale-encoding-mapping><locale>sl</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
367
- <locale-encoding-mapping><locale>sq</locale><encoding>ISO-8859-2</encoding></locale-encoding-mapping>
368
- <locale-encoding-mapping><locale>sr</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
369
- <locale-encoding-mapping><locale>sv</locale><encoding>ISO-8859-1</encoding></locale-encoding-mapping>
370
- <locale-encoding-mapping><locale>tr</locale><encoding>ISO-8859-9</encoding></locale-encoding-mapping>
371
- <locale-encoding-mapping><locale>uk</locale><encoding>ISO-8859-5</encoding></locale-encoding-mapping>
372
- <locale-encoding-mapping><locale>zh</locale><encoding>GB2312</encoding></locale-encoding-mapping>
373
- <locale-encoding-mapping><locale>zh_TW</locale><encoding>Big5</encoding></locale-encoding-mapping>
374
- </locale-encoding-mapping-list>
375
-
376
-
377
-
378
- </web-app>
379
-