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&sslfactory=org.postgresql.ssl.NonValidatingFactory&</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&' or some substring is an entity reference, which can't have an equal sign in it. However, you have correctly escaped the ampersand using '&', so it should not think that. My guess is that it is replacing the first & 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) & HTML Entity (hex) & For example: <org.apache.jetspeed.test.database.url>jdbc:postgresql://xyz.com/testDB?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&</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]
