Navigation issue using jsf, tiles, tomahawk  :loosing faces context

Hi all,
I enhanced my webapp using tomahawks jscookmenu.
Triggering 1 menuItem the wanted pages displays correctly but the next click anywhere in the application shows this error:
org.apache.jasper.JasperException: javax.faces.FacesException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to  *.jsf (with the <servlet-mapping>-element), you need to access your pages as 'sample.jsf'. If you tried to access 'sample.jsp', you'd get this error-message.The web config is like that:
<?xml version="1.0"?>
<web-app 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"
     version="2.4">
     <context-param>
          <description>Tiles MyFaces Config</description>
          <param-name>tiles-definitions</param-name>
          <param-value>/WEB-INF/tiles.xml</param-value>
     </context-param>
     <context-param> 
          <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 
          <param-value>.jsp</param-value>
     </context-param>
     <context-param>
          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
          <param-value>server</param-value>
     </context-param>
     <context-param>
          <param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
          <param-value>off</param-value>
     </context-param>
     <!-- context-params mafaces -->
     <context-param>
          <param-name>org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS</param-name>
          <param-value>true</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.RENDER_VIEWSTATE_ID</param-name>
          <param-value>true</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.STRICT_XHTML_LINKS</param-name>
          <param-value>true</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.CONFIG_REFRESH_PERIOD</param-name>
          <param-value>this is a bug in myfaces</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
          <param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>
          <param-value>/faces/myFacesExtensionResource</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
          <param-value>true</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
          <param-value>true</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
          <param-value>true</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
          <param-value>true</param-value>
     </context-param>
     <context-param>
          <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
          <param-value>false</param-value>
     </context-param>
     <!-- StartupServletContextListener -->
     <listener>
          <listener-class>
               org.apache.myfaces.webapp.StartupServletContextListener
          </listener-class>
     </listener>
     <!-- Faces MyFacesExtensionsFilter -->
     <filter>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <filter-class>
               org.apache.myfaces.webapp.filter.ExtensionsFilter
          </filter-class>
          <init-param>
               <param-name>uploadMaxFileSize</param-name>
               <param-value>1m</param-value>
          </init-param>
     </filter>
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <url-pattern>/faces/*</url-pattern>
     </filter-mapping>
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <url-pattern>*.jsf</url-pattern>
     </filter-mapping>
     <!-- Faces Servlet -->
     <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
     </servlet>
     <!-- Faces Servlet Mapping -->
     <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.jsf</url-pattern>
     </servlet-mapping>
     <welcome-file-list>
          <welcome-file>index.jsp</welcome-file>
     </welcome-file-list>
     <servlet>
          <servlet-name>imageServlet</servlet-name>
          <servlet-class>my.com.xplorer.gui.v.ImageServlet</servlet-class>
     </servlet>
     <servlet-mapping>
          <servlet-name>imageServlet</servlet-name>
          <url-pattern>/image/*</url-pattern>
     </servlet-mapping>
</web-app>So I lost the faces context using the jscookmenu, I believe.
My webapp uses tiles, and there is 2 navigation possibilities: tomahawaks jscookmenu and tomahawaks commandNavigation.
Latter one runs ok, I do use
<t:panelNavigation id="nav" styleClass="navigation"
     itemClass="navitem" separatorClass="navseparator" 
     activeItemClass="navitem_active" openItemClass="navitem_open">
     <t:commandNavigation action="#{newsHandler.userRequest}" value="#{newsHandler.rss_source_name[0]}">
          <f:param name="navigator"  value="/jsf/news.jsp" />
     </t:commandNavigation>
</t:panelNavigation>for this kind of navigation I do not use any navigation rules in faces config. To dynamically include the desired faces page I do that:
<%
     String s = (String)request.getParameter("navigator");
     if (s == null || s.length() == 0 ) {
          s =  "/jsf/explorer.jsp";
%>
<jsp:include page="<%=s %>" />That does work.
Now like I said I did enhance the app by adding tomahawks jscookmenu.
Therefore I use the following in another tile:
<t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="resources/css">
          <%/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack, ThemeOffice, ThemePanel
             Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl, vur, vul
             respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu
        */%>
  <t:navigationMenuItem id="nav_0" itemLabel="#{localz.Xplorer}" action="Xplorer" />
