Subject | JNDI Resource URL again |
---|---|
Author | Andrew Guts |
Post date | 2002-12-19T13:45:16Z |
Hi all,
As I know FB database connection parameters accepted only if specified
right in resource URL. The parameters must be separated by '&'
symbol. That symbol causes xml parser error and should be replaced by
'&', like below:
<parameter>
<name>url</name>
<value>jdbc:firebirdsql:127.0.0.1/3050:/data/db?lc_ctype=WIN1251&sql_role_name=robot</value>
</parameter>
It works fine till I want deploy my application using Tomcat manager.
The deployment works fine, but when Tomcat manager inserts context of
the application into server.xml, it translates '&' to '&' again.
That is why Tomcat fails at next start.
How to work it around? I'd like to provide parameters as a normal
<parameter></parameter>, but it does not work.
Thanks ahead.
Andrew
As I know FB database connection parameters accepted only if specified
right in resource URL. The parameters must be separated by '&'
symbol. That symbol causes xml parser error and should be replaced by
'&', like below:
<parameter>
<name>url</name>
<value>jdbc:firebirdsql:127.0.0.1/3050:/data/db?lc_ctype=WIN1251&sql_role_name=robot</value>
</parameter>
It works fine till I want deploy my application using Tomcat manager.
The deployment works fine, but when Tomcat manager inserts context of
the application into server.xml, it translates '&' to '&' again.
That is why Tomcat fails at next start.
How to work it around? I'd like to provide parameters as a normal
<parameter></parameter>, but it does not work.
Thanks ahead.
Andrew