Aaron,
Thanks for sticking with the thread. What appears to work is escaping the '&' so
"ssl=trues&slfactory=org.postgresql.ssl.NonValidatingFactory&"
appears to keep maven2/plexus happy.
Cheers
MK

On 10/3/06, Aaron Evans <[EMAIL PROTECTED]> wrote:
On 10/3/06, Raj M <[EMAIL PROTECTED]> wrote:
> Aaron,
> Yes, that is my problem. I am only allowed SSL connection to the db, I
> did try to
> remove the lines, but the build failed during the 'access' to the db
> phase (as you noted).
> Is this a maven2 issue? I even tried CDATA block, but I guess the XML
> parser does not like it.
> Thanks
>

Looking more closely at your error message:

Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
entity reference name can not contain character ='

and your XML:

<org.apache.jetspeed.test.database.url>jdbc:postgresql://xyz.com/testDB?ssl=true&amp;sslfactory=org.postgresql.ssl.NonValidatingFactory&amp;</org.apache.jetspeed.test.database.url>

I would say that there is a bug with the XML parser that maven2 is
using (org.codehaus.plexus?).

I believe it is complaining about the second ampersand and thinks that

'sslfactory=org.postgresql.ssl.NonValidatingFactory&amp' or some
substring is an entity reference, which can't have an equal sign in
it.

However, you have correctly escaped the ampersand using '&amp', so it
should not think that.

My guess is that it is replacing the first &amp; with an ampersand and
then evaluating it along with everything after it as an entity
reference, which is clearly wrong.

One thing you could try though is to use the decimal or hex
representations for the ampersand:

HTML Entity (decimal)   &#38;
HTML Entity (hex)       &#x26;

For example:
<org.apache.jetspeed.test.database.url>jdbc:postgresql://xyz.com/testDB?ssl=true&#38;sslfactory=org.postgresql.ssl.NonValidatingFactory&#38;</org.apache.jetspeed.test.database.url>

I would say give that a shot...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to