XML 文件配置常见问题 The reference to entity "password" must end with the ';' delimiter.的原因跟解决方法

This error is caused by a rogue '&' in database_properties.xml. This xml tag...
错误的配置:

<param name="url" value="jdbc:mysql://129.12.16.16/jwnl?user=myusername&password=mypassword"/>

正确的配置:

<param name="url" value="jdbc:mysql://129.12.16.16/jwnl?user=myusername&amp;password=mypassword"/>

This is because the sax xml parsing libraries used by jwnl are generic xml libraries and therefore expect an escaped charcter sequence.

你可能感兴趣的:(reference)