users@glassfish.java.net

Regression in GlassFish 2.1.1 ?

From: <glassfish_at_javadesktop.org>
Date: Sun, 07 Feb 2010 06:43:46 PST

I've used GlassFish 2.1 under JDK 5 for a while for my local development and needed to upgrade to JDK 6. At the same time, I decided to upgrade to GlassFish 2.1.1. I don't want to use GlassFish 3 for now since my production server is only Java EE 5 compatible, and I don't want to introduce any Java EE 6 dependencies or behavior into the code by accident.

After upgrade my web app fails to start with the root cause exception:

Caused by: java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"
        at javax.xml.parsers.DocumentBuilderFactory.setSchema(DocumentBuilderFactory.java:561)
        at com.sun.faces.config.ConfigManager$ParseTask.getBuilderForSchema(ConfigManager.java:522)
        at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:455)
        at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:416)
        at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:373)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:637)


I was able to narrow it down to GlassFish itself. At this point, I downgraded back to 2.1, switched JDK to 6, and the same app works just fine.

Web App deploys Xerces and JSF 1.2_12 and uses Parent First class loading:

<sun-web-app>
  <class-loader delegate="true"/>
</sun-web-app>

I played with changing class loading and removing Xerces in 2.1.1 to no avail.

Any ideas on what change in 2.1.1 might be causing it? Is it something in XML parsing?
[Message sent by forum member 'dkroot' (dkroot1_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=385292