# Where to disable JarScanning?

**URL:** <https://discuss.codelibs.org/t/where-to-disable-jarscanning/915>\
**Category:** English:Fess\
**Created:** [April 24, 2019, 5:26am UTC](https://discuss.codelibs.org/t/where-to-disable-jarscanning/915 "2019-04-24T05:26:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [April 24, 2019, 5:26am UTC](https://discuss.codelibs.org/t/where-to-disable-jarscanning/915/1 "2019-04-24T05:26:13Z")

</div>

(from [github.com/jfabales](http://github.com/jfabales))  
Hello FESS team,

I find that starting FESS server takes a really long time nowadays and that’s because tomcat takes a really long time doing jar scanning. Some suggestions recommend skipping jar files in the `catalina.properties` file or in `conf/context.xml` which I couldn’t find. Could you help me guys?

Here are the last lines in `server_0.log`

```auto
Apr 24, 2019 5:13:27 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

```

Thanks!

---

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [April 29, 2019, 12:38am UTC](https://discuss.codelibs.org/t/where-to-disable-jarscanning/915/2 "2019-04-29T00:38:58Z")

</div>

(from [github.com/marevol](http://github.com/marevol))  
There is no option at the moment.  
I asked an author of the library to add a solution for this issue.

---

<div class="post-metadata">

**Author:** ![discuss](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/discuss/32/298_2.png) [@discuss](https://discuss.codelibs.org/u/discuss)\
**Post date:** [April 29, 2019, 1:02am UTC](https://discuss.codelibs.org/t/where-to-disable-jarscanning/915/3 "2019-04-29T01:02:26Z")

</div>

(from [github.com/jfabales](http://github.com/jfabales))  
Adding this line to `fess.in.sh` actually works but I found that it wasn’t the reason why the took too long to start

```auto
JAVA_OPTS="$JAVA_OPTS -Dtomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar"

```

It’s related to CreateSecureRandom when running inside a container but I also discovered that recreating the container solved the problem. I also mounted the `/dev/urandom` of the host to the container and hopefully it helps.
