[Hippo-cms7-user BETA] FW: Hippo 7 Site Toolkit

Bart van der Schans schans at onehippo.com
Fri Nov 14 16:39:52 CET 2008


On 14-11-2008 16:24, Jeroen Reijn wrote:
> Well I have some strange things to with the archetype.
>
> What goes wrong with me, is that I have a maven variable, which does not
> get filtered. Therefor I have ${dollar} all over the place in my code.
> Could be that this is a maven issue of some sort.
>
> Have a look in the mainnav.jsp and remove the ${dollar}.
>
> Change the line from <hst-tmpl:link var="link" item="${dollar}{subItem}"
> /> to
>
> <hst-tmpl:link var="link" item="${subItem}" />
>
> I've seen it happen in a couple of places. Still not sure why though,
> but I think it will fix your problem.
Yes it looks like the archetype templating is broken. The ${dollar} was 
a fix to have just a dollar sign as the end result.

For now you could try something like:
find . | xargs perl -e pi.bak s/\$\{dollar\}/\$/g
(not tested)

We will fix this next week, so you can enjoy the full archetype 
automagic again ;)

Regads,
Bart



>
> Regards,
>
> Jeroen
>
> Æde van der Weij wrote:
>> Hello all,
>>
>> I posted this issue also on the 'old' mailing list an was pointed to
>> this list.
>>
>>
>> After following the instructions
>> (http://docs.onehippo.org/site-toolkit/delve_into/howto/start_project.html)
>> I deployed the wars to both tomcat 6.0.16 and 6.0.18 and was not able
>> to view the site. It simply display a HTML page (with mainNav div and
>> content div). The following stacktrace appears in tomcat's log:
>>
>> SEVERE: Servlet.service() for servlet jsp threw exception
>> java.lang.IllegalArgumentException: Cannot convert {subItem} of type
>> class java.lang.String to interface
>> org.hippoecm.hst.core.template.node.el.ELNode
>> at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:374)
>> at
>> org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188)
>> at
>> org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:923)
>>
>> at
>> org.apache.jsp.jsp.modules.mainnav_jsp._jspx_meth_hst_002dtmpl_005flink_005f1(mainnav_jsp.java:388)
>>
>> at
>> org.apache.jsp.jsp.modules.mainnav_jsp._jspx_meth_c_005fotherwise_005f0(mainnav_jsp.java:352)
>>
>> at
>> org.apache.jsp.jsp.modules.mainnav_jsp._jspx_meth_c_005fchoose_005f0(mainnav_jsp.java:265)
>>
>> at
>> org.apache.jsp.jsp.modules.mainnav_jsp._jspx_meth_c_005fforEach_005f1(mainnav_jsp.java:203)
>>
>> at
>> org.apache.jsp.jsp.modules.mainnav_jsp._jspx_meth_c_005fforEach_005f0(mainnav_jsp.java:155)
>>
>> at
>> org.apache.jsp.jsp.modules.mainnav_jsp._jspService(mainnav_jsp.java:84)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>>
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
>>
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
>>
>> at
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
>>
>> at
>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
>>
>> at
>> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:609)
>>
>> at
>> org.hippoecm.hst.core.template.tag.LayoutModulesTag.doStartTag(LayoutModulesTag.java:108)
>>
>> at
>> org.apache.jsp.jsp.index_jsp._jspx_meth_hst_002dtmpl_005fcontainer_005f0(index_jsp.java:111)
>>
>> at org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:76)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>>
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>>
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
>>
>> at
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
>>
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
>>
>> at
>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
>>
>> at
>> org.hippoecm.hst.core.template.URLMappingTemplateContextFilter.doFilter(URLMappingTemplateContextFilter.java:94)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>
>> at
>> org.hippoecm.hst.core.template.URIFragmentContextBaseFilter.doFilter(URIFragmentContextBaseFilter.java:189)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>
>> at
>> org.hippoecm.hst.core.template.ModuleFilter.doFilter(ModuleFilter.java:99)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>
>> at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>
>> at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>> at java.lang.Thread.run(Thread.java:595)
>>
>> In my parent pom I have the following versions specified:
>>
>> <properties>
>> <hippoecm.version>2.01.00.14552</hippoecm.version>
>> <hst.version>2.01.02</hst.version>
>> </properties>
>>
>> I tried to build it with a clean local maven repo, but this yields the
>> same result.
>>
>> Any hint, pointers or any help is appriciated.
>>
>> Regards,
>> Aede
>>
>>
>> ------------------------------------------------------------------------
>> Express yourself instantly with MSN Messenger! MSN Messenger
>> <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Hippo-cms7-user mailing list
>> Hippo-cms7-user at lists.hippo.nl
>> http://lists.hippo.nl/mailman/listinfo/hippo-cms7-user
> _______________________________________________
> Hippo-cms7-user mailing list
> Hippo-cms7-user at lists.hippo.nl
> http://lists.hippo.nl/mailman/listinfo/hippo-cms7-user


-- 
Hippo B.V.  -  Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466

Hippo USA Inc.  -  San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com   -  info at onehippo.com
-----------------------------------------------------------------



More information about the Hippo-cms7-user mailing list