成功运行的Struts2应用程序在部署到weblogic 12 c时会出错

时间:2017-10-20 06:27:05

标签: web-applications web.xml weblogic12c

enter image description here

我有Struts 2(2.3.32)项目在本地成功运行,但当我部署到Weblogic 12c时,它给出了以下错误(截图中)

HTTP:101064,cvc-complex-type.2.4b .....

此外,我已将此struts应用程序从Struts 2.1升级到Struts 2.3.32

我已经在web.xml中尝试过更改,但它无法正常工作。

的web.xml:

public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        final int MINIMUM =0, MAXIMUM =100;
        int catsNumber= collectInteger(in, "Enter a number of cats. ",MINIMUM, MAXIMUM);        
        System.out.printf("Your number of cats was %d", catsNumber);
      in.close();     
    }

1 个答案:

答案 0 :(得分:0)

在web.xml中 我替换了以下 与



<web-app>
<!---Added only this part instead of following-->
&#13;
&#13;
&#13;

这对我有用。

现在,我可以将应用程序部署到Weblogic Server。

&#13;
&#13;
<web-app xmlns:jsp="http://java.sun.com/xml/ns/javaee/jsp" xmlns:web="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://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" />
&#13;
&#13;
&#13;