diff --git a/src/main/java/jp/sf/fess/log/MobyletLoggerImpl.java b/src/main/java/jp/sf/fess/log/MobyletLoggerImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..382c62d038003899a1c07558f2873ae125094e15
--- /dev/null
+++ b/src/main/java/jp/sf/fess/log/MobyletLoggerImpl.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2009-2014 the CodeLibs Project and the Others.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied. See the License for the specific language
+ * governing permissions and limitations under the License.
+ */
+
+package jp.sf.fess.log;
+
+import org.mobylet.core.log.MobyletLogger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class MobyletLoggerImpl implements MobyletLogger {
+ private static final Logger logger = LoggerFactory.getLogger("org.mobylet");
+
+ private final boolean loggable;
+
+ public MobyletLoggerImpl() {
+ final String value = System.getProperty("mobylet.log");
+ loggable = "true".equalsIgnoreCase(value);
+ }
+
+ @Override
+ public boolean isLoggable() {
+ return loggable;
+ }
+
+ @Override
+ public void log(final String msg) {
+ if (loggable) {
+ logger.info(msg);
+ }
+ }
+
+}
diff --git a/src/main/mysql/webapp/WEB-INF/web.xml b/src/main/mysql/webapp/WEB-INF/web.xml
index 784504f2e51a3ef1b1c35e977dd3cd08ff7bc100..8f8e831e7fe3b38258fcbb4d276eb7637a78995a 100644
--- a/src/main/mysql/webapp/WEB-INF/web.xml
+++ b/src/main/mysql/webapp/WEB-INF/web.xml
@@ -42,6 +42,10 @@
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
+ <init-param>
+ <param-name>mobylet.logger.class</param-name>
+ <param-value>jp.sf.fess.log.MobyletLoggerImpl</param-value>
+ </init-param>
</filter>
<filter>
diff --git a/src/main/oracle/webapp/WEB-INF/web.xml b/src/main/oracle/webapp/WEB-INF/web.xml
index 784504f2e51a3ef1b1c35e977dd3cd08ff7bc100..8f8e831e7fe3b38258fcbb4d276eb7637a78995a 100644
--- a/src/main/oracle/webapp/WEB-INF/web.xml
+++ b/src/main/oracle/webapp/WEB-INF/web.xml
@@ -42,6 +42,10 @@
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
+ <init-param>
+ <param-name>mobylet.logger.class</param-name>
+ <param-value>jp.sf.fess.log.MobyletLoggerImpl</param-value>
+ </init-param>
</filter>
<filter>
diff --git a/src/main/resources/fess_suggest.dicon b/src/main/resources/fess_suggest.dicon
index 62f2af578634da65c4753ae48cf002c7a4ffaa49..c0ce496815434b0ae519f12a0eb6e462bb6466b3 100644
--- a/src/main/resources/fess_suggest.dicon
+++ b/src/main/resources/fess_suggest.dicon
@@ -114,13 +114,14 @@
</component>
<!-- Solr Server Configuration -->
- <component name="suggestInterceptor" class="org.codelibs.solr.lib.server.interceptor.PreemptiveAuthInterceptor">
+ <component name="suggestInterceptor" class="org.codelibs.solr.lib.server.interceptor.PreemptiveAuthInterceptor"
+ autoBinding="none">
</component>
<component name="suggestCredentials" class="org.apache.http.auth.UsernamePasswordCredentials">
<arg>"solradmin"</arg><!-- Username -->
<arg>"solradmin"</arg><!-- Password -->
</component>
- <component name="suggestHttpClient" class="org.apache.http.impl.client.DefaultHttpClient">
+ <component name="suggestHttpClient" class="org.apache.http.impl.client.DefaultHttpClient" autoBinding="none">
<arg>clientConnectionManager</arg>
</component>
<component name="suggestSolrServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
diff --git a/src/main/resources/solrlib.dicon b/src/main/resources/solrlib.dicon
index 2598238a8c88440f2316918422bffeb78e26fab7..dcd50ed0f7e47323b54d7d9c47ecdbf939a806a2 100644
--- a/src/main/resources/solrlib.dicon
+++ b/src/main/resources/solrlib.dicon
@@ -92,13 +92,14 @@
</component>
<!-- Solr Server Configuration -->
- <component name="interceptor1" class="org.codelibs.solr.lib.server.interceptor.PreemptiveAuthInterceptor">
+ <component name="interceptor1" class="org.codelibs.solr.lib.server.interceptor.PreemptiveAuthInterceptor"
+ autoBinding="none">
</component>
<component name="credentials1" class="org.apache.http.auth.UsernamePasswordCredentials">
<arg>"solradmin"</arg><!-- Username -->
<arg>"solradmin"</arg><!-- Password -->
</component>
- <component name="httpClient1" class="org.apache.http.impl.client.DefaultHttpClient">
+ <component name="httpClient1" class="org.apache.http.impl.client.DefaultHttpClient" autoBinding="none">
<arg>clientConnectionManager</arg>
</component>
<component name="solrServer1" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index 409c5a754945ff6177639d749930c2459c6b9063..437190918a6a86bc78ce5cc36d825a558a1fd571 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -42,6 +42,10 @@
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
+ <init-param>
+ <param-name>mobylet.logger.class</param-name>
+ <param-value>jp.sf.fess.log.MobyletLoggerImpl</param-value>
+ </init-param>
</filter>
<filter>