本文介绍了错误404-找不到Wildfly的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在浏览器中运行XHTML页面时出现错误.在Wildfly 10.0中运行时出现错误404-找不到"

I'm getting error to run XHTML pages in browser."Error 404 - not found" when I run in Wildfly 10.0

我已经尝试了所有方法,但仍然出现错误.

I've tried everything and still getting error.

这是我的web.xml:

This is my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
  <display-name>SistemaWeb</display-name>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
    <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
</web-app>

在我更改standalone-full.xml并使用w/db建立连接之前,它开始起作用,之后开始在浏览器中运行错误.我正在使用JSF 2.2,CDI 1.1,wildfly-10.0.0.Final

Before I change the standalone-full.xml and setup connection w/ db it worked, after this started getting errors to run in browser.I'm using JSF 2.2, CDI 1.1, wildfly-10.0.0.Final

我还尝试了文件jboss-web.xml,但也无法正常工作.有人知道我该如何解决?

I also tried the file jboss-web.xml but doesn't work too.Someone knows how can I fix it ?

推荐答案

现在可以正常使用,知道发生了什么,我刚刚关闭了eclipse,当我再次尝试时可以正常使用

It's working now, idk what happened, I just closed eclipse and when I tried again was working

这篇关于错误404-找不到Wildfly的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 08:40