Produce WebLogic deployment, develop web.xml configuration pits caused by Tomcat

Finishing the cloud payment platform project, because it was not urgent to go online, and went to do other projects, which delayed for a month, and then suddenly need to go online, the production environment is the deployment of WebLogic, originally good project, lead to war bag lost to production, the result is to live and die, and encounter various problems, is really unable to Tucao.

Hinting the version problem, find the degree Niang, say web.xml configuration is not right, my XML configuration is as follows:

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:web="http://java.sun.com/xml/ns/javaee" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

According to the results of Du Niang search, modify the xml configuration as follows:

<web-app xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" version="2.5">

The result is still wrong, no way, consulted a big man, the big man gave the version and Jdk version requirements relationship:

web-app 2.3
<!DOCTYPE web-app PUBLIC  "-/ Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" >

web-app 2.4
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"   
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> 

web-app 2.5
<web-app xmlns="http://java.sun.com/xml/ns/javaee"  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"  
version="2.5"> 
jdk Version 1.5 Above

web-app 3.0
<web-app  
        version="3.0"  
        xmlns="http://java.sun.com/xml/ns/javaee"  
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> 
jdk Version 1.6 Above,Start supporting jsp-config To configure

web-app 3.1
<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">   
jdk Version 1.7 Above

Since the WebLogic version of the production environment is 12c, modify the personal web.xml configuration as follows:

<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"> 

As a result, the redeployment started to succeed.

Keywords: xml JavaEE Java JDK

Added by Hitch54 on Thu, 10 Oct 2019 10:15:36 +0300