Sorroundthe data, with a CDATA tag your web.xml excerpert will look
like:
context-param
param-namedatabase_dsn/param-name
param-value![CDATA[jdbc:mysql://localhost/test?user=testpassword=test]]/
param-value
/context-param
Saludos ,
Ignacio J. Ortega
-----Mensaje original-----
De: Sam Terburg [mailto:[EMAIL PROTECTED]]
Enviado el: lunes 11 de diciembre de 2000 11:50
Para: [EMAIL PROTECTED]
Asunto: context-param: illegal char
with this code in web.xml:
context-param
param-namedatabase_dsn/param-name
param-valuejdbc:mysql://localhost/test?user=testpassword=test/param-valu
e
/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.