Martin, Thank you for the quick response! I'll try your quick fix first thing tomorrow morning when nightly build updates. Here is the ticket in the JIRA: https://issues.apache.org/jira/browse/TOMAHAWK-1070
Let me know if I should update/provide additional information. Regards, Svi 2007/8/1, Martin Marinschek <[EMAIL PROTECTED]>: > Sorry, it wasn't Cagatay of course, it was Jurgen who added the > template rendering stuff. > > regards, > > Martin > > On 8/1/07, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > Hi Svilen, > > > > obviously Cagatay had enabled the template rendering by default, > > whenever the sandbox was added to an application. I suspect we should > > definitely do more testing before doing so. > > > > Can you open a jira-issue with the exception stack-trace you've > > encountered? In the meantime, I've disabled the automatic > > template-renderer use for all output-text components in a project. > > > > regards, > > > > Martin > > > > On 8/1/07, Svilen Ivanov <[EMAIL PROTECTED]> wrote: > > > Martin, > > > > > > I just tried the nightly snapshot build (01-Aug-2007 05:04) and I > > > noticed the following problems. > > > > > > 1. The "java.lang.NoClassDefFoundError: > > > freemarker/template/TemplateException" error no longer appears during > > > application startup, *however* it appears when I make first HTTP > > > request to the application. > > > > > > 2. When I added Freemarker jars, the application starts correctly but > > > after few clicks I got a Freemarker exception (see full stack trace at > > > end). > > > > > > Any ideas? > > > > > > Regards, > > > Svi > > > > > > Freemarker error: > > > > > > [System][ERROR] > > > Error on line 1, column 3 in outputText_children.ftl > > > Expecting a string, date or number here, Expression text!"" is instead > > > a freemarker.template.TemplateBooleanModel$1 > > > The problematic instruction: > > > ---------- > > > ==> ${text!""} [on line 1, column 1 in outputText_children.ftl] > > > ---------- > > > > > > Java backtrace for programmers: > > > ---------- > > > freemarker.core.NonStringException: Error on line 1, column 3 in > > > outputText_children.ftl > > > Expecting a string, date or number here, Expression text!"" is instead > > > a freemarker.template.TemplateBooleanModel$1 > > > at freemarker.core.Expression.getStringValue(Expression.java:126) > > > at freemarker.core.Expression.getStringValue(Expression.java:93) > > > at freemarker.core.DollarVariable.accept(DollarVariable.java:76) > > > at freemarker.core.Environment.visit(Environment.java:196) > > > at freemarker.core.Environment.process(Environment.java:176) > > > at freemarker.template.Template.process(Template.java:232) > > > at > > > org.apache.myfaces.renderkit.template.DefaultTemplateEncoder.encodeTemplate(DefaultTemplateEncoder.java:55) > > > at > > > org.apache.myfaces.renderkit.template.TemplateRenderer.encodeTemplate(TemplateRenderer.java:91) > > > at > > > org.apache.myfaces.renderkit.template.TemplateRenderer.encodeChildren(TemplateRenderer.java:54) > > > at > > > javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527) > > > at > > > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:414) > > > at > > > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229) > > > at > > > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101) > > > at > > > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539) > > > at > > > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:419) > > > at > > > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229) > > > at > > > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101) > > > at > > > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539) > > > at > > > javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498) > > > at > > > javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:366) > > > at > > > org.apache.myfaces.shared_impl.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:57) > > > at > > > org.apache.jsp.pages.plan.team.teamDetails_jsp._jspService(teamDetails_jsp.java:864) > > > at > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > at > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) > > > at > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > > > at > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > > at > > > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) > > > at > > > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) > > > at > > > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) > > > at > > > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) > > > at > > > org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419) > > > at > > > org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211) > > > at > > > org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101) > > > at > > > org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41) > > > at > > > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132) > > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > > at > > > com.recoveryplanner.ui.webfilters.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:25) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > > at > > > com.recoveryplanner.ui.webfilters.LoginFilter.doFilter(LoginFilter.java:241) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > > at > > > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > > at > > > org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67) > > > at > > > org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > > > at > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) > > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > > at > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > > > at > > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > > > > > > > > > 2007/7/31, Martin Marinschek <[EMAIL PROTECTED]>: > > > > The very latest - the one of today, it's not in the nightly build so > > > > far, I heavily suspect. > > > > > > > > The exception you get can only have occurred before my changes. > > > > > > > > regards, > > > > > > > > Martin > > > > > > > > On 7/31/07, Bruno Marti <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Well, I think I've downloaded the latest one > > > > > (tomahawk-sandbox-1.1.7-SNAPSHOT-bin.zip 31-Jul-2007 05:00 > > > > > 2.2M). > > > > > > > > > > Rookie question: > > > > > What exactly is the templated components stuff? I think, I'm not > > > > > using it. > > > > > My exception occurs inside a jsp:include call, like > > > > > > > > > > entry.jsp: > > > > > --------- > > > > > ... > > > > > <f:view locale="#{user.locale}"> > > > > > <t:htmlTag value="html"> > > > > > <t:htmlTag value="head"> > > > > > <jsp:include > > > > > page="/jsp/header/metaheader.jsp" flush="true" /> > > > > > </t:htmlTag> > > > > > <t:htmlTag value="body"> > > > > > ... > > > > > > > > > > metaheader.jsp > > > > > -------------- > > > > > ... > > > > > <f:subview id="metaHeaderSubview"> > > > > > <f:verbatim> > > > > > <title>MyFacesHibernate</title> > > > > > </f:verbatim> > > > > > > > > > > <f:verbatim> > > > > > <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> > > > > > <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> > > > > > <META HTTP-EQUIV="EXPIRES" CONTENT="TUES, 31 DEC 1996 > > > > > 12:00:00 GMT"> > > > > > <META HTTP-EQUIV="MUST-REVALIDATE, PROXY-REVALIDATE, > > > > > PRIVATE" > > > > > CONTENT="TRUE"> > > > > > <META NAME="robots" CONTENT="noindex"> > > > > > </f:verbatim> > > > > > > > > > > <t:stylesheet id="css_form" path="/css/form.css" /> > > > > > > > > > > ... > > > > > > > > > > > > > > > > >If you go to the very latest source, you shouldn't get this anymore - > > > > > >I've made sure the freemarker stuff is only needed if you really use > > > > > >the templated components. > > > > > > > > > > > >regards, > > > > > > > > > > > >Martin > > > > > > > > > > -- > > > > > View this message in context: > > > > > http://www.nabble.com/NoClassDefFoundError%3A-freemarker-template-TemplateException-%28tomahawk-sandbox-1.1.7-Snapshot.jar%29-tf4191646.html#a11921012 > > > > > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > http://www.irian.at > > > > > > > > Your JSF powerhouse - > > > > JSF Consulting, Development and > > > > Courses in English and German > > > > > > > > Professional Support for Apache MyFaces > > > > > > > > > > > > > -- > > > Svilen Ivanov > > > http://svilen-online.blogspot.com > > > > > > There is no dark side of the moon really. > > > Matter of fact it's all dark. > > > > > > > > > -- > > > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > > -- > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > -- Svilen Ivanov http://svilen-online.blogspot.com There is no dark side of the moon really. Matter of fact it's all dark.