By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,481 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,481 IT Pros & Developers. It's quick & easy.

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

P: 1
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  3.          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
  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">
  5.   <display-name>图书信息查询系统</display-name>   
  6.     <welcome-file-list>
  7.         <welcome-file>login.jsp</welcome-file>        
  8.     </welcome-file-list>
  9.     <context-param>
  10.         <param-name>driver</param-name>
  11.         <param-value>com.mysql.jdbc.Driver</param-value>
  12.         <param-name>url</param-name>
  13.         <param-value>jdbc:mysql://localhost:3306/javaee</param-value>
  14.         <param-name>user</param-name>
  15.         <param-value>root</param-value>
  16.         <param-name>password</param-name>
  17.         <param-value>pwd</param-value>
  18.     </context-param>
  19.  
  20.  
  21.  
  22.  
  23.  </web-app>
May 9 '17 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
<param-name> is not a valid child of <context-param>. read the documentation (the XSD file) what you can put there.
May 9 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.