- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
最近我升级了以下东西:
现在,当我尝试在 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 权限,似乎一切正常。
最佳答案
访问被拒绝错误也可能由 Windows Defender 的实时保护引起。将 Wildfly 文件夹添加到 Defender 的排除列表中。
关于java - Wildfly 无法部署应用程序(FileNotFoundException - 访问被拒绝),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33154261/
我在 VisualStudio2010 中创建了小的 Windows Forms progs,只是为了业余爱好。释放它们后,我使用 .exe 文件在其他 PC 上运行它们,而无需 进行任何安装。这些
我正在尝试使用AvroParquetWriter将Avro格式的文件转换为 Parquet 文件。我加载架构 val schema:org.apache.Schema = ... getSchema(
我正在尝试使用 Image.IO.Write() 保存图像;我基本上从 here 复制了标准代码使用 lwjgl 截取屏幕截图。我唯一做的就是使用现有目录作为保存路径来初始化文件。 当我尝试保存图像时
错误: E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /file:/storage/sdcard0/
如果这是基本的,我很抱歉,我错过了一些简单的东西。我正在尝试运行下面的代码以遍历文件夹中的文件并将所有以特定字符串开头的文件合并到数据框中。所有文件都放在一个湖中。 file_list=[] path
在我的数据库中,我的手机上的每个条目都有一个图片的 uri。为了在手机上显示它,Listview 有一个 CustomAdapter。现在,我想在 ListView 中显示图片,得到如下错误信息: 0
我的所有节点在压缩期间都抛出 FileNotFoundException。因此,没有一个压缩(自动、手动)可以完成,我的 SSTable 计数现在是单个 CF (CQL3) 的数千个。 nodetoo
我在 java 中读取文件时遇到一些问题: 我的文件是例如: 3,4 2 6 4 1 7 3 8 9 其中第一行 3 和 4 是数组 A 和 B 的长度,然后是每个数组的元素。 我做的 import
我创建了一个程序,其中保存了学生的成绩,我想将这些成绩存储在txt文件中,然后在启动程序时,导入成绩,并在程序完成后导出成绩。我将import和exportTo方法放在单独的文件中,然后在主类中调用这
我怎样才能捕获一个 com.sun.faces.context.FacesFileNotFoundException 在 Java EE 网络应用程序中? 我尝试在我的 web.xml 文件中添加以下
请帮忙,我正在尝试从此谷歌翻译 API URL 获取数据仅当值为 1 个单词时它才有效。如果值为 2,则会出现错误。 我的意思是这个值会起作用: String sourceLang = "auto";
当我尝试使用retrofit2上传图片时,出现此错误 :java.io.FileNotFoundException(No such file or directory). HashMap partMa
try { FileReader fr = new FileReader("C:\\Users\\kevin\\Desktop\\AndroidLibr\\LeagueStats\\a
我尝试使用 Java 将单个文件从源复制到目标,但收到以下错误消息。 java.io.FileNotFoundException:以下是方法 public void copy_single(Strin
类似的问题涉及 C: 上的文件。驱动器,其中对文件路径进行硬编码是可接受的答案。此应用程序是移动应用程序,对文件路径进行硬编码并不实用。 我正在尝试通过扫描仪导入一个文本文件,其中包含一个字符串列表,
我正在修改一个小应用程序以从文件中读取一些数字。到目前为止一切都运行良好,但现在我遇到了一个问题,我不知道如何有效地解决它。如果用户输入了错误的文件名(可能是无意的),JVM 将抛出 FileNotF
我有一个 Web 项目,其中使用以下代码: try { br1 = new BufferedReader(new FileReader("queryWords.txt")); } catch
我尝试使用绝对路径从文件系统读取文件,但由于“FileNotFoundException”而失败,我不知道为什么 File file=new File("E:\\Directory\\File.txt
在我当前的项目中,我遇到了未收到文件未找到异常的问题。我的驱动程序文件将要打开的路径传递给正在构建图书库的构造函数。我正在使用 JFileChooser 来获取路径。在尝试强制错误(输入不存在的文件名
这个问题已经有答案了: Java: Unresolved compilation problem (10 个回答) 已关闭 4 年前。 我已经查看了有关此问题的其他答案,并尝试了他们的建议,但没有成功
我是一名优秀的程序员,十分优秀!