[opencms-dev] OpenCms 8.0.3 - ADE elements preview

Sandrine Prousteau s.prousteau at eurelis.com
Wed Feb 15 18:29:07 CET 2012


It seems it is 

 

${cms:vfs(pageContext).property[p_image]['Title']}

 

Which generate an error... (p_image is the path of the image)

 

De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Sandrine Prousteau
Envoyé : mercredi 15 février 2012 18:16
À : The OpenCms mailing list
Objet : Re: [opencms-dev] OpenCms 8.0.3 - ADE elements preview

 

Sorry, I just see there are errors in log file when I try to see the preview :

 

15 Feb 2012 18:15:04,972 ERROR [.opencms.jsp.CmsJspTagProperty: 310] Error processing "property" tag in Jsp.

org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource from path "/org.opencms.ade.galleries.CmsPreviewService.gwt".

                at org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:71)

                at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:334)

                at org.opencms.db.CmsDbContext.report(CmsDbContext.java:286)

                at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4596)

                at org.opencms.file.CmsObject.readResource(CmsObject.java:2943)

                at org.opencms.file.CmsObject.readPropertyObjects(CmsObject.java:2758)

                at org.opencms.jsp.CmsJspTagProperty.propertiesTagAction(CmsJspTagProperty.java:242)

                at org.opencms.jsp.CmsJspTagProperty.propertyTagAction(CmsJspTagProperty.java:267)

                at org.opencms.jsp.CmsJspTagProperty.doStartTag(CmsJspTagProperty.java:301)

                at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_eurelis_opencms_website.formatters.article_jsp._jspx_meth_cms_005fproperty_005f0(article_jsp.java:425)

                at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_eurelis_opencms_website.formatters.article_jsp._jspx_meth_c_005fset_005f0(article_jsp.java:393)

                at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_eurelis_opencms_website.formatters.article_jsp._jspService(article_jsp.java:99)

                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)

                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                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:646)

                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

                at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)

                at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)

                at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:612)

                at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)

                at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)

                at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:886)

                at org.opencms.loader.CmsJspLoader.dump(CmsJspLoader.java:298)

                at org.opencms.ade.galleries.CmsPreviewService.getPreviewContent(CmsPreviewService.java:272)

                at org.opencms.ade.galleries.CmsPreviewService.readResourceInfo(CmsPreviewService.java:181)

                at org.opencms.ade.galleries.CmsPreviewService.getResourceInfo(CmsPreviewService.java:125)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)

                at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)

                at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)

                at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                at org.opencms.gwt.CmsGwtService.service(CmsGwtService.java:191)

                at org.opencms.main.OpenCmsCore.invokeGwtService(OpenCmsCore.java:1537)

                at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:150)

                at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:166)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                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.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                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:298)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

                at java.lang.Thread.run(Unknown Source)

Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to read resource "/org.opencms.ade.galleries.CmsPreviewService.gwt".

                at org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:2162)

                at org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:7293)

                at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:6775)

                at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4594)

                ... 57 more

 

 

 

De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Sandrine Prousteau
Envoyé : mercredi 15 février 2012 18:04
À : The OpenCms mailing list
Objet : Re: [opencms-dev] OpenCms 8.0.3 - ADE elements preview

 

Thank, but I have now

<formatter type="*" uri="/system/modules/mymodule/formatters/article.jsp" searchcontent="true" preview="true" />

And it still doesn't work :s...

 

 

De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Tobias Herrmann
Envoyé : mercredi 15 février 2012 17:19
À : The OpenCms mailing list
Objet : Re: [opencms-dev] OpenCms 8.0.3 - ADE elements preview

 

Hi Sandrine,

try adding the attribute preview="true" to the formatter element.

Greetings, Tobias

 
--
 
Alkacon Software GmbH - The OpenCms Experts
 
http://www.alkacon.com  --  http://www.opencms.org
 


Am 15.02.2012 17:10, schrieb Sandrine Prousteau: 

Hi all,

I'm trying to get the preview of my own article type elements in ADE "Add - Preview", but I have a white area with nothing... I have my formatter jsp working well in front view, added in xsd with :

<formatters>

        <formatter type="main" uri="/system/modules/mymodule/formatters/article.jsp" searchcontent="true" />

</formatters> 

I can move it in containers, it works well, but there is nothing in the preview.

What is missing please?

 

Sandrine

 

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120215/97cbb363/attachment.htm>


More information about the opencms-dev mailing list