Xerces issue upgrading to RC1

I patched a lab environment to RC1 last week and couldn’t get to complete
the config until today, when I encountered an issue loading our sites.

Upon load I received the following:

org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast
to org.apache.xerces.xni.parser.XMLParserConfiguration

I was able to workaround the issue as it looks like Lucee was trying to
load the wrong version of Xerces?

In my install folder (based on 4.x) I had the following Xerces jar

  • C:\lucee\lib\apache-xml-xerces.jar
  • C:\lucee\tomcat\lucee-server-bundles\org.lucee.xml.xerces-2.11.0.jar

I stopped the server, renamed apache-xml-xerces.jar to
apache-xml-xerces.bak restarted and now everything works (as far as I can
tell!)

However, I just felt like checking in with the issue/workaround to ensure
everything was still good and that there’s no underlying problem with the
upgrade. I know there were issues with Xerces in the early stages that
Micha was working on.
(https://groups.google.com/d/msg/lucee/00aKIKxG9ZI/A5_hLJIvAAAJ)

Hi,

If you are upgrading from Lucee 4.5 to Lucee 5 you must remove ALL the JAR
files as per the note on the migration doc:

“…and remove all other jars (NOTE you must remove the JARs, DO NOT
simply rename them)…”

So there should be NO JAR’s in your "C:\lucee\lib" directory except
lucee.jar.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 16 April 2016 at 00:22, JF Robichaud <@JF_Robichaud> wrote:

I patched a lab environment to RC1 last week and couldn’t get to complete
the config until today, when I encountered an issue loading our sites.

Upon load I received the following:

org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast
to org.apache.xerces.xni.parser.XMLParserConfiguration

I was able to workaround the issue as it looks like Lucee was trying to
load the wrong version of Xerces?

In my install folder (based on 4.x) I had the following Xerces jar

  • C:\lucee\lib\apache-xml-xerces.jar
  • C:\lucee\tomcat\lucee-server-bundles\org.lucee.xml.xerces-2.11.0.jar

I stopped the server, renamed apache-xml-xerces.jar to
apache-xml-xerces.bak restarted and now everything works (as far as I can
tell!)

However, I just felt like checking in with the issue/workaround to ensure
everything was still good and that there’s no underlying problem with the
upgrade. I know there were issues with Xerces in the early stages that
Micha was working on. (
https://groups.google.com/d/msg/lucee/00aKIKxG9ZI/A5_hLJIvAAAJ)


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/92b00940-10e7-4bb1-8979-4a5ef870d4aa%40googlegroups.com
https://groups.google.com/d/msgid/lucee/92b00940-10e7-4bb1-8979-4a5ef870d4aa%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Thank you Andrew, I had not done that.

I’ve submitted a PR to the page, I had checked the page but read it too
quickly (my bad) and seen it as 3 steps - stop, copy, start.–
JF

On Saturday, 16 April 2016 10:07:09 UTC-4, Andrew Dixon wrote:

Hi,

If you are upgrading from Lucee 4.5 to Lucee 5 you must remove ALL the JAR
files as per the note on the migration doc:

Upgrading from Lucee 4.5 :: Lucee Documentation

“…and remove all other jars (NOTE you must remove the JARs, DO NOT
simply rename them)…”

So there should be NO JAR’s in your "C:\lucee\lib" directory except
lucee.jar.

Kind regards,

Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.org

On 16 April 2016 at 00:22, JF Robichaud <jfrob...@gmail.com <javascript:>> wrote:

I patched a lab environment to RC1 last week and couldn’t get to complete
the config until today, when I encountered an issue loading our sites.

Upon load I received the following:

org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast
to org.apache.xerces.xni.parser.XMLParserConfiguration

I was able to workaround the issue as it looks like Lucee was trying to
load the wrong version of Xerces?

In my install folder (based on 4.x) I had the following Xerces jar

  • C:\lucee\lib\apache-xml-xerces.jar
  • C:\lucee\tomcat\lucee-server-bundles\org.lucee.xml.xerces-2.11.0.jar

I stopped the server, renamed apache-xml-xerces.jar to
apache-xml-xerces.bak restarted and now everything works (as far as I can
tell!)

However, I just felt like checking in with the issue/workaround to ensure
everything was still good and that there’s no underlying problem with the
upgrade. I know there were issues with Xerces in the early stages that
Micha was working on. (
https://groups.google.com/d/msg/lucee/00aKIKxG9ZI/A5_hLJIvAAAJ)


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/92b00940-10e7-4bb1-8979-4a5ef870d4aa%40googlegroups.com
https://groups.google.com/d/msgid/lucee/92b00940-10e7-4bb1-8979-4a5ef870d4aa%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.