最近我升级了以下内容:
现在,当我试图在Eclipse中部署我的应用程序时,它不再工作了(有时它工作,但大多数时候它不工作)。在升级之前,一切都运行良好,但是现在我在部署应用程序时得到了这个堆栈跟踪(在这里你可以读到下面的“Acesso Negado”,意思是“拒绝访问”):
13:18:12,452 SEVERE [javax.faces] (MSC service thread 1-7) Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI?
13:18:12,452 SEVERE [javax.faces] (MSC service thread 1-7) Unable to call @PreDestroy annotated methods because no InjectionProvider can be found. Does this container implement the Mojarra Injection SPI?
13:18:12,452 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-7) Critical error during deployment: : com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:752) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:221) [jsf-impl-2.2.8-jbossorg-1.jar:]
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:193) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.8.0_60]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) [rt.jar:1.8.0_60]
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:739) [jsf-impl-2.2.8-jbossorg-1.jar:]
... 11 more
Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:135) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1308) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1277) [jsf-impl-2.2.8-jbossorg-1.jar:]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:730) [jsf-impl-2.2.8-jbossorg-1.jar:]
... 11 more
Caused by: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at java.io.FileInputStream.open0(Native Method) [rt.jar:1.8.0_60]
at java.io.FileInputStream.open(FileInputStream.java:195) [rt.jar:1.8.0_60]
at java.io.FileInputStream.<init>(FileInputStream.java:138) [rt.jar:1.8.0_60]
at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:107) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]
at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:87) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:258) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:227) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:113) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:84) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:221) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:241) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.facelets.util.Classpath.search(Classpath.java:155) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.facelets.util.Classpath.search(Classpath.java:109) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:164) [jsf-impl-2.2.8-jbossorg-1.jar:]
at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:108) [jsf-impl-2.2.8-jbossorg-1.jar:]
... 15 more
13:18:12,454 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_60]
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:222)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
... 3 more
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:280)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:193)
... 7 more
Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:752)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:349)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:221)
... 9 more
Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.8.0_60]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) [rt.jar:1.8.0_60]
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:739)
... 11 more
Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:135)
at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1308)
at com.sun.faces.config.ConfigManager$URITask.call(ConfigManager.java:1277)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_60]
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:730)
... 11 more
Caused by: java.io.FileNotFoundException: C:\wildfly\standalone\tmp\vfs\temp\temp4de141261078fbde\gruposemailservidores.war-18ba5e3d2b4062a2\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
at java.io.FileInputStream.open0(Native Method) [rt.jar:1.8.0_60]
at java.io.FileInputStream.open(FileInputStream.java:195) [rt.jar:1.8.0_60]
at java.io.FileInputStream.<init>(FileInputStream.java:138) [rt.jar:1.8.0_60]
at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:107) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.spi.RealFileSystem$1.run(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_60]
at org.jboss.vfs.spi.RealFileSystem.doIoPrivileged(RealFileSystem.java:87) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:105) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:258) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.VirtualJarInputStream.openCurrent(VirtualJarInputStream.java:227) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.VirtualJarInputStream.getNextJarEntry(VirtualJarInputStream.java:113) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at org.jboss.vfs.VirtualJarInputStream.getNextEntry(VirtualJarInputStream.java:84) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:221)
at com.sun.faces.facelets.util.Classpath.searchFromURL(Classpath.java:241)
at com.sun.faces.facelets.util.Classpath.search(Classpath.java:155)
at com.sun.faces.facelets.util.Classpath.search(Classpath.java:109)
at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.loadURLs(MetaInfFacesConfigResourceProvider.java:164)
at com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider.getResources(MetaInfFacesConfigResourceProvider.java:108)
... 15 more
13:18:12,460 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./gruposemailservidores" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: Failed to start service
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
Caused by: java.util.concurrent.ExecutionException: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
Caused by: javax.faces.FacesException: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)
Caused by: java.io.FileNotFoundException: C:\\wildfly\\standalone\\tmp\\vfs\\temp\\temp4de141261078fbde\\gruposemailservidores.war-18ba5e3d2b4062a2\\gruposemailservidores.war-3630318317622662798.tmp (Acesso negado)"}}
13:18:12,527 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018565: Replaced deployment "gruposemailservidores.war" with deployment "gruposemailservidores.war"
13:18:12,528 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.persistenceunit."gruposemailservidores.war#ufca" (unavailable) dependents: [service jboss.deployment.unit."gruposemailservidores.war".deploymentCompleteService]
JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./gruposemailservidores
service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gruposemailservidores: Failed to start service
我已经检查了上面提到的文件夹的Windows权限,似乎一切都很好。
附注:交叉张贴:https://developer.jboss.org/thread/263854
Windows“拒绝访问”错误不仅与缺乏特权有关,还与另一个进程获得的独占锁有关。您应该检查是什么进程锁定了您的文件。您可以使用"解锁"程序执行此任务。在我的情况下防病毒锁定临时文件。
如果不使用JSF框架,可以从配置(standalone.xml)中删除以下行:
<extension module="org.jboss.as.jsf"/>
而且
<subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
对我来说,它解决了这个问题。
拒绝访问错误也可能由Windows Defender的实时保护引起。将Wildfly文件夹添加到Defender的排除列表中。
我们已经使用部署扫描程序(“部署”文件夹)将WAR文件部署到Wildfly。web应用程序一直工作到计算机重新启动为止-当服务器再次加载web应用程序时,它会失败。值得一提的是,如果重新启动Wildfly服务,我们就不会有这个问题,它只会在整个操作系统重新启动时发生。如果我重新启动Wildfly,它会再次工作。 如果从部署文件夹中删除失败的文件标志(healthsafety-server.war.
问题内容: 我让ELK堆栈在VM内的docker容器中运行。 我可以向ES填充,它可以在Kibana中显示。 我可以使用Logstash读取文件并将其输出到stdout。 但是Logstash无法将数据发送到ES (启用或禁用xpack似乎没有什么不同) 输出 之后,它会在“发送批量请求”,“执行运行状况检查”,“尝试复活”和“意外的池错误”之间保持循环。 随着每一次的同时,我也看到了 问题答案:
我正在尝试将一个.ear应用程序部署到WildFly10.1Final。ear有2个嵌套的.war文件。war文件中没有“jboss-web.xml”文件。 信息[org.jboss.as.server.deployment.scanner](DeploymentScanner-Threads-1)WFLYDS0004:在部署目录中找到MyApp.ear。要触发部署,请创建一个名为myapp.ea
我正在同时试验Spring boot和openshift,不幸的是,我遇到了一个我无法找到的问题。 我用Spring启动的初始值设定项创建了一个应用程序。创建了几个Rest控制器(你好,世界喜欢) 这是我的应用程序(主) 我可以在本地启动应用程序(通过智能和冬虫)。我可以看到应用程序日志记录并访问所有endpoint,没有任何问题。 pom.xml是这样的: 因此,根据我的理解,WAR文件是根据O
我试图通过更新apache-tomcat-8.0.39\conf\catalina.properties在带有选项strict_servlet_compliance=true的Tomcat 8.0.39上部署一个应用程序,但一旦我这样做,我的应用程序部署就失败了。也就是说,我开始出现错误:SEVERE[localhost-startStop-1]org.apache.tomcat.util.dig
我的android应用程序没有正确构建和部署。当启动一个新实例时,它会将我的应用程序启动到我的物理移动设备上,并且我能够在Visual Studio中进行调试。但现在它不会将应用程序启动到移动设备,而且当我手动运行应用程序时,它也不会在Visual Studio中调试。这个项目有可移植的类,并且正在使用Xamarin.Forms。 我确实更改了对AndroidManifest.xml的构建操作。