当前位置: 首页 > 知识库问答 >
问题:

尝试在weblogic 12c上部署war时发现验证问题错误

阙奇思
2023-03-14

我正在尝试在weblogic 12c上部署maven项目。项目在Spring 4(Java1.8)中配置。下面是我的WebLogic.xml

<?xml version="1.0" encoding="UTF-8"?>

<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" 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-app_3_1.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<jsp-descriptor>
<keepgenerated>true</keepgenerated>
<debug>true</debug>
</jsp-descriptor>
<context-root>/FileCompare</context-root>
<fast-swap>
<enabled>false</enabled>
</fast-swap>
</weblogic-web-app>

下面是我的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>FileCompare</display-name>
  <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
</web-app>

这两个文件的位置在WEB-INF下。我已经成功地在apache tomcat8上部署了它

Message icon - Error Unable to access the selected application.
Message icon - Error VALIDATION PROBLEMS WERE FOUND <3:5> problem: cvc-complex-type.2.4a: Expected elements 'module-name@http://java.sun.com/xml/ns/javaee description@http://java.sun.com/xml/ns/javaee display-name@http://java.sun.com/xml/ns/javaee icon@http://java.sun.com/xml/ns/javaee distributable@http://java.sun.com/xml/ns/javaee context-param@http://java.sun.com/xml/ns/javaee filter@http://java.sun.com/xml/ns/javaee filter-mapping@http://java.sun.com/xml/ns/javaee listener@http://java.sun.com/xml/ns/javaee servlet@http://java.sun.com/xml/ns/javaee servlet-mapping@http://java.sun.com/xml/ns/javaee session-config@http://java.sun.com/xml/ns/javaee mime-mapping@http://java.sun.com/xml/ns/javaee welcome-file-list@http://java.sun.com/xml/ns/javaee problem-page@http://java.sun.com/xml/ns/javaee jsp-config@http://java.sun.com/xml/ns/javaee security-constraint@http://java.sun.com/xml/ns/javaee login-config@http://java.sun.com/xml/ns/javaee security-role@http://java.sun.com/xml/ns/javaee env-entry@http://java.sun.com/xml/ns/javaee ejb-ref@http://java.sun.com/xml/ns/javaee ejb-local-ref@http://java.sun.com/xml/ns/javaee service-ref@http://java.sun.com/xml/ns/javaee resource-ref@http://java.sun.com/xml/ns/javaee resource-env-ref@http://java.sun.com/xml/ns/javaee message-destination-ref@http://java.sun.com/xml/ns/javaee persistence-context-ref@http://java.sun.com/xml/ns/javaee persistence-unit-ref@http://java.sun.com/xml/ns/javaee post-construct@http://java.sun.com/xml/ns/javaee pre-destroy@http://java.sun.com/xml/ns/javaee data-source@http://java.sun.com/xml/ns/javaee message-destination@http://java.sun.com/xml/ns/javaee locale-encoding-mapping-list@http://java.sun.com/xml/ns/javaee absolute-ordering@http://java.sun.com/xml/ns/javaee' instead of 'display-name@http://xmlns.jcp.org/xml/ns/javaee' here in element web-app@http://java.sun.com/xml/ns/javaee <5:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <6:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <7:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <8:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <9:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <10:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <4:5> problem: cvc-complex-type.2.4c: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' before the end of the content in element welcome-file-list@http://java.sun.com/xml/ns/javaee
Message icon - Error VALIDATION PROBLEMS WERE FOUND <3:5> problem: cvc-complex-type.2.4a: Expected elements 'module-name@http://java.sun.com/xml/ns/javaee description@http://java.sun.com/xml/ns/javaee display-name@http://java.sun.com/xml/ns/javaee icon@http://java.sun.com/xml/ns/javaee distributable@http://java.sun.com/xml/ns/javaee context-param@http://java.sun.com/xml/ns/javaee filter@http://java.sun.com/xml/ns/javaee filter-mapping@http://java.sun.com/xml/ns/javaee listener@http://java.sun.com/xml/ns/javaee servlet@http://java.sun.com/xml/ns/javaee servlet-mapping@http://java.sun.com/xml/ns/javaee session-config@http://java.sun.com/xml/ns/javaee mime-mapping@http://java.sun.com/xml/ns/javaee welcome-file-list@http://java.sun.com/xml/ns/javaee problem-page@http://java.sun.com/xml/ns/javaee jsp-config@http://java.sun.com/xml/ns/javaee security-constraint@http://java.sun.com/xml/ns/javaee login-config@http://java.sun.com/xml/ns/javaee security-role@http://java.sun.com/xml/ns/javaee env-entry@http://java.sun.com/xml/ns/javaee ejb-ref@http://java.sun.com/xml/ns/javaee ejb-local-ref@http://java.sun.com/xml/ns/javaee service-ref@http://java.sun.com/xml/ns/javaee resource-ref@http://java.sun.com/xml/ns/javaee resource-env-ref@http://java.sun.com/xml/ns/javaee message-destination-ref@http://java.sun.com/xml/ns/javaee persistence-context-ref@http://java.sun.com/xml/ns/javaee persistence-unit-ref@http://java.sun.com/xml/ns/javaee post-construct@http://java.sun.com/xml/ns/javaee pre-destroy@http://java.sun.com/xml/ns/javaee data-source@http://java.sun.com/xml/ns/javaee message-destination@http://java.sun.com/xml/ns/javaee locale-encoding-mapping-list@http://java.sun.com/xml/ns/javaee absolute-ordering@http://java.sun.com/xml/ns/javaee' instead of 'display-name@http://xmlns.jcp.org/xml/ns/javaee' here in element web-app@http://java.sun.com/xml/ns/javaee <5:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <6:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <7:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <8:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <9:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <10:7> problem: cvc-complex-type.2.4a: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' instead of 'welcome-file@http://xmlns.jcp.org/xml/ns/javaee' here in element welcome-file-list@http://java.sun.com/xml/ns/javaee <4:5> problem: cvc-complex-type.2.4c: Expected element 'welcome-file@http://java.sun.com/xml/ns/javaee' before the end of the content in element welcome-file-list@http://java.sun.com/xml/ns/javaee

