You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rogermcnally <r....@leeds.ac.uk> on 2011/11/30 13:34:00 UTC

Using Passwords with special characters to for SQL JDBC Connection Pool

I'm trying to configure a JDBC Connection Pool for SQL Server 2005 in Tomcat
6 but am hitting a wall in that connection password uses special characters
e.g. / < / etc.  It's causing this error,



Element type "Resource" must be followed by either attribute specifications,
">" or "/>".
org.xml.sax.SAXParseException: Element type "Resource" must be followed by
either attribute specifications, ">" or "/>".




Resource in server.xml is: 






To date I have tried escaping the special chars using \ and tried using html
characters code as Glassfish does.  
Any other suggestions?
-- 
View this message in context: http://old.nabble.com/Using-Passwords-with-special-characters-to-for-SQL-JDBC-Connection-Pool-tp32884111p32884111.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.

Re: Using Passwords with special characters to for SQL JDBC Connection Pool

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/11/30 rogermcnally <r....@leeds.ac.uk>:
>
> I'm trying to configure a JDBC Connection Pool for SQL Server 2005 in Tomcat
> 6 but am hitting a wall in that connection password uses special characters
> e.g. / < / etc.  It's causing this error,
>
>
>
> Element type "Resource" must be followed by either attribute specifications,
> ">" or "/>".
> org.xml.sax.SAXParseException: Element type "Resource" must be followed by
> either attribute specifications, ">" or "/>".
>
>
>
>
> Resource in server.xml is:
>
>
>
>
>
>
> To date I have tried escaping the special chars using \ and tried using html
> characters code as Glassfish does.
> Any other suggestions?

1. Your question is offtopic to dev@ mailing list. You should ask on users@

2. Is it so hard to find authoritative reference on characters
handling in XML markup language?

http://www.w3.org/TR/xml/
http://en.wikipedia.org/wiki/XML#Escaping

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org