Weblogic (12.2.1.3) - Error in displaying a war. "Cvc-enumeration-valid"

0

I have a problem with my weblogic server 12c, the fact is that I went to deploy a service in war format and the server returns the following error:

<8:3> problem: cvc-enumeration-valid: string value '3.1' is not a valid enumeration value for web-app-versionType in namespace

The fact is that I do not have access to the original project, but to my teammate if you deploy it without problems using the same version of weblogic, configured the same.

I searched through the network and most of them talk about what is caused by trying to use a higher version of servlet over an old weblogic, but this is not the case, I have version 12.2.1.3 that is compatible with servlets 3.1.

Any idea what could be the cause of this error or how can I fix it?

PS: As a point, this is starting the WL via Eclipse instead of manually, in order to have the console at hand. Can it be influencing how the server works with the deployments?

    
asked by Alvargon 15.05.2018 в 16:12
source

1 answer

0

Try updating the header of your web.xml, so I could solve it myself ...

    <web-app 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-app_3_1.xsd" version="3.1">
    </web-app>

I used this example link

    
answered by 19.05.2018 в 20:20