</t:jscookMenu>For this kind of navigation I tried to use navigation rules and the following show the config:
     <navigation-rule>
       <from-view-id>/jsf/*</from-view-id>
        <navigation-case>
            <from-outcome>Xplorer</from-outcome>
            <to-view-id>/jsf/tileMain.jsp?navigator=/jsf/explorer.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>Tabs</from-outcome>
            <to-view-id>/jsf/tileMain.jsp?navigator=/jsf/tab.jsp</to-view-id>
        </navigation-case>
     </navigation-rule>That works for the first click. The desired page is shown. The nect click anywhere in the app then show the mentioned error.
Using tiles I use this view-handler
<view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</view-handler>One question is: can I use another view-handler on top of the above one? So I could extend com.sun.facelets.FaceletViewHandler and try my luck with this? Or is the solution pointed out just a millisecond from being ok, I just don�t see it?
Maybe you need to know a bit more on how I use tiles:
That is the page I start with. It inserts the tile shown underneath.
<f:view locale="#{userLocale}">
     <f:loadBundle var="localz" basename="my.com.xplorer.gui.v.Lokalization" />
     <f:loadBundle var="bundle" basename="my.com.xplorer.gui.v.messages" />
     <f:subview id="tileMain">
          <h:form id="myJsfForm" styleClass="standard">
                    <tiles:insert definition="template" flush="false" />
          </h:form>
     </f:subview>
     <h:messages />
</f:view>
</html>The foolowing is the tile structure.
The bodi tile is the dynamic part. Above you see that I dynamically load the pages into it.
<t:htmlTag value="div" styleClass="pageLayout">
     <h:panelGrid columns="2" align="center" styleClass="pageContent">
          <f:facet name="header">
               <f:subview id="header">
                    <tiles:insert attribute="header" flush="false" />
               </f:subview>
          </f:facet>
          <t:htmlTag value="div" styleClass="pageMenu">
               <f:subview id="menu">
                    <tiles:insert attribute="menu" flush="false" />
               </f:subview>
          </t:htmlTag>
          <t:htmlTag value="div" styleClass="pageContentWoMenu">
               <f:subview id="bodi">
                    <tiles:insert attribute="bodi" flush="false" />
               </f:subview>
          </t:htmlTag>
          <f:facet name="footer">
               <f:subview id="footer">
                    <tiles:insert attribute="footer" flush="false" />
               </f:subview>
          </f:facet>
     </h:panelGrid>
</t:htmlTag>Maybe you also need to know the tiles config?
<tiles-definitions>
   <definition name="template" path="/jsf/tileTemplate.jsp">
          <put name="header"  value="/jsf/header.jsp"/>
      <put name="menu"    value="/jsf/menu.jsp"/>
      <put name="bodi"    value="/jsf/bodi.jsp"/>
      <put name="footer"    value="/jsf/footer.jsp"/>
   </definition>
   <definition name="/jsf/news.tiles" extends="template">
          <put name="bodi"  value="/jsf/news.jsp"/>
   </definition>
   <definition name="/jsf/explorer.tiles" extends="template">
          <put name="bodi"  value="/jsf/explorer.jsp"/>
   </definition>
   <definition name="/jsf/tab.tiles" extends="template">
          <put name="bodi"  value="/jsf/tab.jsp"/>
   </definition>If you have read until here: thanks very much.
There seems to be a sort of gap regarding jsf navigation documentation.
I mean the ordinary way is covered everywhere (the book I have covers that too), but jscookmenu seems not to fit in too good. I also tried it with an actionslistener in the jscookmenu but that failed, too. So a link to documents telling the truth on jsf navigation I would appreciate very much.
Kind regards
Belle Ile En Mer

This is the error i am getting into now..
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /welcomeJSF.jsp at line 19
16: This file is an entry point for JavaServer Faces application.
17: --%>
18: <body>
19: <f:view>
20: <h3><h:outputText value="CHOULTRY'S IN BANGALORE" /></h3>
21: <h:form>
22: <table border="0">
Stacktrace:
     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.RuntimeException: Cannot find FacesContext
     javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1811)
     javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1628)
     org.apache.jsp.welcomeJSF_jsp._jspx_meth_f_005fview_005f0(welcomeJSF_jsp.java:112)
     org.apache.jsp.welcomeJSF_jsp._jspService(welcomeJSF_jsp.java:86)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Similar Messages

  • Unable to display Popup page while using JSF Tiles

    Hi All,
    I am using JSF Tiles. In the body page i am trying to open a pop up page through java script. bt i got the 500 internal server error. The popup open properly when there is no html or core jsf tags. can anyone help me abt this problem.
    Thanks.

    For future JSP/Servlet related questions please use the JSP/JSTL forum or the Servlet forum. There are more experts.
    As to your problem: did you read a basic JSP/Servlet book/tutorial? Did you read the [Tomcat documentation|http://tomcat.apache.org/tomcat-6.0-doc/index.html]? Your problem more sounds like you missed something trivial.

  • How do I use Struts Tiles with JavaServer Faces?

    I want to use JavaServer Faces and need something like tiles.
    Is it right that tiles is for struts what Portlets is for JavaServer Faces?
    Do I have to use Portlets or is there something else?
    What Do I have to do to use Portlets?
    Do I have to use any "engines" or something like that?
    Thanks

    Miikee_
    I guess you understood me wrong!
    JSF RI (and also MyFaces) are implementation of JavaServer Faces Spec.
    Each JSF app needs to be deployed inside of a Servlet Container.
    (like Tomcat). An no, they aren't coming up with an own servlet engine.
    But... you can also run MyFaces and the RI inside of an portlet container
    (eg pluto) instead of Servlet Container.
    HTH,
    Matthias

  • JSF, tiles, xml and xsl

    Good days people, I am employed at an app that wants to integrate JSF, tiles, xml and xsl.
    Basically the app receives information of the user's interfaz, builds an url with the above mentioned information and invokes to a service web that a xml returns with the information. The idea is to generate the exit in format html or wml with an insole(staff) xsl and to send the result in this format to every jsp that is going to form a part of the page that it will generate tiles. at first I understand that it is feasible, i�d like to know if someone already has done it and since it has done it.
    Just now what I have is a managed bean that receives the parameters of the altar frontal and invokes a method of a service, like this:
    public String encuentra(){
    //deja los atributos privados rellenos.
    String mensaje ;
    crearYRellenarBusquedaVO();
    try {
    setResultado(this.getServicio().obtenerResultadosWML(this.getBusquedaVO()));
    mensaje="succesNoJS";
    }catch(java.lang.IllegalArgumentException e){
    mensaje="error";
    }catch(es.yell.frontlite.exceptions.SrvBusquedaNoxtrumServiceException e1){
    mensaje="error";
    }catch(Exception e2){
    mensaje="error";
    return mensaje;
    public String obtenerResultadosWML(es.yell.frontlite.service.impl.BusquedaVO busquedaVO){
    if (busquedaVO == null){
    throw new IllegalArgumentException(
    "obtenerResultadosJSdesactivado(es.yell.frontlite.service.impl.BusquedaVO busquedaVO) - 'busquedaVO' no puede ser nulo.");
    try{
    return this.manejarObtenerResultadosWML(busquedaVO);
    }catch(es.yell.frontlite.exceptions.SrvBusquedaNoxtrumServiceException e1){
    throw new es.yell.frontlite.exceptions.SrvBusquedaNoxtrumServiceException(
    "Error ejecutando el servicio String obtenerResultadosJSdesactivado(es.yell.frontlite.service.impl.BusquedaVO busquedaVO). " + e1.getCause(),e1);
    }catch(Exception e){
    throw new es.yell.frontlite.exceptions.SrvBusquedaNoxtrumServiceException(
    "Error ejecutando el servicio String obtenerResultadosJSdesactivado(es.yell.frontlite.service.impl.BusquedaVO busquedaVO). " + e.getCause(),e);
    //it returns html code!
    protected String manejarObtenerResultadosWML(es.yell.frontlite.service.impl.BusquedaVO busquedaVO)
    throws java.lang.Exception{
    try{
    // xmlOrigen has full xml response from server
    String xmlOrigen = manejarObtenerResultadosJSActivado(busquedaVO);
    Source xmlSource = new StreamSource(new StringBufferInputStream(xmlOrigen));
    Source xsltSource = new StreamSource(SrvBusquedaNoxtrumServiceImpl.class.getResourceAsStream(Constantes.XSL_FILE));
    StringWriter cadenaSalida = new StringWriter();
    Result bufferResultado = new StreamResult(cadenaSalida);
    TransformerFactory factoriaTrans = TransformerFactory.newInstance();
    Transformer transformador = factoriaTrans.newTransformer(xsltSource);
    transformador.transform(xmlSource, bufferResultado);
    System.out.println(cadenaSalida.toString());
    return cadenaSalida.toString();
    }catch(Exception e2){
    throw new es.yell.frontlite.exceptions.SrvBusquedaNoxtrumServiceException (e2.getMessage());
    With this exit in html, since(as,like) how could i forward it towards a jsp especially?
    faces-config.xml
    <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    <navigation-case>
    <from-outcome>succesNoJS</from-outcome>
    <to-view-id>/jsDesactivado.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>error</from-outcome>
    <to-view-id>/error.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    index.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <f:view>
    <f:loadBundle basename="MessageResources" var="msg"/>
    <head>
    <title>
    ${msg.titulo}
    </title>
    </head>
    <body>
    <h:form id="formulario">
    Que:
    <h:inputText id="campoQue" value="#{yellProxy.campoQue}" />
    Donde
    <h:inputText id="campoDonde" value="#{ yellProxy.campoDonde}" />
    <h:commandButton id="boton" value="Encuentra" action="#{yellProxy.encuentra}"/>
    </h:form>
    </f:view>
    </body>
    </html>
    jsDesactivado.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
    you must also add the JSTL library to the project. The Add Library... action
    on Libraries node in Projects view can be used to add the JSTL 1.1 library.
    --%>
    <%--
    <%@taglib uri=" http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    " http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>
    jsDesactivado!!
    <%--
    This example uses JSTL, uncomment the taglib directive above.
    To test, display the page like this: index.jsp?sayHello=true&name=Murphy
    --%>
    <%--
    <c:if test="${param.sayHello}">
    <!-- Let's welcome the user ${param.name} -->
    Hello ${param.name}!
    </c:if>
    --%>
    <jsp:getProperty name="yellProxy" property="resultado"/>
    </body>
    </html>
    If you could pass me a simple example of use of an app that uses JSF, tiles, xml and xsl, i�be grateful
    regards a lot!

    We too (at Viking Freight) would also be very interested to see if anybody
    has produced such a useful series of classes...
    Frank Lees, Developer
    -----Original Message-----
    From: Amin, Kamran [mailto:kamran.aminframeworkinc.com]
    Sent: Wednesday, January 19, 2000 12:11 PM
    To: 'Forte User'
    Subject: (forte-users) XML and XSL in Forte
    Has anybody integrated an XSL parser with Forte. I know Forte provides us
    with an XML parser but that does not help with parsing XSL. There a lot of
    parsers written in JAVA but that will not integrate well with Forte. We
    need something that will be easy to integrate with Forte. This parser will
    take our XML and XSL to give us a result set. If anybody can comment on the
    subject or share some information I would appreciate it.
    thanks in advance.
    ka
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.sageit.com

  • Issue in using JSF and tiles

    Hai,
    I am using JSF and tiles in my application along with richfaces 3.2 jar but the suggestion box does not work when i use incorporate tiles to the jsp page,Please help me out.Here is my code
    Content Page
    <%@ taglib prefix= "f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"  %>
    <%@ taglib uri="http://java.sun.com/jsf/core"   prefix="f"  %>
    <%@ taglib uri="http://java.sun.com/jsf/html"   prefix="h"  %>
    <%@ taglib uri="http://jakarta.apache.org/tiles"  prefix="tiles"  %>
         <f:view >
             <link href="<%=request.getContextPath()%>\styles\Form.css" rel="stylesheet" type="text/css"/>
             <link href="<%=request.getContextPath()%>\styles\Menu.css" rel="stylesheet" type="text/css"/>
             <link href="<%=request.getContextPath()%>\styles\Header.css" rel="stylesheet" type="text/css"/>
             <title><h:outputText value="Brand"/></title>
             <h:form id="testForm">
                 <tiles:insert definition="test_create" flush="false"/>
             </h:form>
         </f:view>JSP
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <f:subview id="come">
    <body>
    <h:form>
    <h:outputText value="Provider:" styleClass="SubTitle" />
    <h:inputText value="#{testMBean.property}" size="25" id="dpiSuggest" styleClass="SubTitle">
        <a4j:support event="onkeyup" />
    </h:inputText>   
    <rich:suggestionbox for="dpiSuggest" suggestionAction="#{testMBean.suggest}" height="180" width="180" var="suggest">
    <h:column>
    <h:outputText value="#{suggest.countryName}" />
    </h:column>
    <h:column>
    <h:outputText value="#{suggest.countryCode}" />
    </h:column>
    </rich:suggestionbox>
    </h:form>
    </body>
    </f:subview>
    </html>
    *tiles.xml*
    <tiles-definitions>
        <definition name="header-menu-content" path="/layout/basicLayout.jsp">
            <put name="gridClass"           value="headerMenuContent"/>  
            <put name="headerClass"         value="HeaderBgcolor"/>
            <put name="menuColumnClass"     value="MenuBorder"/>
            <put name="contentColumnClass"  value="BodyBgColor"/>
        </definition>
        <definition name="home" extends="header-menu-content">
            <put name="header"  value="/common/header.jsp"/>
            <put name="menu"    value="/common/menu.jsp"/>
            <!--<put name="buttonBar" value="/common/buttonBar.jsp"/>-->
            <put name="content" value="/common/home.jsp"/>     
        </definition>
        <definition name="error" extends="header-menu-content">
            <put name="header"  value="/common/header.jsp"/>
            <put name="menu"    value="/common/menu.jsp"/>
            <!--<put name="buttonBar" value="/common/buttonBar.jsp"/>-->
            <put name="content" value="/common/error.jsp"/>     
        </definition>
            <definition  name="test_create" extends="header-menu-content">
                 <put name="header" value="/common/header.jsp" />
                 <put name="menu" value="/common/menu.jsp" />
                 <!-- <put name="buttonBar" value="/common/buttonBar.jsp"/>-->
                 <put name="content" value="/test.jsp" />
             </definition>
        <tiles-definitions>
    *web.xml*
    <?xml version="1.0" encoding="UTF-8"?>
    <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">
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>welcome.jsp</welcome-file>
            </welcome-file-list>
             <context-param>
        <param-name>com.sun.faces.verifyObjects</param-name>
        <param-value>false</param-value>
      </context-param>
      <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
      </context-param>
      <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
      </context-param>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
    <context-param>
      <param-name>org.richfaces.SKIN</param-name>
      <param-value>blueSky</param-value>
      </context-param>
    <filter>
      <display-name>RichFaces Filter</display-name>
      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>
      </filter>
    <filter-mapping>
      <filter-name>richfaces</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>
            <servlet>
          <servlet-name>Tiles Servlet</servlet-name>
          <servlet-class>org.apache.tiles.servlets.TilesServlet</servlet-class>
          <init-param>
             <param-name>definitions-config</param-name>
             <param-value>/WEB-INF/tiles.xml</param-value>
          </init-param>
          <load-on-startup>2</load-on-startup>
       </servlet>
        </web-app>
    *facesconfig.xml*
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config version="1.2"
                  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">
        <navigation-rule>
                <navigation-case> <!-- Displayes the screen to add data -->
                <from-outcome>test</from-outcome>
                <to-view-id>/testContent.jsp</to-view-id>
                <redirect/>
            </navigation-case>
        </navigation-rule>
        <managed-bean>
            <managed-bean-name>testMBean</managed-bean-name>
            <managed-bean-class>testMBean</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
      </faces-config>Edited by: SreeramIyer on May 29, 2008 4:50 AM

    Are you dead set on using tiles? I can see tiles including JSF but JSF including tiles? Not sure if that will work.
    My suggestion is to use Trinidad. It has the concept of Regions which is very "tiles" like and you will be far more successful.

  • Problem in navigation of portletized JSf application using ADF on portal

    Hi All,
    I am implementing a simple scenario wherein i have an ADF Business Component (a simple drop down) and a command button. On click of the button, there is a navigation from one jsp to another.
    I am able to portletize a simple application using ADF Business Component.It runs fine when run on local.
    But when i put it on portal, navigation does not work.the control is not transferred to the method of backing bean.It is not showing loggers either.
    jdev version :10.1.3.3
    oracle portal :10.1.4
    Standalone OC4j : 10.1.3
    If any one has working model of this, can you pls post the files used.
    Also , if anyone has work around for same, it will be helpful.Thanks.
    Portlet.xml
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <portlet-app version="1.0"
    xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
    id="com.vodacom.portlet.ServiceFaultPortlet.af7cec80b0013456">
    <portlet>
    <portlet-name>ServiceFault</portlet-name>
    <display-name>ServiceFault</display-name>
    <portlet-class>oracle.portlet.server.bridges.jsf.FacesPortlet</portlet-class>
    <init-param>
    <name>DefaultPage.view</name>
    <value>/index.jspx</value>
    </init-param>
    <init-param>
    <name>BridgeLifecycleListeners</name>
    <value>
    oracle.portlet.server.bridges.jsf.adf.ADFFacesBridgeLifecycleListener,oracle.portlet.server.bridges.jsf.adf.BindingFacesBridgeLifecycleListener
    </value>
    </init-param>
    <supports>
    <mime-type>text/html</mime-type>
    <portlet-mode>VIEW</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
    <title>Service Faults</title>
    <short-title>Service Faults</short-title>
    </portlet-info>
    </portlet>
    </portlet-app>
    faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
    <managed-bean-name>Index</managed-bean-name>
    <managed-bean-class>view.backing.Index</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1index.jspx-->
    </managed-bean>
    <lifecycle>
    <phase-listener>oracle.adf.controller.faces.lifecycle.ADFPhaseListener</phase-listener>
    </lifecycle>
    <application>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>
    <navigation-rule>
    <from-view-id>/index.jspx</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/welcome.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app 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" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.application.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml,/WEB-INF/portlet.xml</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>view.DataBindings</param-value>
    </context-param>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>
    Regards,
    Alpa
    Message was edited by:
    user648923
    Message was edited by:
    user648923

    Hi deepak,
    I have post the same message in web center forum.The link for the same is :
    Re: Navigation problem in JSF portlet when using ADF
    Also i had seen that post and had tried some solutions provided.Nothing worked for me.And i am using portlet faces bridge provided by oracle in jdeveloper 10.1.3.3 version.
    Regards,
    Alpa

  • Tree2 in Tomahawk  and JSF Tiles Implementation

    hi All,
    right now i mfacing one problem. which arise due to tiles implementation in JSF with Tree2 component of Tomahawk. i had created one tree menu using Tree2.
    its working fine, but i was not able to highlight selected child node of tree menu as i m using tiles implementation so all pages gets reloaded on every click on jsp. thus color of that selected node becomes as it is.
    please note that i m using myfaces implementation.
    what i have written is as below:
    <t:tree2 id="wrapTree" value="#{frontPage.catTree}" var="node" clientSideToggle="true"
                             showRootNode="false" varNodeToggler="t">
                                  <f:facet name="parent-one">
                                  <h:panelGrid id="parentOne" columns="1" cellpadding="0" cellspacing="0" border="0">
                                            <h:commandLink styleClass="textorg" immediate="true" action="#{categoryListBean.showCategoryDetail}">
                                  <h:outputText escape="false" value="#{node.description} "/>
                                       <f:param name="categoreId" value="#{node.identifier}"/>
                             </h:commandLink>
                                  </h:panelGrid>
                   </f:facet>
                   <f:facet name="top-parent">
                   <h:panelGrid id="topParent" columns="1" cellpadding="2" cellspacing="0" border="0" align="left">
                   <h:commandLink styleClass="txtbold" immediate="true" action="#{categoryListBean.showCategoryDetail}">
                   <h:outputText escape="false" value="#{node.description} "/>
                   <f:param name="categoreId" value="#{node.identifier}"/>
                   </h:commandLink>
                   </h:panelGrid>
                   </f:facet>
                   <f:facet name="child">
                   <h:panelGroup id="Child">
                             <h:commandLink styleClass="#{t.nodeSelected ? 'headerRedText':'txt1'}" actionListener="#{t.setNodeSelected}" immediate="true">
                   <h:outputText value="#{node.description}"/>
                        <f:param name="categoreId" value="#{node.identifier}"/>
                   </h:commandLink>
                   </h:panelGroup>
                   </f:facet>
                             </t:tree2>
    please help me if u have solution of this problem.
    thank you.

    hi,
    in MyFaces there is an example using JSF and Tiles.
    MyFaces provides a custom ViewHandler faciltity.
    see http://sourceforge.net/projects/myfaces
    hope that helps.
    Regards,
    Matthias

  • Issues in using JSF UI:Tree tag

    Hi,
    I am trying to work with Tree Structure using JSF UI tags. In Studio Creator i just created a JSP page and designed a Tree with two nodes under it. This is what i have in the body of my jsp.
    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{Page1.form1}" id="form1">
    <ui:tree binding="#{Page1.tree1}" id="tree1" style="left: 48px; top: 48px; position: absolute" text="L3">
    <ui:treeNode binding="#{Page1.treeNode1}" expanded="true" id="treeNode1" style="width: 408px" text="Tree Node 1">
    <f:facet name="image">
    <ui:image binding="#{Page1.image1}" icon="TREE_DOCUMENT" id="image1"/>
    </f:facet>
    </ui:treeNode>
    <ui:treeNode binding="#{Page1.treeNode2}" expanded="true" id="treeNode2" text="Tree Node 2">
    <f:facet name="image">
    <ui:image binding="#{Page1.image2}" icon="TREE_DOCUMENT" id="image2"/>
    </f:facet>
    </ui:treeNode>
    </ui:tree>
    </ui:form>
    </ui:body>
    But when i am trying to launch the jsp page from browser i am getting the below exception.
    com.sun.rave.web.ui.appbase.ApplicationException
    Caused by: java.lang.NullPointerException at java.io.File.(File.java:194) at com.sun.rave.web.ui.renderer.template.xml.XMLLayoutDefinitionManager.getLayoutDefinition(XMLLayoutDefinitionManager.java:142) at com.sun.rave.web.ui.component.TemplateComponentBase.getLayoutDefinition(TemplateComponentBase.java:150) at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeBegin(TemplateRenderer.java:73) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
    Any suggestion to solve this issue would be greatly helpful.

    Now with Unified EL - JSTL and JSF tags are supposed to work on one page.
    If you want to use Unified EL you need
    1) A container that is built on Servlet 2.5 / JSP 2.1 , and example of such a container is Tomcat 6.x
    2) Probably need to upgrade to JSTL 1.2 , and JSF 1.2
    3) If you're upgrading the container to Servlet 2.5 then web.xml should conform to Servlet 2.5 version.
    4) Use correct taglib URIs for JSTL 1.2 and JSF 1.2
    Read here: Summary of new features in JSP 2.1
    http://java.sun.com/developer/technicalArticles/J2EE/jsp_21/index.html
    JSP 2.1 Technology and JSF 1.2 Technology
    http://java.sun.com/developer/community/chat/JavaLive/2004/jl1207.html
    http://java.sun.com/products/jsp/index.jsp
    Message was edited by:
    appy77

  • Jsf newbie :: converter and navigation issues

    Hi,
    Iam facing a problem in my first jsf application.
    Iam using jsf 1.1 and tomcat 5.5.7
    I have a UserBean with a single attribute userName (which has public getter and setter methods).
    * I have an index.jsp that redirects to login.faces.
    * I have the appropriate servlet url-mapping in my web.xml that maps *.faces to the FacesServlet
    Here's the code for login.jsp
    <f:view>
       <h:form>
             <h3>Please enter your name </h3>
         <table>
          <tr>
              <td>Name:</td>
            <td><h:inputText id = "name" value="#{user.userName}"/></td>
         </tr>               
         </table>
         <p><h:commandButton value="Login" action="welcome"/>
         </p>
         </h:form>
       </body>
    </f:view>Next I have a welcome.jsp which simply outputs Hello <userName>
    <f:view>
      <h:form>
         <h:outputText value="#{user.userName}"></h:outputText>
      </h:form>
    </f:view>And this is my faces-config.xml
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
         <managed-bean>
              <managed-bean-name>user</managed-bean-name>
              <managed-bean-class>com.myjsf.UserBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <navigation-rule>
              <from-view-id>/index.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>welcome</from-outcome>
                   <to-view-id>/welcome.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>Now when I start my application , the index page redirects me to login.faces. I believe the FacesServlet intercepts this call, strips of .faces and forwards to login.jsp. Login.jsp is displayed correctly, so far so good. However from here on, I have all kinds of problems
    1. Should the <from-view-id> be /index.jsp (my actual url) or /login.jsp (the url to which index.jsp forwards me to). Actually both seem to work (or not work depending on how you look at it :( )
    2. Anyways whatever I set it to, the login.jsp is displayed correctly. The action attribute of the commandButton tag is set to 'welcome' which matches with the <from-outcome> value in navigation rule in faces-config.xml and I would have expected the welcome.jsp to load on form submit.
    But the form just reloads itself on clicking submit.
    I googled around and discovered that this may be due to validation errors or conversion errors and adding <h:messages/> would indicate the error source. AQccordingly I added it and got this o/p
    " "name": " Conversion Error setting value 'Duke' for 'null Converter'. To cut a long agony story short, I found that I have to define a converter for some data types for validation and/or display. But all I have is a String property. Doesnt jsf provide a default Converter ?
    3. I couldnt get my app to work when I put my jsps in a folder and access them as /<foldername>/jsp in my faces-config.xml. Isnt this possible ? Should all jsps be under the root folder ?
    Will be thankful for any help.
    cheers,
    ram.
    2. Whenever I click on

    Thanks for the reference , I shall definitely go through it.
    My immediate concern is to get the first program working.
    Here is my source code for the bean.
    package com.myjsf;
    import java.io.Serializable;
    public class UserBean implements Serializable {
        private String userName;  
        public String getUserName() {
            return userName;
        public void setName(String userName) {
            this.userName = userName;
    }Here's my login.jsp which comes up fine
    <f:view>
       <h:form>
         <h:messages/>
             <h3>Please enter your name.</h3>               
                 Name: <h:inputText id = "userName" value="#{user.userName}"/><br>
                  <h:commandButton value="Login" action="welcome"/>
         </h:form>
      </f:view>Here's my faces-config.xml
    <faces-config>
         <managed-bean>
              <managed-bean-name>user</managed-bean-name>
              <managed-bean-class>com.myjsf.UserBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <navigation-rule>
              <from-view-id>/login.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>welcome</from-outcome>
                   <to-view-id>/welcome.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>     And this is the error that I get
    "userName": Conversion error occurred. The page gets displayed again. One thing I noticed was that in the html - view source the action attribute of the form tag is set to /myjsf/faces/login.jsp. Shouldnt it be welcome.jsp rather ?
    Iam at my wits end. I have decided to write a Converter which may solve my problem, but is it required ?
    Please help.
    Thanks,
    Ram.

  • Strange Navigation Issues After Using Pop-up Menu

    I have a Blu-ray project I'm working on.  It's 1920x1080 resolution. 
    I have a main menu and then seven sub-menus as chapter-selection menus for three different videos.
    The Main Menu has four buttons.  Button one is a highlights video, button two takes the user to the first of three chapter-selection menus for the first video.  Button three takes the user to the first of two chapter-selection menus for the second video and button four takes the user to the first of two chapter-selection menus for the third video.  I have transitions from the main menu to each of the three chapter-selection menus and back from any of the seven chapter-selection menus to the main menu.
    I also have a pop-up menu with the same four buttons on it as the main menu, except that the top button takes you to the main menu rather than playing the highlights video.
    The problem I have is that all of the navagition works fine when moving around the menus, unless you open the pop-up menu during a video and navigate to one of the chapter-selection menus.  When you do this, it works.  It goes to the first page of the chapter-selection menu for any of the three videos, but if you then go to the main menu from there (each chapter-selection menu has a "back to main menu" button on it), it will play the transition, but then jump you to one of the chapter-selection menus for the video who's chapter-selection menu you were just on.
    For example:  If I play the highlights video and while it's playing I open the pop-up menu and choose Video 3, it will take me to the first chapter-selection menu for Video 3.  If, once that menu comes up, I then scroll down to the "Back to Main Menu" button on that page and choose it, the transition from that menu to the Main Menu will play, but after it finishes, the Blu-ray will jump to the last chapter-selection menu page for Video 3.  If I then navigate back to menu page 1 of the chapter-selection menus for Video 3 and choose the exact same "Back to Main Menu" button, the transition will play again and this time the Main Menu will open up.
    The links for all of the menu buttons are correct, I've check them numerous times.  It just seems that they get screwed up after you've navigated somewhere from the pop-up menu.
    Sorry this is so long, but I wanted to try to explain it as best as possible.
    Any suggestions?
    Thanks.

    Hey Shark.  I read your explanation of what's happening, but I am not sure why you are having that weird navigation issue.  There are a lot of weird anomalies that happen with Encore authored blu-rays, and things that just don't work that really should.  For the price, it does the job, but there are limitations.
    Last year when I started using it for blu-ray authoring, there were non-stop road blocks and things to overcome.
    Check out the documented misery.  It gets better at the end  .
    http://forums.adobe.com/message/3446748#3446748

  • Forward to Tiles definition from faces-config.xml

    Hello,
    can anybody explain me how to make a forward to a Tiles definition from the faces-config.xml file? I�m using MyFaces with Tomahawk and Tiles, but I also tried with Jsf without myFaces and lots of combinations but I can�t fix it.
    Here is my faces-config file:
    <faces-config>
    <navigation-rule>
    <from-view-id>/pages/JP000.jsp</from-view-id>
    <navigation-case>
    <from-outcome>loginFrm</from-outcome>
    <to-view-id>/JP002.tiles</to-view-id>
    </navigation-case>
    </navigation-rule>
    <application>
    <view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</view-handler>
    </application>
    </faces-config>
    and this is the tiles-defs.xml:
    <tiles-definitions>
         <!-- === layouts === -->
         <definition name="general.menu"
              path="/pages/tiles/templates/general.menu.jsp">
              <put name="titleHTML" type="string"     value="mi_title" />
              <put name="menu" value="/pages/tiles/menu.jsp" />
         </definition>
         <!-- === pages === -->
         <definition name="JP002.tiles" extends="general.menu">
              <put name="titleHTML" type="string"     value="mi_title" />
              <put name="content" value="/pages/menus/JP002.jsp" />
              <put name="menu" value="0" />
         </definition>
    </tiles-definitions>
    Lots of thanks!!!!

    Today I downloaded tomahawk-examples-1.1.5-bin. (http://myfaces.apache.org/download.html). They have one example with tiles, and it works the way I want it to.
    I'm still trying to figure it out what is causing this behaviour.
    At least, I tried to change the value they're using for linkage between <to-view-id> and tiles definition, and found that JSF is still ignoring the real value in <to-view-id>
    : it was originally 'blah.jsp', but 'blah' or 'blah.tiles' worked the same way, while in tiles definition the corresponding name was always blah.tiles.
    It seems that they are looking into tiles definitions first with the key composed of the first part of the value in <to-view-id> (before the dot) concatenated with hardcoded '.faces'.
    I tried to change the key value in both config files to something like 'blah.ttt', and it did not work.
    I'm not sure at the moment if this would be a problem for me, I may use this framework, knowing the limitations.
    Also, I'll look into the code, if this may be altered and at what cost.
    Still, the basic jsf problem with always interpreting the value in <to-view-id> as blah.jsp remains.

  • JSF & Tiles integration

    Hi Freinds,
    I m new to JSF and I m looking for some tutorial/article/guide or war file which uses the JSF implementation with tiles.
    Need urgently.
    Thanking in advance.
    regards,
    Novin

    Hello,
    i'm trying to use MyFaces+Tiles.
    I done this steps:
    1) put struts.jar in WEB-INF/lib
    2) add follow lines in web.xml
    <context-param>
            <param-name>tiles-definitions</param-name>
            <param-value>/WEB-INF/tiles-defs.xml</param-value>
    </context-param>
    <context-param>
         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
         <param-value>.tiles</param-value>
    </context-param>
    <!-- Faces Servlet Mapping -->
         <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>/faces/*</url-pattern>
         </servlet-mapping>3) add follow in application tag of faces-config.xml
    <view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</view-handler>4) make file tiles-defs.xml and put it in WEB-INF dir, some its lines are
    <!DOCTYPE tiles-definitions PUBLIC
           "-//Apache Software Foundation//DTD Tiles Configuration//EN"
           "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <tiles-definitions>
        <definition name="layout.base" path="/index.jsp" >
            <put name="header" value="/header.jsp" />
            <put name="body" value="" />
            <put name="footer" value="/footer.jsp" />
        </definition>
        <definition name="/index.tiles" extends="layout.base" >
            <put name="body" value="/body_index.jsp" />
        </definition>
    ...5) index.jsp is this (partial)
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <f:view>
         <head>
              <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
              <title><f:verbatim>index</f:verbatim></title>
              <link rel="stylesheet" type="text/css" href="css/style.css" />
         </head>
         <body >
              <div id="topPanel">
                   <f:subview id="header">
                     <tiles:insert attribute="header" flush="false"/>
                   </f:subview>
              </div>
              <div id="bodyPanel">
                   <f:subview id="body">
                     <tiles:insert attribute="body" flush="false"/>
                   </f:subview>
              </div>
              <div id="footerPanel">
                   <f:subview id="footer">
                     <tiles:insert attribute="footer" flush="false"/>
                   </f:subview>
              </div>6) header.jsp follow
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
    <h:form>
         <ul>
              <li><h:commandLink action="login">Contattaci</h:commandLink></li>
              <li><h:commandLink action="login">Chi siamo</h:commandLink></li>
              <li class="active"><h:commandLink action="index">Home</h:commandLink></li>
         </ul>
    ...other pages are similar
    7) i used a html page for redirect it follow
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Refresh" content="0; URL=faces/index.tiles" />
    <title>Index</title>
    </head>
    <body>
    </body>
    </html>The problem is: the page displayed (after invoke index.html) is empty, no errors on server.
    Why?
    How i can solve?
    Regards.

  • Error on running the .portal on the weblogic portal server 10.3.2 using jsf

    Hi,
    This are the below file that i have included in the project
    login.jspx
    <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ice="http://www.icesoft.com/icefaces/component">
    <jsp:directive.page contentType="text/html;charset=utf-8" />
    <f:view>
    <ice:outputDeclaration doctypeRoot="HTML"
    doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
    doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
    <html>
    <head>
    <title>ICEfaces,Login Portlet</title>
    <link rel="stylesheet" type="text/css"
    href="./xmlhttp/css/rime/rime.css" />
    </head>
    <body>
    <ice:portlet>
    <ice:outputText value="Welcome to ICEfaces." />
    <ice:form>
    <ice:outputText value="Username" />
    <ice:inputText id="name_t" value="#{Login.userName}"></ice:inputText>
    <ice:outputText value="Password"/>
    <ice:inputText id="password_t" value="#{Login.password}"></ice:inputText>
    <ice:commandButton action="#{Login.checkUserPass}" value="OK"></ice:commandButton>
    </ice:form>
    </ice:portlet>
    </body>
    </html>
    </f:view>
    </jsp:root>
    faces-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <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">
    <application>
    <view-handler>
    com.icesoft.faces.facelets.D2DFaceletViewHandler
    </view-handler>
    <locale-config>
    <supported-locale>de</supported-locale>
    <supported-locale>en</supported-locale>
    </locale-config>
    </application>
    <managed-bean>
    <managed-bean-name>Login</managed-bean-name>
    <managed-bean-class>com.pack.login.Login</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>userName</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
    </managed-property>
    <managed-property>
    <property-name>password</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
    </managed-property>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/login.jspx</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/success.iface</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>failure</from-outcome>
    <to-view-id>/failure.iface</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    portlet.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <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">
    <application>
    <view-handler>
    com.icesoft.faces.facelets.D2DFaceletViewHandler
    </view-handler>
    <locale-config>
    <supported-locale>de</supported-locale>
    <supported-locale>en</supported-locale>
    </locale-config>
    </application>
    <managed-bean>
    <managed-bean-name>Login</managed-bean-name>
    <managed-bean-class>com.pack.login.Login</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>userName</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
    </managed-property>
    <managed-property>
    <property-name>password</property-name>
    <property-class>java.lang.String</property-class>
    <value></value>
    </managed-property>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/login.jspx</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/success.iface</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>failure</from-outcome>
    <to-view-id>/failure.iface</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    Login.java
    package com.pack.login;
    import javax.faces.application.FacesMessage;
    import javax.faces.context.FacesContext;
    public class Login {
    public String getUserName() {
    return userName;
    public void setUserName(String userName) {
    this.userName = userName;
    public String getPassword() {
    return password;
    public void setPassword(String password) {
    this.password = password;
    private String userName;
    private String password;
    public String checkUserPass(){
    FacesContext facesContext = FacesContext.getCurrentInstance();
    if("icefaces".equals(getUserName()) && "icefaces".equals(getPassword())) {
    return"success";
    FacesMessage facesMessage = new FacesMessage(
    "You have entered an invalid user name and/or password");
    facesContext.addMessage("Login", facesMessage);
    return "failure";
    What are the classes or interfaces that we need to use to render the content and to the process the action in jsf-portlet + icefaces libraris + weblogic portal server 10.3.2
    I have created the .portal file and i have included the instance of the .portlet file in the portal page. When i run .portal file on the server it will throw the below exception.
    <Warning> <netuix> <BEA-423319> <A default JSP response character encoding was not found for webapp [Portal]. Defaulting to [UTF-8]. You can override this default response character encoding for all portals in netuix-config.xml or for each portal or desktop in each portal or desktop definition.>
    12, 2010 9:57:05 AM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /login.jspx) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@18fddac]
    <Error> <netuix> <BEA-423405> <An exception [java.lang.NullPointerException] was thrown while rendering the content at [login.jspx].
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    Truncated. see log file for complete stacktrace
    >
    <Error> <netuix> <BEA-423137> <There was an error loading the requested URI /login.jspx.>
    Login Error opening /login.jspx.
    The source of this error is:
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
    at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
    at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:488)
    at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:152)
    at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
    at jsp_servlet._framework._skeletons._bighorn.__flowlayout._jspService(__flowlayout.java:175)
    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.include(RequestDispatcherImpl.java:429)
    at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:148)
    at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
    at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:168)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:465)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:291)
    at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:231)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:216)
    at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:275)
    at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:719)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    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.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    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:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    at com.bea.portlet.adapter.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:77)
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    ... 71 more
    I have created the .portal file and i have included the instance of the .portlet file in the portal page. When i run .portal file on the server it will throw the below exception.
    <Warning> <netuix> <BEA-423319> <A default JSP response character encoding was not found for webapp [Portal]. Defaulting to [UTF-8]. You can override this default response character encoding for all portals in netuix-config.xml or for each portal or desktop in each portal or desktop definition.>
    12, 2010 9:57:05 AM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /login.jspx) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@18fddac]
    <Error> <netuix> <BEA-423405> <An exception [java.lang.NullPointerException] was thrown while rendering the content at [login.jspx].
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    Truncated. see log file for complete stacktrace
    >
    <Error> <netuix> <BEA-423137> <There was an error loading the requested URI /login.jspx.>
    Login Error opening /login.jspx.
    The source of this error is:
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
    at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
    at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:488)
    at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:152)
    at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
    at jsp_servlet._framework._skeletons._bighorn.__flowlayout._jspService(__flowlayout.java:175)
    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.include(RequestDispatcherImpl.java:429)
    at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:148)
    at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
    at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:168)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:465)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:291)
    at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:231)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:216)
    at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:275)
    at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:719)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    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.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    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:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    at com.bea.portlet.adapter.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:77)
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
    at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
    ... 71 more
    Thanks in advance.

    First you install a JDK6 version after which you can install your WebLogic and Forms, Reports...
    A step-by-step example is presented here: http://middlewaremagic.com/weblogic/?p=7265
    Look in the 'Install WebLogic' section. Note that you probably do not have to create a separate user,
    also you can use HotSpot instead of JRockit.

  • Java.lang.ClassFormatError: _Basic using JSF in Jdeveloper10gv12

    Can someone give me why I get the following error : I've included the Class, JSP and daces-config code
    Thank
    Abi
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/Application1-Project1-context-root/Basic.jsp
    Exception:
    java.lang.ClassFormatError: _Basic
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java)
         at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoader.java:172)
         at oracle.jsp.runtimev2.JspClassLoader.loadClass(JspClassLoader.java:744)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at oracle.jsp.runtimev2.JspPageInfo.getInstFacade(JspPageInfo.java:169)
         at oracle.jsp.runtimev2.JspPageTable.getInstFacade(JspPageTable.java:473)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Java Class
    package mypackage.backing;
    import com.sun.faces.taglib.jsf_core.SelectItemsTag;
    import java.util.*;
    import javax.faces.model.SelectItem;
    import javax.faces.model.*;
    import mypackage.backing.Scholarship;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    public class Basic
    private SelectItem[] basicdays = new SelectItem[]{
    new SelectItem(" "),
    new SelectItem("Basic Information"),
    new SelectItem("Calculate Project"),
    new SelectItem("Change Ownership"),
    new SelectItem("Configure Project - Facility Category Group"),
    new SelectItem("Worksheets")
    private String basicday = "";
    public Basic()
    System.out.println("Class BASIC " );
    public SelectItem[] getBasicdays() {
    return basicdays;
    public void setBasicdays(SelectItem[] days) {
    this.basicdays = days;
    public String getBasicday() {
    return basicday;
    public void setBasicday(String day) {
    this.basicday = day;
    JSP Code
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <f:view>
    <h:outputText value="Hello"></h:outputText>
    <h:panelGrid columns="2"
    rowClasses="centered" footerClass="centered" border="1">
    <h:outputText value="Days List"></h:outputText>
    <h:selectOneMenu id="days" value="#(backing_basic.basicday)">
    <f:selectItems value="#{backing_basic.basicdays}"/>
    </h:selectOneMenu >
    </h:panelGrid>
    </f:view>
    Faces config
    <managed-bean>
    <managed-bean-name>backing_basic</managed-bean-name>
    <managed-bean-class>mypackage.backing.Basic</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/basic.jsp</from-view-id>
    <navigation-case>
    <from-outcome>nextpage</from-outcome>
    <to-view-id>/finish.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>

    I tested this code(copy-paste) in Orion and Tomcat and it works fine. I guess that this is not the full code you are executing since I see not used imports, the jsp without the <h:form> tag and a navigation rule that will never take place. Anyway try to deploy this to Tomcat or another AS to check if it running properly. I have seen ADF application running correct on Tomcat and not on Orion.

  • WLS8.1 & JSF 1.0 Final: "Faces Servlet" failed to preload

    Ok, this i what I've done. Modified the samples proprties file so everythings gets build without problems with the 1.0.x taglib.
    <copy todir="${build}/${example}/WEB-INF/lib" file="${jstl.jar}"/>
    <copy todir="${build}/${example}/WEB-INF/lib" file="${standard.jar}"/>
    <copy todir="${build}/${example}/WEB-INF/lib" file="/jakarta-taglibs-standard-1.0.5/lib/jaxen-full.jar"/>
    <copy todir="${build}/${example}/WEB-INF/lib" file="/jakarta-taglibs-standard-1.0.5/lib/saxpath.jar"/>
    The jst.jar, standard.jar also point to /jakarta-taglibs-standard-1.0.5/lib
    I updated the web.xml for the listener
    <listener>
         <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>     
    ant the web.cml validated against http://java.sun.com/dtd/web-app_2_3.dtd
    If I deploy the cardemo I see:
    <5/03/2004 10:28:30 PM CET> <Error> <HTTP> <BEA-101216> <Servlet: "Faces Servlet" failed to preload on startup in Web application: "jsf-cardemo".
    javax.servlet.ServletException
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:884)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3197)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)
    at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:688)
    at weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)
    at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
    at weblogic.Server.main(Server.java:32)
    >
    5/03/2004 22:28:32 com.sun.faces.config.rules.NavigationRuleRule end
    WARNING: [NavigationRuleRule]{faces-config/navigation-rule} Merge(/confirmChoices.jsp)
    What am I still missing here? I really want to start using JSF!
    Regards,
    Peter

    I believe I have found the issue to the problem. The issue seems to be Weblogic is not respecting part of the Servlet 2.3 spec. It states that all ServletContextListener implementations should be called before the Servlet's init method is called. Tomcat respects this and that's why JSF works when deployed in Tomcat. Weblogic 8.1 calls this instance AFTER the Servlet's init's methods are called. This results in a NullPointerException being thrown.
         You can see how the ordering changes between Weblogic and Tomcat for yourself by editing the log4j.properties file and add the following:
    log4j.category.com.sun.faces.config = DEBUG, config log4j.additivity.com.sun.faces.config=false
    log4j.appender.config = org.apache.log4j.ConsoleAppender log4j.appender.config.layout = org.apache.log4j.PatternLayout log4j.appender.config.layout.ConversionPattern = ...
         Deploy the example application to both Weblogic and Tomcat and observe the order.
         I've developed a work around for this issue. Weblogic seems to respect the <load-on-startup> element in the web.xml file. I have written a Servlet which manually loads the ServletContextListener for JSF. The code below:
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import javax.faces.FactoryFinder;
    import javax.faces.lifecycle.LifecycleFactory;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletContextEvent;
    import javax.servlet.ServletContextListener;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    public class WeblogicHackServlet extends HttpServlet {
    public static final String CONFIGURE_LISTENER_KEY = "CONFIGURE_LISTENER"; public static final transient Log logger = LogFactory.getLog(WeblogicHackServlet.class);
    public void init(ServletConfig servletConfig) throws ServletException {
    LifecycleFactory factory =(LifecycleFactory)      
    FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
    if (factory != null)
    return;
    String className = servletConfig.getInitParameter(CONFIGURE_LISTENER_KEY);
    if (className == null) {
    logger.fatal("Did not find the init parameter " + CONFIGURE_LISTENER_KEY);
    return;
    try {
    Class aClass = Class.forName(className);
    ServletContextListener listener = (ServletContextListener)
                   aClass.newInstance();
    listener.contextInitialized(
         new ServletContextEvent(servletConfig.getServletContext()));
    } catch (Exception e) {
    logger.fatal("The ConfigureListener could not be triggered", e);
         The web.xml file also needs to be changed to the following:
    <servlet>
    <servlet-name>WeblogicHackServlet</servlet-name>
    <servlet-class>WeblogicHackServlet</servlet-class>
    <init-param>
    <param-name>CONFIGURE_LISTENER</param-name>
    <param-value>com.sun.faces.config.ConfigureListener</param-value>
    </init-param>
    <load-on-startup> 1 </load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup> 2 </load-on-startup>
    </servlet>
    This causes JSF to load properly. Hopefully, BEA can resolve this issue so my hack can be removed.
    Thanks,
    Louis Calisi
    Applications Architect

Maybe you are looking for

  • BPM - Do we need receiver determination step between trans and sync send?

    Hi Gurus, I have a 1:1 transformation step followed by a sync send step. The transformation step is executing fine. While the sync step is executing, I am getting an error says 'No receiver determination found'. While I am executing this sync step in

  • Partitions lost after ghost installation

    Hi Everybody ! My friend has  problem with his iMac. He wanted to install windows 7 on a separate partition. So, he created a second partition, and he use GHOST system to install windows 7 on the partition he created earlier. When windows installatio

  • SAX error in xsd parsing (was: Application only returns "Log is disabled.")

    Ok, it seems the underlying error of the "Log is disabled" is with parsing xml. I paste in the relevant bits of the console output of Weblogic 10.3.2.0 below (slightly modified the URL). I made a small testcase in Eclipse reading the same xsd from th

  • Problem in Extending VO in Jdev10g-View links

    Hello all, I want to extend one VO in Jdev10g. This VO is used by one report. I have done extending VO in 9iJdev last time. But in this case when I am extending VO, the new VO.xml doesnt contains some code which standard VO have. Example: In standard

  • Mail error log

    Can anyone tell me where mail keeps its error logs. I got some weird message while closing mail the other day on my .mac account about not being able to delete or something with imap. Please Help Thanks