users@glassfish.java.net

why doesn't "delegate=false" work well in sun-web.xml in Sun AS912?

From: <glassfish_at_javadesktop.org>
Date: Sun, 27 Jul 2008 18:13:30 PDT

I am having an issue with the class loader of Sun Application Server 9.

To use JSF1.1_02 jar in my ear. I put jsf-api-1.1_02.jar and jsf-impl-1.1_02.jar within WEB-INF/lib. I set "delegate=false" in sun-web.xml in my ear.

In Sun Application Server 8.2, the "delegate=false" can work well with my ear.

Then I deployed the same ear in Sun Application Server 9_1_02, Some links in my web page does not work. There is always a NoSuchMethod Exception:

[#|2008-07-27T23:39:26.729+0800|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=19;_ThreadName=httpSSLWorkerThread-3357-1;_RequestID=a1b22366-3e25-41a0-b780-a47e66c70579;|executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl_at_1af73d2) threw exception
javax.faces.FacesException: javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.sun.faces.util.Util.getValueBinding(Ljava/lang/String;)Ljavax/faces/el/ValueBinding;
        at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
        at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
 I am very eager. Any advice will be appreciated.
[Message sent by forum member 'ilogsky' (ilogsky)]

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