Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/393.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 尝试在weblogic 12c上部署war时发现验证问题错误_Java_Spring_Weblogic - Fatal编程技术网

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

Java 尝试在weblogic 12c上部署war时发现验证问题错误,java,spring,weblogic,Java,Spring,Weblogic,我正在尝试在WebLogic12c上部署maven项目。项目在Spring4(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" xs

我正在尝试在WebLogic12c上部署maven项目。项目在Spring4(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>

文件比较
login.jsp
index.htm
index.jsp
default.html
default.htm
default.jsp
这两个文件的位置在WEB-INF下。我已经成功地将其部署到apache tomcat8上。但在weblogic 12c上部署war时出现以下错误

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
消息图标-错误无法访问所选应用程序。
消息图标-发现错误验证问题问题:cvc-complex-type.2.4a:预期元素的模块-name@http://java.sun.com/xml/ns/javaeedescription@http://java.sun.com/xml/ns/javaee display-name@http://java.sun.com/xml/ns/javaeeicon@http://java.sun.com/xml/ns/javaeedistributable@http://java.sun.com/xml/ns/javaee上下文-param@http://java.sun.com/xml/ns/javaeefilter@http://java.sun.com/xml/ns/javaee过滤器-mapping@http://java.sun.com/xml/ns/javaeelistener@http://java.sun.com/xml/ns/javaeeservlet@http://java.sun.com/xml/ns/javaee servlet-mapping@http://java.sun.com/xml/ns/javaee会话-config@http://java.sun.com/xml/ns/javaee默剧-mapping@http://java.sun.com/xml/ns/javaee欢迎文件-list@http://java.sun.com/xml/ns/javaee问题-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登录-config@http://java.sun.com/xml/ns/javaee-security-role@http://java.sun.com/xml/ns/javaee环境-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服务-ref@http://java.sun.com/xml/ns/javaee资源-ref@http://java.sun.com/xml/ns/javaee资源环境-ref@http://java.sun.com/xml/ns/javaee消息目的地-ref@http://java.sun.com/xml/ns/javaee持久性上下文-ref@http://java.sun.com/xml/ns/javaee持久化单元-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数据-source@http://java.sun.com/xml/ns/javaee消息-destination@http://java.sun.com/xml/ns/javaee区域设置编码映射-list@http://java.sun.com/xml/ns/javaee-absolute-ordering@http://java.sun.com/xml/ns/javaee“代替”显示-name@http://xmlns.jcp.org/xml/ns/javaee'在element web中-app@http://java.sun.com/xml/ns/javaee问题:cvc-complex-type.2.4a:预期元素“欢迎”-file@http://java.sun.com/xml/ns/javaee'而不是“欢迎-file@http://xmlns.jcp.org/xml/ns/javaee'在元素欢迎文件中-list@http://java.sun.com/xml/ns/javaee问题:cvc-complex-type.2.4a:预期元素“欢迎”-file@http://java.sun.com/xml/ns/javaee'而不是'welcome'-file@http://xmlns.jcp.org/xml/ns/javaee'在元素欢迎文件中-list@http://java.sun.com/xml/ns/javaee问题:cvc-complex-type.2.4a:预期元素“欢迎”-file@http://java.sun.com/xml/ns/javaee'而不是'welcome'-file@http://xmlns.jcp.org/xml/ns/javaee'在元素欢迎文件中-list@http://java.sun.com/xml/ns/javaee问题:cvc-complex-type.2.4a:预期元素“欢迎”-file@http://java.sun.com/xml/ns/javaee'而不是“欢迎-file@http://xmlns.jcp.org/xml/ns/javaee'在元素欢迎文件中-list@http://java.sun.com/xml/ns/javaee问题:cvc-complex-type.2.4a:预期元素“欢迎”-file@http://java.sun.com/xml/ns/javaee'而不是'welcome'-file@http://xmlns.jcp.org/xml/ns/javaee'在元素欢迎文件中-list@http://java.sun.com/xml/ns/javaee问题:cvc-complex-type.2.4a:预期元素“欢迎”-file@http://java.sun.com/xml/ns/javaee'而不是'welcome'-file@http://xmlns.jcp.org/xml/ns/javaee'在元素欢迎文件中-list@http://java.sun.com/xml/ns/javaee问题:cvc-complex-type.2.4c:预期元素“欢迎”-file@http在课程结束前填写“://java.sun.com/xml/ns/javaee”元素欢迎文件中的内容-list@http://java.sun.com/xml/ns/javaee
消息图标-发现错误验证问题问题:cvc-complex-type.2.4a:预期元素的模块-name@http://java.sun.com/xml/ns/javaeedescription@http://java.sun.com/xml/ns/javaee display-name@http://java.sun.com/xml/ns/javaeeicon@http://java.sun.com/xml/ns/javaeedistributable@http://java.sun.com/xml/ns/javaee上下文-param@http://java.sun.com/xml/ns/javaeefilter@http://java.sun.com/xml/ns/javaee过滤器-mapping@http://java.sun.com/xml/ns/javaeelistener@http://java.sun.com/xml/ns/javaeeservlet@http://java.sun.com/xml/ns/javaee servlet-mapping@http://java.sun.com/xml/ns/javaee会话-config@http://java.sun.com/xml/ns/javaee默剧-mapping@http://java.sun.com/xml/ns/javaee欢迎文件-list@http://java.sun.com/xml/ns/javaee问题-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登录-config@http://java.sun.com/xml/ns/javaee-security-role@http://java.sun.com/xml/ns/javaee环境-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服务-ref@http://java.sun.com/xml/ns/javaee资源-ref@http://java.sun.com/xml/ns/javaee资源环境-ref@http://java.sun.com/xml/ns/javaee消息目的地-ref@http://java.sun.com/xml/ns/javaee持久性上下文-ref@http://java.sun.com/xml/ns/javaee持久化单元-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数据-source@http://java.sun.com/xml/ns/javaee消息-destination@http://java.sun.com/xml/ns/javaee区域设置编码映射-list@http://java.sun.com/xml/ns/javaee-absolute-ordering@http://java.sun.com/xml/ns/javaee“代替”显示-name@http://xmlns.jcp.org/xml/ns/javaee'在element web中-app@http://java.sun.com/xml/ns/javaee问题:cvc-complex-type.2.4a:Expec
<?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">