[opencms-dev] Problems with OpenCMS 5.3.4 and templates
Antti Leinonen
antti.leinonen at digital-one.fi
Fri Apr 23 07:15:06 CEST 2004
Hola.
We're not using /sites/default on the links.
The problem is the same as described before. From the beginning we has the
'empty' default body, but it's not working.
Additionally, as I stated before, if I change the content page to use the
Welcome template, editing it works, after which I can switch to using the
site template I've created. As long as the edit mode is entered only using
the welcome template there aren't any problems.
On the other hand, if I create a copy of the welcome template to my module,
editing doesn't work (well, edit does but saving causes the error).
Similarly, if the other, fresh template is copied to the welcome module, it
won't work.
Could you perhaps post an almost empty module with a basic template and the
body for testing or something?
(We could then look through the code to see if we've missed anything..)
The problem really is that even if we use 1:1 copies of the welcome module's
stuff, things don't seem to work.
Are there some special attributes that have to be set on the CMS side to
these files that we haven't noticed?
++anttileinonen
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Mariano Barcia
> Sent: 22. huhtikuuta 2004 22:53
> To: opencms-dev at opencms.org
> Subject: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
>
>
> Jeff, Antti,
>
> It's working for us. What problem are you having?
>
> We have seen here that a template prepending "/sites/default"
> to <cms:link> does not work when [a page] is previewed from
> the "/" site perspective, but it does work when you change to
> the site perspective you are working on.
>
> So, don't prepend "/sites/default" to any of the cms:link in
> your JSP templates.
>
> Apart from that, no problem except for the language (how does
> it work?)
>
> --mariano
>
> -----Mensaje original-----
> De: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org]
> En nombre de Antti Leinonen
> Enviado el: Jueves, 22 de Abril de 2004 04:10 p.m.
> Para: opencms-dev at opencms.org
> Asunto: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
>
> But in our case we also have the default body (about empty as
> in the welcome module), and still it doesn't work. Any ideas?
> Am I forgetting to define the body to be used somewhere?
>
> ++anttileinonen
>
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org]
> On Behalf Of Mariano Barcia
> Sent: 22. huhtikuuta 2004 19:01
> To: opencms-dev at opencms.org
> Subject: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
>
>
> Jeff,
>
> We solved that by making a default body (just like in the
> "welcome" module), but could not make the language feature work.
>
> --mariano
>
> -----Mensaje original-----
> De: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org]
> En nombre de Jeff Greer
> Enviado el: Jueves, 22 de Abril de 2004 11:54 a.m.
> Para: opencms-dev at opencms.org
> Asunto: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
>
>
> I am seeing this problem also. I have a freshly installed
> 5.3.4 and each time I use the page editor I have to then
> manually edit the controlcode before the page will show up.
>
>
> Mariano Barcia said:
> > Hello manuel,
> >
> > We are seeing that the v5 "bodies" approach has been replaced by a
> bigger "control-code" that comprises both the
> > meta-data and the various content nodes (elements). The old
> ctrl-code
> needs to be totally replaced by this new one.
> > The DTD for the new one is /system/shared/page.dtd and you
> can see an
> example of a ctrl-code in the welcome module.
> >
> > I don't see a better solution than to manually edit the
> ctrl-code for
> each XML/HTML page :-(
> >
> > IMHO, a migration tool for v5 contents to v6 will be necessary, I'm
> sure this has been planned already but don't
> > know the due date ...
> >
> > --mariano
> >
> > -----Mensaje original-----
> > De: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] En nombre de Manuel Wallnöfer
> > Enviado el: Martes, 20 de Abril de 2004 02:51 p.m.
> > Para: opencms-dev at opencms.org
> > Asunto: AW: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
> >
> > Hi,
> >
> > i have the same problem like Antti.
> >
> > I tried to import a template from the OpenCms 5.0 system but when i
> try to click the button save and exit i get the
> > same error.
> >
> > Can anybody help me how to get rid of this problem........
> >
> > Thanx a lot..
> >
> >
> > manuel
> >
> > ------------------------------------------
> > Manuel Wallnöfer
> > Roseweg 1
> > A - 4111 Walding
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: opencms-dev-admin at opencms.org
> > [mailto:opencms-dev-admin at opencms.org] Im Auftrag von Mariano Barcia
> Gesendet: Dienstag, 20. April 2004 19:10
> > An: opencms-dev at opencms.org
> > Betreff: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
> >
> > Hola Antti,
> >
> > We have discovered the reason for this behavior. Its all in the
> > control-code. Check out the pages in the /release folder,
> they have an
> adequate control code.
> >
> > It seems that whenever a new XML page is created thru the workplace
> wizard, it still gets created with the old-style
> > control-code. :-/
> >
> > BTW, the control-code explains the elements and available
> languages
> definition. Still have to figure out how to
> > call the correct language display.
> >
> > HTH,
> > --mariano
> >
> > -----Mensaje original-----
> > De: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] En nombre de Antti Leinonen
> > Enviado el: Lunes, 19 de Abril de 2004 06:56 a.m.
> > Para: opencms-dev at opencms.org
> > Asunto: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
> >
> > Hola.
> >
> > We're trying to build a site on the CVS version of OpenCMS, and
> > currently are facing a rather weird problem with the editor's
> behaviour with templates;
> > We created a new module for the site, and basically everything works
> just fine, creating pages using the templates
> > created under the module, but when trying to actually edit the body
> contents with the HTML editor, the system throws
> > an error every time after save & exit:
> >
> > 2004-04-19 12:48:21 ApplicationDispatcher[/opencms]
> Servlet.service()
> for servlet jsp threw exception
> > java.lang.NullPointerException
> > at
> > org.opencms.page.CmsXmlPage.initBookmarks(CmsXmlPage.java:487)
> > at org.opencms.page.CmsXmlPage.<init>(CmsXmlPage.java:169)
> at
> > org.opencms.page.CmsXmlPage.read(CmsXmlPage.java:240)
> > at org.opencms.page.CmsXmlPage.read(CmsXmlPage.java:213)
> > at
> >
> org.opencms.workplace.editor.CmsSimplePageEditor.initWorkplace
> RequestVal
> ues(CmsSimplePageEditor.java:132)
> > at
> > org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:163)
> > at
> org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:166)
> at
> > org.opencms.workplace.editor.CmsEditor.<init>(CmsEditor.java:146)
> > at
> >
> org.opencms.workplace.editor.CmsDefaultPageEditor.<init>(CmsDe
> faultPageE
> ditor.java:103)
> > at
> >
> org.opencms.workplace.editor.CmsSimplePageEditor.<init>(CmsSim
> plePageEdi
> tor.java:67)
> > at
> >
> org.opencms.workplace.editor.CmsMSDHtmlEditor.<init>(CmsMSDHtm
> lEditor.ja
> va:73)
> > at
> >
> org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.jsp.ed
> itors.msdh
> > tml.editor_html_jsp._jspService(editor_html_jsp.java:56)
> > at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.ja
> va:311)
> > at
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:301)
> at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Applica
> tionFilterChain.java:284)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilt
> erChain.java:204)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
> ionDispatc
> her.java:750)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.doInclude(Appli
> cationDisp
> atcher.java:636)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.include(Applica
> tionDispat
> cher.java:546)
> > at
> >
> org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsF
> lexRequest
> Dispatcher.java:131)
> > at
> >
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexReque
> stDispatch
> er.java:180)
> > at
> > org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:405)
> > at
> >
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexReque
> stDispatch
> er.java:311)
> > at
> >
> org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInc
> lude.java:
> 396)
> > at
> >
> org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElemen
> t.java:244
> )
> > at
> >
> org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElemen
> t.java:189
> )
> > at
> >
> org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.jsp.ed
> itors.edit
> > or_005fmain_html_jsp._jspService(editor_005fmain_html_jsp.java:53)
> at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
> at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.ja
> va:311)
> > at
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:301)
> at
> > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Applica
> tionFilterChain.java:284)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilt
> erChain.java:204)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
> ionDispatc
> her.java:750)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.doInclude(Appli
> cationDisp
> atcher.java:636)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.include(Applica
> tionDispat
> cher.java:546)
> > at
> >
> org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsF
> lexRequest
> Dispatcher.java:131)
> > at
> >
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexReque
> stDispatch
> er.java:180)
> > at
> > org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:405)
> > at
> >
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexReque
> stDispatch
> er.java:311)
> > at
> > org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:425)
> at
> > org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:382)
> at
> >
> org.opencms.loader.CmsLoaderManager.loadResource(CmsLoaderMana
> ger.java:2
> 31)
> > at
> > org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1475)
> > at
> > org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:102)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Applica
> tionFilterChain.java:284)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilt
> erChain.java:204)
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValv
> e.java:257)
> > at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> ardValveCo
> ntext.java:151)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:5
> 67)
> > at
> >
> org.apache.catalina.core.StandardContextValve.invokeInternal(S
> tandardCon
> textValve.java:245)
> > at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValv
> e.java:199)
> > at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> ardValveCo
> ntext.java:151)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:5
> 67)
> > at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java
> :184)
> > at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> ardValveCo
> ntext.java:151)
> > at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java
> :164)
> > at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> ardValveCo
> ntext.java:149)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:5
> 67)
> > at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.
> java:156)
> > at
> >
> org.apache.catalina.core.StandardValveContext.invokeNext(Stand
> ardValveCo
> ntext.java:151)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:5
> 67)
> > at
> >
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
> at
> >
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.
> java:206)
> at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Process
> or.java:83
> 3)
> > at
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
> r.processC
> onnection(Http11Protocol.java:732)
> > at
> >
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:61
> 9)
> > at
> >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool
> .java:688)
> > at java.lang.Thread.run(Thread.java:534)
> > This occurs not only with the new templates, but also if a
> Welcome or
> Empty template is copied from the
> > org.opencms.welcome module to the new module and used for a
> new page,
> the same thing occurs after save and exit.
> > Additionally, the system leaves a locked ~filename -file (filename
> being the name of the edited file), and the now
> > unusable file that was
> > originally edited.
> >
> > If a page is created with the new template, then switched to use the
> empty template from org.opencms.welcome,
> > editing works fine, and
> > afterwards the page can be again switched to use the new template.
> > Hopefully someone has an idea on what's causing this behaviour.
> >
> > Cheers,
> > Antti Leinonen, Digital One
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
> --
> Jeff Greer
> Technical Support Consultant
> Fretwell-Downing, Inc.
> Phone: (913) 239-1214
>
> The information transmitted in this electronic mail message
> may contain confidential and or privileged materials. For
> full details and restrictions see
> http://www.fdgroup.com/emaildisclaimer.html
>
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list