简体   繁体   English

创建 WEB 动态项目后的 faces-config.xml 错误

[英]faces-config.xml errors after creating a WEB Dynamic Project

I just created a Web Dynamic Project in Eclipse and got some errors in faces-config.xml.我刚刚在 Eclipse 中创建了一个 Web 动态项目,但在 faces-config.xml 中出现了一些错误。 I couldn't find a solution for this.我找不到解决方案。 I hope someone can help-我希望有人能帮帮忙-

Multiple annotations found at this line:
- cvc-elt.1: Cannot find the declaration of element 'faces-config'.
- schema_reference.4: Failed to read schema document 'jar:file:/C:/EPOS/eclipse/plugins/org.eclipse.jst.standard.schemas_1.2.201.v201501151629.jar!/
 dtdsAndSchemas/web-facesconfig_2_2.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not 
 <xsd:schema>.

in faces-config.xml file faces-config tag should look like this:在faces-config.xml 文件中faces-config 标签应该是这样的:

<faces-config version="2.2"
              xmlns="http://xmlns.jcp.org/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">

If it doesn't help, can you share your faces-config.xml?如果它没有帮助,你能分享你的 faces-config.xml 吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JSF bean 使用 faces-config.xml 初始化 - JSF bean initializing with faces-config.xml 多 <application> faces-config.xml中的标签 - Multiple <application> tags in faces-config.xml faces-config.xml中的注释与托管bean声明 - Annotations vs managed beans declarations in faces-config.xml 更改之前在faces-config.xml中初始化的bean - Changing beans initialized before in faces-config.xml 通过faces-config.xml确定SelectItem数组值 - Determine SelectItem Array Values via faces-config.xml richfaces 4 + jsf和faces-config.xml无法正常工作 - richfaces 4+jsf and faces-config.xml that doesn't work cvc-complex-type.2.4。在faces-config.xml中发现了以元素工厂开头的无效内容 - cvc-complex-type.2.4.a invalid content was found starting with element factory in faces-config.xml 添加异常处理程序工厂时,faces-config.xml中未捕获的servlet异常 - Uncaught servlet exception in faces-config.xml when added exception-handler-factory 如何根据没有 faces-config.xml 文件的操作方法返回字符串直接从 ManagedBean 调用 xhml 页面 - How to direct call xhml page from ManagedBean based on action method return string without faces-config.xml file Eclipse Spring Dynamic Web项目类路径查找xml配置 - Eclipse Spring Dynamic web project classpath find xml config
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM