with this code in
web.xml:
<context-param>
<param-name>database_dsn</param-name>
<param-value>jdbc:mysql://localhost/test?user=test&password=test</param-value>
</context-param>
i get this error:
Starting tomcat. Check logs/tomcat.log for error
messages
ERROR reading /home/jsp/forum/WEB-INF/web.xml
At Next
character must be ";" terminating reference to entity "password".
ERROR reading
/home/jsp/forum/WEB-INF/web.xml
java.lang.NullPointerException
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java, Compiled
Code)
at
org.apache.tomcat.context.WebXmlReader.processFile(WebXmlReader.java, Compiled
Code)
at
org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java, Compiled
Code)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:201)
at
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
and
ERROR reading /home/jsp/forum/WEB-INF/web.xml
At Illegal character or
entity reference syntax.
and
bash: syntax error near unexpected token
`&password=test</param-value>'
apparently & is an illegal character.
but how do i solve this problem?
i've thought of url_encoding this, but that's an ugly sollution.
anybody got a better idea?
Greets,
Sam.