Error installing extensions

Hi All,

Im having error in LDAP extension during installation. I tried giving “Everyone” - Full controll permission in directory" but it has the same error.

D:\Apache Tomcat\work\Catalina\localhost\xwiki\xwiki-temp\extension\download\files\jldap10216078378093892934jar

Addional Details.

D:\Apache Tomcat\work\Catalina\localhost\xwiki\xwiki-temp\extension\download\files\jldap10216078378093892934jar
class org.xwiki.extension.repository.LocalExtensionRepositoryException: Failed to save extension [com.novell.ldap:jldap/2009-10-07] descriptor
    at org.xwiki.extension.repository.internal.local.DefaultLocalExtensionRepository.storeExtension(DefaultLocalExtensionRepository.java:195)
    at org.xwiki.extension.job.internal.InstallJob.storeExtension(InstallJob.java:186)
    at org.xwiki.extension.job.internal.InstallJob.store(InstallJob.java:171)
    at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:140)
    at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
    at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
Caused by: class java.nio.file.AccessDeniedException: D:\Apache Tomcat\work\Catalina\localhost\xwiki\xwiki-temp\extension\download\files\jldap10216078378093892934jar
    at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
    at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
    at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
    at java.base/java.nio.file.Files.delete(Unknown Source)
    at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository$AetherExtensionFileInputStream.close(AetherExtensionRepository.java:137)
    at org.apache.commons.io.FileUtils.copyInputStreamToFile(FileUtils.java:952)
    at org.xwiki.extension.repository.internal.local.DefaultLocalExtensionRepository.storeExtension(DefaultLocalExtensionRepository.java:184)
    at org.xwiki.extension.job.internal.InstallJob.storeExtension(InstallJob.java:186)
    at org.xwiki.extension.job.internal.InstallJob.store(InstallJob.java:171)
    at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:140)
    at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
    at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)

The error is clear… you need to give the proper permissions to this directory by the user you use to start your servlet container.

Hello, my login account has full control of the directory. Do you mean the account that is running Apache Tomcat Service but its running as localSystem ?