[英]Guidewire postgresql database connection
I have a bunch of errors trying to connect GW to PostgreSQL.我在尝试将 GW 连接到 PostgreSQL 时遇到一堆错误。 I have tried a lot of changes in database-config.xml On of them is:
我在 database-config.xml 中尝试了很多更改,其中有:
<database
autoupgrade="full"
name="BillingCenterDatabase"
dbtype="postgresql">
<dbcp-connection-pool
jdbc-url="jdbc:postgresql://localhost/test?user=postgres&password=qwerty;"/>
It gives me fewer errors, but I still can't connect.它给了我更少的错误,但我仍然无法连接。
[Fatal Error] :25:72: The reference to entity "password" must end with the ';' delimiter.
It pretends I have to to put a semicolon in place of它假装我必须用分号代替
password;=qwerty
If I put it here, I've got an error: The entity "password" was referenced but not declared.如果我把它放在这里,我有一个错误:实体“密码”被引用但未声明。 The GW suggestion for the psql is:
GW 对 psql 的建议是:
Expected: jdbc:postgresql://<host>[:<port>]/<dbname>?user=<user>&password=<password>
Maybe some experienced folks may help me with it?也许一些有经验的人可以帮助我?
The ampersand &
in the connection string has to be expressed by the built-in entity &
连接字符串中的
&
必须由内置实体&
表示。 like this:像这样:
jdbc-url="jdbc:postgresql://localhost/test?user=postgres&password=qwerty;"
Otherwise the XML
-parser will try to interpret the following word (here password
) as entity which would have to be terminated by ;
否则
XML
解析器将尝试将以下单词(此处为password
)解释为必须由;
终止的实体。 . . This explains the misleading error message.
这解释了误导性错误消息。
Similar discussion: https://stackoverflow.com/a/3824422/18667225类似讨论: https ://stackoverflow.com/a/3824422/18667225
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.