Re: error in resolving sitemesh's JspTagLibs

"Zemian Deng" <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Ahh, the hidden variable. thks for the tips. I tested and confirmed:
ftl version: 2.3.12
On Tue, Apr 8, 2008 at 4:04 PM, Daniel Dekany <[email protected]> wrote:

> Tuesday, April 8, 2008, 9:57:59 PM, Zemian Deng wrote:
>
> > Hello Attila,
> > I am using 2.3.12.
>
> Just in case, be sure there is no older freemarker.jar around that
> takes precedence. It's easy to test it. Just put this into a template,
> and see what does it print: ${.version}
>
> > My problem only occur in certain deployment
> > setup in jetty(when I run jettying using maven with jetty:run goal),
> > so I start to think it's their problem. I started a email request there
> instead.
> >
> > Thanks for helping :)
> >
> > On Tue, Apr 8, 2008 at 3:32 PM, Attila Szegedi <[email protected]>
> wrote:
> > What FreeMarker version are you using?
> >
> > You seem to be running into this bug:
> > <
> http://sourceforge.net/tracker/index.php?func=detail&aid=1670887&group_id=794&atid=100794
>  >>
> >
> > It has been fixed in FreeMarker 2.3.11.
> >
> > Also, are you using FreeMarker under both Tomcat and Jetty?
> >
> > Attila.
> >
> >
> > On 2008.04.08., at 20:31, Zemian Deng wrote:
> >> Hello list,
> >>
> >> I have a war file that runs fine in Tomcat, but when I run it under
> >> jetty, I get the following error with Freemarker. Does anyone know
> >> what's going on?
> >>
> >> Error on line 1, column 1 in WEB-INF/view/layout/default.ftl
> >> JspTaglibs["http://www.opensymphony.com/sitemesh/decorator"] is
> >> undefined.
> >> It cannot be assigned to decorator
> >> The problematic instruction:
> >> ----------
> >> ==> assignment: decorator=JspTaglibs["
> http://www.opensymphony.com/sitemesh/decorator
> >> "] [on line 1, column 1 in WEB-INF/view/layout/default.ftl]
> >> ----------
> >>
> >> Java backtrace for programmers:
> >> ----------
> >> freemarker.core.InvalidReferenceException: Error on line 1, column 1
> >> in WEB-INF/view/layout/default.ftl
> >> JspTaglibs["http://www.opensymphony.com/sitemesh/decorator"] is
> >> undefined.
> >> It cannot be assigned to decorator
> >>     at freemarker.core.Assignment.accept(Assignment.java:111)
> >>     at freemarker.core.Environment.visit(Environment.java:208)
> >>     at freemarker.core.MixedContent.accept(MixedContent.java:92)
> >>     at freemarker.core.Environment.visit(Environment.java:208)
> >>     at freemarker.core.Environment.process(Environment.java:188)
> >>     at freemarker.template.Template.process(Template.java:237)
> >>     at
> >> freemarker
> >> .ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:427)
> >>     at
> >> freemarker
> >> .ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:366)
> >>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> >>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> >>     at
> >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> >>
> >>
> >> --
> >> Thanks,
> >> Zemian Deng
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> > Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> > Monday, April 7! Use priority code J8TLD2.
> >
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> > _______________________________________________
> > FreeMarker-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/freemarker-user
> >
> >
> >
> >
>
> --
> Best regards,
>  Daniel Dekany
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>



-- 
Thanks,
Zemian Deng

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.