共有2个答案

佴博实
2023-03-14
蒯硕
2023-03-14

我删除了整个吹气管线,之后应用程序处理了一些警告。

<?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">
 类似资料:
  • 在weblogic中部署war文件时出现以下错误 消息图标-发现错误验证问题<5:4>问题:CVC->complex-type.2.3:仅元素内容类型的元素“web-app@http://java.sun.com/xml/ns/javaee”不能有文本内容。<14:5>问题:cvc-complex-type.2.4a:元素servlet-mapping@http://java.sun.com/xm

  • 同时在WebLogic12c中部署应用程序。我有个例外。我是weblogic12c的新手。有什么建议吗??

  • 如果我使用Tomcat9.0.33将它部署到windows服务器上的tomcat,这也可以正常运行。 然而,当我将它部署到ubuntu上的Tomcat9.0.16或9.0.24时,它并没有启动。catalina.log显示了以下内容,我试着取消对编译“org.springframework.boot:spring-boot-starter-tomcat”的注释,并将其更改为提供的“org.spri

  • 编辑:我刚刚在清理项目并使缓存无效后重新启动了Android Studio。现在我发现了这个错误- 下面的错误会无限打印。 我做错了什么?

  • 我开发了一个springboot war文件来部署到服务器中,但是由于某些原因,我不得不将它部署到xampp的tomcat中,但是我得到了如下错误。我怎么才能修好这个? 信息:validateJarFile(c:\xampp\tomcat\webapps\ipf-2.0.0.rc2\WEB-INF\lib\tomcat-embed-core-8.5.28.jar)-jar未加载。参见Servlet

  • 我试图在OSX 10.9.4上的新WebLogic 12c服务器上部署一个简单的war文件 我通过wls1213\u devzip\u update1安装。并按照自述文件中的说明配置新安装。 WebLogic通过无误启动/startWebLogic。我和sh能够登录到管理控制台。 在管理控制台中执行以下步骤后:部署 单击下一步后,我在浏览器中收到以下错误: 检测到意外的错误情况。详细信息已记录在管