Hi Jacob, Thanks for the reply . I cleared the cache and tried running the application. I am not getting any error but no output is being displayed i.e I am getting a blank . Moreover the complete page is getting printed in the logs.
Please let me know if I am missing out on something. Regards, Geetika Srivastava Tata Consultancy Services Mailto: [email protected] Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ From: Jakob Korherr <[email protected]> To: MyFaces Discussion <[email protected]> Date: 04/23/2010 06:56 PM Subject: Re: Error on upgrading to myfaces1.2.8 Sent by: [email protected] Hi again, I did some research about this problem and found some similar issues in various different projects and frameworks (e.g. in primefaces [1]). The real problem seems to come from the tag library descriptor (.tld) files. In MyFaces 1.1.x the entry for the value attribute of h:commandButton looks like this: <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.String</type> <description><![CDATA[The initial value of this component.]]></description> </attribute> It specifies a type of java.lang.String, because Unified EL was not included in JSF 1.1 and thus JSF 1.1 resolved the expressions itself. In MyFaces 1.2.x, however, the entry looks like this: <attribute> <description><![CDATA[The text to display to the user for this command component.]]></description> <name>value</name> <deferred-value> <type>java.lang.Object</type> </deferred-value> </attribute> Unified Expression Language is used in JSF 1.2 and thus the entry must not specifiy a normal type, but a type inside a deferred-value element. With this entry the web container knows that it has to create a ValueExpression for the given attribute. My guess now is that your weblogic server somehow uses the "old" .tld files from MyFaces 1.1.x with your application that uses MyFaces 1.2.x and thus the Unified EL integration does not work correctly. However I don't know why this could be the case. Maybe a caching issue. You could try to clean up your server and restart it. Maybe it will work then. I really hope this will help you! Regards, Jakob [1] http://primefaces.prime.com.tr/forum/viewtopic.php?f=3&t=4 2010/4/23 Jakob Korherr <[email protected]> > Hi, > > Seems like a Expression Language problem. The Servlet (which is > automatically created by Weblogic) that handles the JSP page internally > seems to expect a ValueExpression but it (only) gets a String. So either > something from weblogic is missing here (or does not work correctly) that > would create the ValueExpression out of the (Expression-)String or weblogic > handles plain String entries in ValueExpression-attributes wrong. > > You could try to push weblogic to create a ValueExpression for the two > value attributes in your sample page by adding #{' at the begin and '} at > the end of the String value. So your page should look something like this > (some parts are cut for clarity): > > > <h:outputLink value="#{'helloWorld.jsf'}"> > <h:outputText value="#{'HelloWorld'}" /> > </h:outputLink> > > This will maybe work, but you should not have to do it this way! > > Regards, > Jakob > > 2010/4/23 Geetika Srivastava <[email protected]> > > Hi, >> >> I am trying to upgrade to myfaces 1.2.8 from myfaces 1.1.5 on weblogic >> server 10.3. I am trying to display a simple jsf page . >> >> <%@ page session="false" contentType="text/html;charset=utf-8"%> >> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> >> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> >> >> <html> >> <f:view> >> <f:verbatim> >> <body> >> >> <h:form id="form"> >> <h:panelGrid id="grid" columns="1"> >> <h:outputLink value="helloWorld.jsf"> >> <h:outputText value="HelloWorld" /> >> </h:outputLink> >> </h:panelGrid> >> </h:form> >> </body> >> </f:verbatim> >> </f:view> >> </html> >> >> I am getting the following stack trace: >> >> java.lang.ClassCastException: java.lang.String cannot be cast to >> javax.el.ValueExpression >> at >> jsp_servlet._pages.__login._jsp__tag3(__login.java:280) >> at >> jsp_servlet._pages.__login._jsp__tag2(__login.java:242) >> at >> jsp_servlet._pages.__login._jsp__tag1(__login.java:190) >> at >> jsp_servlet._pages.__login._jsp__tag0(__login.java:139) >> at >> jsp_servlet._pages.__login._jspService(__login.java:98) >> at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) >> at >> >> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) >> at >> >> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) >> at >> >> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) >> at >> >> weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408) >> at >> >> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318) >> at >> >> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) >> at >> >> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502) >> at >> >> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251) >> at >> >> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:341) >> at >> >> org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236) >> at >> >> org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:222) >> at >> >> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41) >> at >> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140) >> at >> javax.faces.webapp.FacesServlet.service(FacesServlet.java:182) >> at >> >> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) >> at >> >> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) >> at >> >> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) >> at >> >> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) >> at >> >> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502) >> at >> >> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251) >> at >> weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:159) >> at jsp_servlet.__index._jspService(__index.java:202) >> at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) >> at >> >> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) >> at >> >> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) >> at >> >> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) >> at >> >> weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408) >> at >> >> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318) >> at >> >> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) >> at >> >> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495) >> at >> >> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) >> at >> weblogic.security.service.SecurityManager.runAs(Unknown Source) >> at >> >> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) >> at >> >> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) >> at >> >> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) >> at >> weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) >> at >> weblogic.work.ExecuteThread.run(ExecuteThread.java:173) >> >> I have included all jars mentioned in the apache site including tomahawk12 >> 1.1.9 jar and have also updated the version in faces -config and web.xml >> >> Please help. >> >> Regards, >> Geetika Srivastava >> Tata Consultancy Services >> Mailto: [email protected] >> Website: http://www.tcs.com >> ____________________________________________ >> Experience certainty. IT Services >> Business Solutions >> Outsourcing >> ____________________________________________ >> =====-----=====-----===== >> Notice: The information contained in this e-mail >> message and/or attachments to it may contain >> confidential or privileged information. If you are >> not the intended recipient, any dissemination, use, >> review, distribution, printing or copying of the >> information contained in this e-mail message >> and/or attachments to it are strictly prohibited. If >> you have received this communication in error, >> please notify us by reply e-mail or telephone and >> immediately and permanently delete the message >> and any attachments. Thank you >> >> >> > > > -- > Jakob Korherr > > blog: http://www.jakobk.com > twitter: http://twitter.com/jakobkorherr > work: http://www.irian.at > -- Jakob Korherr blog: http://www.jakobk.com twitter: http://twitter.com/jakobkorherr work: http://www.irian.at =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

