Re: Can not run Facelet on weblogic 9
What jars do you have in your WEB-INF/lib? Somewhere you still have Sun's JSF implementation (jsf-ri.jar ) in your classpath. You need to remove Sun's JSF. If you see an exception with this this element (com.sun.faces.lifecycle.RestoreViewPhase.isPostback), then you know you're still running Sun's JSF RI (com.sun.faces.**). I hope this helps. Adam Brod Product Development Team Anthony Hong [EMAIL PROTECTED] 02/25/2006 12:32 AM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Re: Can not run Facelet on weblogic 9 Hi Adam, Now I follow the My faces installation guides to setup facelet, But the problem is the same. Exception show as following: 2006-2-25 下午01时27分40秒 CST Error HTTP BEA-101017 [weblogic.servlet. [EMAIL PROTECTED] - name: 'webapp', context-path: '/webapp'] Root cause of ServletException. java.lang.AbstractMethodError: javax.faces.render.ResponseStateManager.isPostbac k(Ljavax/faces/context/FacesContext;)Z at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase. java:200) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.jav a:156) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) Truncated. see log file for complete stacktrace I aslo tried same on on Tomcat5.5. It shows 404 error, Page can not be found. This is my web.xml ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd !-- Use Documents Saved as *.xhtml -- context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param !-- Special Debug Output for Development -- context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param !-- Optional JSF-RI Parameters to Help Debug -- context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param !-- Faces Servlet -- servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- Faces Servlet Mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping /web-app My faces-config.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN http://java.sun.com/dtd/web-facesconfig_1_0.dtd faces-config application view-handlercom.sun.facelets.FaceletViewHandler/view-handler /application managed-bean managed-bean-nameNumberBean/managed-bean-name managed-bean-classfacelet.tutorial.NumberBean/managed-bean-class managed-bean-scopesession/managed-bean-scope managed-property property-namemin/property-name value1/value /managed-property managed-property property-namemax/property-name value10/value /managed-property /managed-bean !-- going from guess.xhtml to response.xhtml -- navigation-rule from-view-id/guess.xhtml/from-view-id navigation-case from-outcomesuccess/from-outcome to-view-id/response.xhtml/to-view-id /navigation-case /navigation-rule !-- going from response.xhtml to guess.xhtml -- navigation-rule from-view-id/response.xhtml/from-view-id navigation-case from-outcomesuccess/from-outcome to-view-id/guess.xhtml/to-view-id /navigation-case /navigation-rule /faces-config I follow the example in facelte site. Any problem with my configurations?
Re: Can not run Facelet on weblogic 9
Anthony- Apparently you are running Facelets on Sun's JSF Reference Implementation of JSF. Do want to be running Facelets on MyFaces? If so, you need to delete two jars that come with Facelets - jsf-ri.jar and jsf-impl.jar - from WEB-INF/lib and replace them with the MyFaces jars. If you, in fact, do want to be running on Sun's RI, then I recommend you contact their mailing list. :) Adam Brod Product Development Team Anthony Hong [EMAIL PROTECTED] 02/24/2006 03:18 AM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Can not run Facelet on weblogic 9 Hi all, I downloaded the latest Facelet 1.0.11 and use it to learn facelet as a view of JSF. I put all libaries under %facelet_bundle%/lib into my web-inf/lib and jsf-facelet into web-inf/lib. I go through as facelet document section 1 example number guess But at weblogic startup time I saw a caution: Incorrect JSP version found, method getJspApplicationContext does not exist. And when I trying to request that page, following error occured: java.lang.AbstractMethodError: javax.faces.render.ResponseStateManager.isPostback(Ljavax/faces/context/FacesContext;)Z at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:188) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:143) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:112) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:175) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3022) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:179) How pity I am! anybody can help me out. Thanks in advance -- Anthony Hong
Re: Can not run Facelet on weblogic 9
Hi Adam, Now I follow the My faces installation guides to setup facelet, But the problem is the same. Exception show as following: 2006-2-25 下午01时27分40秒 CST Error HTTP BEA-101017 [weblogic.servlet. [EMAIL PROTECTED] - name: 'webapp', context-path: '/webapp'] Root cause of ServletException. java.lang.AbstractMethodError: javax.faces.render.ResponseStateManager.isPostbac k(Ljavax/faces/context/FacesContext;)Z at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase. java:200) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.jav a:156) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) Truncated. see log file for complete stacktrace I aslo tried same on on Tomcat5.5. It shows 404 error, Page can not be found. This is my web.xml ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; !-- Use Documents Saved as *.xhtml -- context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.xhtml/param-value /context-param !-- Special Debug Output for Development -- context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param !-- Optional JSF-RI Parameters to Help Debug -- context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param !-- Faces Servlet -- servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- Faces Servlet Mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping /web-app My faces-config.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE faces-config PUBLIC -//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN http://java.sun.com/dtd/web-facesconfig_1_0.dtd; faces-config application view-handlercom.sun.facelets.FaceletViewHandler/view-handler /application managed-bean managed-bean-nameNumberBean/managed-bean-name managed-bean-classfacelet.tutorial.NumberBean/managed-bean-class managed-bean-scopesession/managed-bean-scope managed-property property-namemin/property-name value1/value /managed-property managed-property property-namemax/property-name value10/value /managed-property /managed-bean !-- going from guess.xhtml to response.xhtml -- navigation-rule from-view-id/guess.xhtml/from-view-id navigation-case from-outcomesuccess/from-outcome to-view-id/response.xhtml/to-view-id /navigation-case /navigation-rule !-- going from response.xhtml to guess.xhtml -- navigation-rule from-view-id/response.xhtml/from-view-id navigation-case from-outcomesuccess/from-outcome to-view-id/guess.xhtml/to-view-id /navigation-case /navigation-rule /faces-config I follow the example in facelte site. Any problem with my configurations?