cvc-complex-type.2.4.d: Invalid content was found starting with element 'param-name'.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JuanTsia
    New Member
    • May 2017
    • 1

    cvc-complex-type.2.4.d: Invalid content was found starting with element 'param-name'.

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
    	     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd">
      <display-name>图书信息查询系统</display-name>   
        <welcome-file-list>
    		<welcome-file>login.jsp</welcome-file>		
    	</welcome-file-list>
        <context-param>
    		<param-name>driver</param-name>
    		<param-value>com.mysql.jdbc.Driver</param-value>
    		<param-name>url</param-name>
    		<param-value>jdbc:mysql://localhost:3306/javaee</param-value>
    		<param-name>user</param-name>
    		<param-value>root</param-value>
    		<param-name>password</param-name>
    		<param-value>pwd</param-value>
    	</context-param>
      	
    	  
    
    
     </web-app>
    Last edited by Dormilich; May 9 '17, 07:08 AM. Reason: please use code tags
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    <param-name> is not a valid child of <context-param>. read the documentation (the XSD file) what you can put there.

    Comment

    Working...