title: application Migrating to weblogic 12.1.3.0 from 10.3.3.0 -unable to render JSF expressions
body: <p>I am in the process of migrating Struts 2+Jsf 2.x web application from WEB -LOGIC 10.3.3.0 to 12.1.3.0.</p>
  
  <p>I am encountering an error while accessing the pages ,as per my understanding if a JSF tag encounters with a value which is reading from the properties file it is encountering the  Issue.And in the same pages I am able to read the struts messages.</p>
  
  <p>I have created a POC with the same jars which my application is using to check the JSF is rendering properly or not.the POC is working fine.
  and I placed the POC created page in to my application and tried to access again the same error encounterd.</p>
  
  <p>when I comment the Struts filter in My application ,newly created pages worked fine.</p>
  
  <p>I have tried to upgrade the Struts2jsf plugin.jar to newer versions .
  I have removed the jsf-api,jsf -impl,JSTL from the APPINF\LIB.
  changed the faces-config xsd to 2.0</p>
  
  <p>but no luck..</p>
  
  <p>Below is the error stack :</p>
  
  <pre><code>java.lang.stackOverflowError.
  at java.util.HasMap$treeNode.GetTreeNode(HashMap.java:1873)
  at java.util.HasMap.getNode(HashMap.java:573)
  at java.util.HashMap.get(HashMap.java:556)
  at ognl.ognlRuntime.getParameterTypes(ognlRuntime.java)
  at ognl.ognlRuntime.findParameterTypes(ognlRuntime.java)
  at ognl.OgnlRuntime.getGetMethod(ognlRuntime.java)
  at ognl.ognlRuntime.hasGetMethod(ognlRuntime.java)
  ....
  at org.apache.struts2.jsf.strutsVariableResolver.resolvervariable(StrutsVaraibaleResolver :78)
  at com.sun.faces.el.variabelResolverImpl.resolvervariabel(VariableResolverImpl.java:80))
  at org.apache.struts2.jsf.strutsVariableResolver.resolvervariable(StrutsVaraibaleResolver :78)
  at com.sun.faces.el.variabelResolverImpl.resolvervariabel(VariableResolverImpl.java:80))
  at org.apache.struts2.jsf.strutsVariableResolver.resolvervariable(StrutsVaraibaleResolver :78)
  at com.sun.faces.el.variabelResolverImpl.resolvervariabel(VariableResolverImpl.java:80))
  at org.apache.struts2.jsf.strutsVariableResolver.resolvervariable(StrutsVaraibaleResolver :78)
  at com.sun.faces.el.variabelResolverImpl.resolvervariabel(VariableResolverImpl.java:80))
  java.lang.ClassCastException:java.lang.StackOverflowerror cannot be cast to java.lang.Excetption
  java.lang.ClassCastException:java.lang.StackOverflowerror cannot be cast to java.lang.Excetption
  at jsp_servlet._error._jspService(_error.java)
  at weblogic.servlet.jsp.Jspbase.service(JsPBase.java)
  </code></pre>
  
  <p>**</p>
  
  <p>web.xml </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
              &lt;web-app
                version="2.5"
                xmlns="http://java.sun.com/xml/ns/javaee"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;
  
  
  
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-Value&gt;classpath:/applicationContext-resources.xml
          classpath:/applicationContext-dao.xml
          classpath:/applicationContext-service.xml
          /WEB-INF/applicationContext.xml
          /WEB-INF/applicationContext-Struts.xml
          /WEB-INF/Secuirty.xml
          &lt;/param-Value&gt;
          &lt;/context-param&gt;
  
                &lt;context-param&gt;
              &lt;param-name&gt;javax.faces.DISABLE_FACELET_JSF_VIEWHANDLE&lt;/param-name&gt;
              &lt;param-value&gt;false&lt;/param-value&gt;
               &lt;/context-param&gt;
  
                      &lt;listener&gt;
                      &lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;/listener-class&gt;
                  &lt;/listener&gt;
  
                  &lt;servlet&gt;
                     &lt;servlet-name&gt;faces&lt;/servlet-name/&gt;
                     &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class/&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
                          &lt;/servlet&gt;
                  &lt;servlet-mapping&gt;
                     &lt;servlet-name&gt;faces&lt;/servlet-name&gt;
                     &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;
                   &lt;/servlet-mapping&gt;
          &lt;servlet&gt;
  
          &lt;servlet-name&gt;JSPSupportServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.apache.struts2.views.JspSupportServlet&lt;/servlet-class&gt;
          &lt;/servlet&gt;
  
          &lt;filter&gt;
          &lt;filter-name&gt;struts-prepare&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter&lt;/filter-class&gt;
          &lt;/filter&gt;
  
          &lt;filter&gt;
          &lt;filter-name&gt;struts&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter&lt;/filter-class&gt;
          &lt;/filter&gt;
  
          &lt;filter&gt;
      &lt;filter-name&gt;sitemesh&lt;/filter-name&gt;
      &lt;filter-class&gt;com.opensymphone.module.sitemesh.filter.PageFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
  
          &lt;filter&gt;
          &lt;display-name&gt;richfaces&lt;/display-name&gt;
          &lt;filter-name&gt;richfaces&lt;/filter-name&gt;
          &lt;filter-class&gt;org.ajax4jsf.Filter&lt;/filter-class&gt;
          &lt;/filter&gt;
  
          &lt;filter-mapping&gt;
          &lt;filter-name&gt;sitemesh &lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
          &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
          &lt;dispatcher&gt;FORWARD &lt;/dispatcher&gt;
          &lt;dispatcher&gt;INCLUDE &lt;/dispatcher&gt;
          &lt;/filter-mapping&gt;
  
          &lt;filter-mapping&gt;
          &lt;filter-name&gt;struts &lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
          &lt;/filter-mapping&gt;
  
           &lt;filter-mapping&gt;
           &lt;filter-name&gt;richfaces&lt;/filter-name&gt;
           &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;
           &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
           &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
           &lt;dispatcher&gt;INCLUDE&lt;/dispatcher&gt;
        &lt;/filter-mapping&gt;
  
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;sitemesh &lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
          &lt;/filter-mapping&gt;
   &lt;/web-app&gt;
  </code></pre>
  
  <p>faces-config.xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;faces-config
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
      version="1.2"
  &lt;application&gt;
             &lt;locale-config&gt;
                  &lt;default-locale&gt;en&lt;/default-locale&gt;
             &lt;/locale-config&gt;
         &lt;resource-bundle&gt;
          &lt;base-name&gt;message&lt;/base-name&gt;
          &lt;var&gt;msg&lt;/var&gt;
         &lt;/resource-bundle&gt;
       &lt;/application&gt;
  </code></pre>
  
  <p>I have added additionally to the faces config below handler which worked me to display the login page</p>
  
  <pre><code>&lt;view-handler&gt;org.ajax4jsf.application.AjaxViewHandler&lt;/view-handler&gt;
  </code></pre>
  
  <p>while navigating to any page above error encountering.</p>
  
  <p>Below are the list of jars presented :</p>
  
  <pre><code>activation-1.1.jar
  antlr-2.7.6.jar
  aopaliance-1.0.jar
  asm3.3.jar
  aspectjrt-1.6.6.jar
  aspectjweaver-1.6.6.jar
  axiom-api-1.2.5.jar
  cglib-2.2.jar
  commons-beanutils-1.7.0.jar
  commons-Codec-1.5.jar
  Commons-collections-3.2.jar
  commons-digester-1.8.jar
  commons-el.jar
  commons-fileupload-1.2.1.jar
  commons-io-1.4.jar
  commons-lang-2.4.jar
  commong-logging-1.1.1.jar
  commons-pool-1.2.jar
  commons-vfs-1.0.jar
  compass-2.1.3.jar
  
  
  jsf-facelets 1.1.15B1.jar
  
  richfaces-impl 3.3.jar
  richfaces-ui 3.3Final.jar
  standard.jar
  jstl.jar
  jsf-api2.0.2.jar
  jsf-impl 2.0.2.jar
  log4j-1.2.13 jar
  ognl2.7.3.jar
  sitemesh-2.4.2.jar
  richfaces-api-3.3.3.Final.jar
  richfaces-imple-jsf2-3.3.3.Final.jar
  richfaces-ui-3.3.3.Final.jar
  slf4j-api.jar
  slf4j-log4j12.jar
  hibernate-core.jar
  hibernate-search.jar
  hibernate-commons-annotations.jar
  hibernate-annotations.jar
  
  standard1.1.2.jar
  struts2-corre-2.1.8.jar
  struts2-jsf-plugin-2.1.8.1
  wsdl4j-1.6.2.jar
  xml-apis-1.0.b2.jar
  xml-resolver-1.2.jar
  xmlbeans-2.4.0.jar
  xmlSchema-core 2.0.jar
  xwork-core2.1.6.jar
  etc...
  </code></pre>
  
  <p>eg code causing the errors :</p>
  
  <pre><code>hello.jsp
  &lt;%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %&gt;
  &lt;%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %&gt;
  &lt;head&gt;
          &lt;title&gt;JSF Example&lt;/title&gt;
      &lt;head&gt;
      &lt;body&gt;
          &lt;h2&gt;JSF  Example - &lt;/h2&gt;
          &lt;h:form&gt;
             &lt;h:inputText value="#{msg.testmessage}"&gt;&lt;/h:inputText&gt;
  
          &lt;/h:form&gt;
      &lt;body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am struggling a lot what went wrong.and the application is running fine in wls 10.3.3.0.
  appreciated your help.</p>
  
  <p>Regards,
  Ganesh Karanam</p>