编译时拒绝JAR文件访问

时间:2018-11-14 21:44:37

标签: java jsp jstl

当我尝试使用JSTL标记编译简单的JSP代码时,出现“拒绝访问”(捷克语中为“Přístupbylodepřen”)错误消息。我正在使用InteliJ Idea Ultimate和Tomcat Server 9.0.12。似乎Windows阻止了IDE访问JAR文件,但我应该可以访问驱动器上的所有文件。

Error:Internal error: (java.io.FileNotFoundException) C:\Users\Marek\IdeaProjects\JSTLTest\out\artifacts\JSTLTest_war_exploded\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (Přístup byl odepřen)

java.io.FileNotFoundException: C:\Users\Marek\IdeaProjects\JSTLTest\out\artifacts\JSTLTest_war_exploded\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (Přístup byl odepřen) 
    at java.base/java.io.FileOutputStream.open0(Native Method) 
    at java.base/java.io.FileOutputStream.open(FileOutputStream.java:276) 
    at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:220)
    at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:170)
    at com.intellij.openapi.util.io.FileUtil.openOutputStream(FileUtil.java:531)
    at com.intellij.openapi.util.io.FileUtil.performCopy(FileUtil.java:491)
    at com.intellij.openapi.util.io.FileUtil.copyContent(FileUtil.java:485)
    at org.jetbrains.jps.incremental.artifacts.instructions.FilterCopyHandler.copyFile(FilterCopyHandler.java:40)
    at org.jetbrains.jps.incremental.artifacts.instructions.FileBasedArtifactRootDescriptor.copyFromRoot(FileBasedArtifactRootDescriptor.java:100)
    at org.jetbrains.jps.incremental.artifacts.IncArtifactBuilder.build(IncArtifactBuilder.java:160)
    at org.jetbrains.jps.incremental.artifacts.IncArtifactBuilder.build(IncArtifactBuilder.java:50)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildTarget(IncProjectBuilder.java:1023)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:1004)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1065)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:956)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:788)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:377)
    at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:184)
    at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:138)
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:309)
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:137)
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:235)
    at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.base/java.lang.Thread.run(Thread.java:844)
Please perform full project rebuild (Build | Rebuild Project)

0 个答案:

没有答案