im与Netbeans一起使用wildfly 14.0。当我第一次将耳朵伸到野外时,一切都运行良好。但是当我尝试重新部署它时,我收到此错误:
Initial deploying MetacontratasV4-ear to D:\Wildfly\wildfly-14.0.0.Final\standalone\deployments\MetacontratasV4-ear-1.0.ear Error during incremental deploy: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot delete file MetacontratasV4-web-1.0.war in D:/Wildfly/wildfly-14.0.0.Final/standalone/deployments/MetacontratasV4-ear-1.0.ear.
如果我手动删除文件,它可以工作,但是首先要重新启动wildfly,这很费时间。 无需重新启动即可重新部署耳朵的任何其他方式
我正在通过netbeans接口进行部署。
如果您需要任何配置文件以便提供更准确的答案,请随时向我索取。
更新 我尝试使用命令行部署耳朵,但仍然收到类似的错误 error log 所以我尝试添加--force选项,该选项向我输出以下内容
10:26:26,104 ERROR [org.jboss.as.repository] (management-handler-thread - 1) WFLYDR0010: Couldn't delete content D:\Wildfly\wildfly-14.0.0.Final\standalone\data\content\fa\2a2cb037ddd7d2e0066b475c484505caf64cbb: java.nio.file.DirectoryNotEmptyException: D:\Wildfly\wildfly-14.0.0.Final\standalone\data\content\fa\2a2cb037ddd7d2e0066b475c484505caf64cbb
at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at org.jboss.as.repository.ContentRepositoryImpl.removeContent(ContentRepositoryImpl.java:315)
at org.jboss.as.server.deployment.DeploymentFullReplaceHandler$1.handleResult(DeploymentFullReplaceHandler.java:190)
at org.jboss.as.server.deployment.DeploymentHandlerUtils$2.handleResult(DeploymentHandlerUtils.java:165)
at org.jboss.as.controller.AbstractOperationContext$Step.invokeResultHandler(AbstractOperationContext.java:1533)
at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1515)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1472)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1455)
at org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1319)
at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:876)
at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:756)
at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467)
at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1411)
at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:265)
at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:231)
at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:240)
at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:138)
at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:162)
at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:158)
at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:289)
at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:246)
at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:158)
at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:485)
10:26:26,131信息[org.jboss.as.repository](管理处理程序线程-1)WFLYDR0002:从位置D:\ Wildfly \ wildfly-14.0.0.Final \ Standalone \ data \中删除了内容内容\ fa \ 2a2cb037ddd7d2e0066b475c484505caf64cbb \内容
答案 0 :(得分:1)
查看您的standalone.xml配置文件。您应该在文件末尾找到类似的内容。
<deployments>
<deployment name="xxx.war" runtime-name="xxx-1.2.0-SNAPSHOT.war">
<content sha1="48dce368e5e68e0cc533f57f90bae170c857b2ae"/>
</deployment>
<deployment name="xxx1.war" runtime-name="xxx1-1.2.0-SNAPSHOT.war">
<content sha1="9d8f243bc625da8ace475e62f89c3b09d46b4526"/>
</deployment>
<deployment name="xxx2.war" runtime-name="xxx2-1.2.2-SNAPSHOT.war">
<content sha1="30678065aada0876c7350e0911fe37b757ec1a54"/>
</deployment>
只需删除它们即可。