Skip to main content

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

2 replies [Last post]
ilogsky
Offline
Joined: 2008-07-27

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@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.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ilogsky
Offline
Joined: 2008-07-27

Thank you very much!
Can I make friends with you?
My MSN: ilogsky@hotmail.com

Ryan Lubke

glassfish@javadesktop.org wrote:
> 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@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)]
>
The EE 5 specification doesn't allow the override of container supplied
javax APIs.
Just like you can't provide your own implementation of javax.servlet
within your webapp,
now that JSF is part of Java EE, you can't supply alternate
implementations of javax.faces.

Is there a reason you can't use JSF 1.2?
> http://forums.java.net/jive/thread.jspa?messageID=289689
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net