myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James A R Brown <ja...@enrogen.com>
Subject [Trinidad] Can't get panelBorderLayout To Work
Date Fri, 14 Jan 2011 08:32:51 GMT
Hi,

I am having trouble with Panel Border Layout.... sometimes you can get
it to work to start with, with basic contents, but as soon as you try
and populate with any complicated content, it bugs out

"java.lang.NoClassDefFoundError: Could not initialize class
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelBorderLayoutRenderer"

Today I revisited to try and resolve with a basic index.xhtml below. Now
it seems to bug out always.

Libs:-
Trinidad 2a2
Sun RI JSF 2 (note Myfaces2 not working unless Trinidad is patched for
PPR.. which I have not gotten around to)

Any suggestions please?

Thanks

James

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:tr="http://myfaces.apache.org/trinidad"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      >

    <tr:document>
        <h:head>
            <title>Enrogen Diesel Generators</title>
        </h:head>

        <h:body>
            <tr:form>

<tr:panelBorderLayout>                                         
                    <f:facet name="top">
                        <h:panelGrid width="100%"
style="background-color:#EAE7E3; height: 100%; text-align: center;">
                            <tr:outputText value="top"/>
                        </h:panelGrid>
                    </f:facet>
                    <f:facet name="left">
                        <h:panelGrid width="100%"
style="background-color:#CBC3BE; height: 100%; text-align: center;">
                            <tr:outputText value="left"/>
                        </h:panelGrid>
                    </f:facet>
                    <f:facet name="right">
                        <h:panelGrid width="100%"
style="background-color:#CBC3BE; height: 100%; text-align: center;">
                            <tr:outputText value="right"/>
                        </h:panelGrid>
                    </f:facet>
                    <f:facet name="bottom">
                        <h:panelGrid width="100%"
style="background-color:#EAE7E3; height: 100%; text-align: center;">
                            <tr:outputText value="buttom"/>
                        </h:panelGrid>
                    </f:facet>

                    <h:panelGrid width="100%" style="height: 100%;
text-align: center;">
                        <tr:outputText value="contents"/>
                    </h:panelGrid>
                </tr:panelBorderLayout>
            </tr:form>
        </h:body>
    </tr:document>
</html>



Full Stacktrace
---------------

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelBorderLayoutRenderer
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at org.apache.myfaces.trinidadinternal.renderkit.ClassRendererInstantiator.instantiate(ClassRendererInstantiator.java:49)
	at org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase.findRenderer(RenderKitBase.java:167)
	at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.findRenderer(RenderKitDecorator.java:104)
	at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.findRenderer(RenderKitDecorator.java:114)
	at org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase.getRenderer(RenderKitBase.java:129)
	at com.sun.faces.application.ApplicationImpl.applyAnnotations(ApplicationImpl.java:1870)
	at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1819)
	at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1090)
	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:326)
	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:145)
	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
	at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:160)
	at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:86)
	at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:75)
	at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:145)
	at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:716)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
	at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
	at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at com.enrogen.servlets.URLParameterDecrypt.doFilter(URLParameterDecrypt.java:107)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:237)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)


Component Tree
--------------
<UIViewRoot id="j_id1" inView="true" locale="en" renderKitId="org.apache.myfaces.trinidad.core"
rendered="true" transient="false" viewId="/index.xhtml"/>









Mime
View raw message