incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: Tiles + Adf Faces + MyFaces
Date Sat, 17 Jun 2006 16:28:25 GMT
As Benji indicates, Facelets is rather preferred over Tiles/JSP.
But, I'd like to know what's going wrong here.

Could you give me a longer stack trace?  It looks as though
the ADF ViewHandler just isn't on the stack.

Also, a gentle reminder - this mailing list is for the open-sourced
version of the code (org.apache.myfaces.etc...), not the
Oracle version.

-- Adam


On 6/16/06, Joe Reger, Jr. <regerj@gmail.com> wrote:
> I saw a thread similar to this recently but couldn't find a resolution
> that worked for me.
>
> I'm getting NPEs when I use Adf Faces with MyFaces 1.1.3, Tiles and
> Tomcat 5.5.12:
>
> 30187 [http-127.0.0.1-80-1] ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[jsp]
>  - Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
>         at oracle.adfinternal.view.faces.uinode.FacesRenderingContext.setRenderingProperty(FacesRenderingContext.java:157)
>         at oracle.adfinternal.view.faces.ui.RenderedNodeRenderingContext.setProperty(RenderedNodeRenderingContext.java:162)
>         at oracle.adfinternal.view.faces.ui.ServletRenderingContext._setContextProperty(ServletRenderingContext.java:309)
>         at oracle.adfinternal.view.faces.ui.ServletRenderingContext.setServletRequest(ServletRenderingContext.java:140)
>         at oracle.adfinternal.view.faces.ui.ServletRenderingContext.setServletRequest(ServletRenderingContext.java:163)
>         at oracle.adfinternal.view.faces.ui.ServletRenderingContext.init(ServletRenderingContext.java:113)
>         at oracle.adfinternal.view.faces.ui.ServletRenderingContext.init(ServletRenderingContext.java:96)
>         at oracle.adfinternal.view.faces.uinode.FacesRenderingContext.<init>(FacesRenderingContext.java:106)
>         at oracle.adfinternal.view.faces.uinode.FacesRenderingContext.createRenderingContext(FacesRenderingContext.java:79)
>         at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.getRenderingContext(UINodeRendererBase.java:89)
>         at oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingContext(FacesRenderingContext.java:66)
>         at oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingContext(FacesRenderingContext.java:52)
>         at oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.getRenderingContext(UINodeRenderer.java:79)
>         at oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.encodeBegin(UINodeRenderer.java:38)
>         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
>         at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:464)
>         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:317)
>         at org.apache.jsp.common.navigation_jsp._jspx_meth_h_form_0(org.apache.jsp.common.navigation_jsp:92)
>         at org.apache.jsp.common.navigation_jsp._jspService(org.apache.jsp.common.navigation_jsp:65)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>
> The error seems to come from navigation.jsp which is included inside a
> Tiles template:
>
> <f:subview id="menu">
>       <tiles:insert attribute="menu" flush="false" />
> </f:subview>
>
> The code in navigation.jsp is fairly straightforward... I have a
> <h:panelGrid> and a few <h:commandLink> tags.
>
> My web.xml looks like:
>
>      <context-param>
>         <param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
>         <param-value>
>          org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
>          </param-value>
>     </context-param>
>      <filter>
>         <filter-name>adfFaces</filter-name>
>         <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
>     </filter>
>     <filter-mapping>
>         <filter-name>adfFaces</filter-name>
>         <servlet-name>Faces Servlet</servlet-name>
>     </filter-mapping>
>     <servlet>
>         <servlet-name>resources</servlet-name>
>         <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>resources</servlet-name>
>         <url-pattern>/adf/*</url-pattern>
>     </servlet-mapping>
>
> And my faces-config.xml includes:
>
> <application>
>         <default-render-kit-id>oracle.adf.core</default-render-kit-id>
> </application>
>
> Any help is appreciated!
>
> Best,
>
> Joe
>

Mime
View raw message