title: Enabling ClamAV in PrimeFaces FileUpload component
body: <p>As PrimeFaces documentantions says, to enable ClamAV in FileUpload we just need:</p>
  <ul>
  <li><code>virusScan=&quot;true&quot;</code> in component</li>
  <li><code>primefaces.virusscan.CLAMAV_HOST</code> context param in web.xml</li>
  <li><code>primefaces.virusscan.CLAMAV_PORT</code> context param in web.xml</li>
  </ul>
  <p>This is all fine, but ClamAV isn't called.</p>
  <p>I enabled PF logging, and the output is:</p>
  <pre><code>[org.primefaces.virusscan.VirusScannerService] Performing virus scan...
  [org.primefaces.virusscan.VirusScannerService] Skipping virus scan with org.primefaces.virusscan.impl.VirusTotalReportScanner provider since it is disabled
  [org.primefaces.virusscan.VirusScannerService] No virus detected
  </code></pre>
  <p>As we can see <a href="https://github.com/primefaces/primefaces/blob/master/primefaces/src/main/java/org/primefaces/virusscan/VirusScannerService.java" rel="nofollow noreferrer">VirusScannerService</a> do not list <a href="https://github.com/primefaces/primefaces/blob/master/primefaces/src/main/java/org/primefaces/virusscan/impl/ClamDaemonScanner.java" rel="nofollow noreferrer">ClamAV</a> service as an option.</p>
  <p>VirusScannerService uses java.util.ServiceLoader to find services available in class loader.</p>
  <p>Any clues why it can't load the service?</p>
  <p>PrimeFaces 11.0.</p>