AW: AW: AW: [opencms-dev] OpenCMS6 backward module compatibility

Ulrich Rueth lists at rueth.info
Wed Dec 29 21:18:24 CET 2004


Hi John,

on www.opencms.org in the right colon you'll find this link:

http://www.opencms.org/export/download/opencms/opencms_5.0_doc_full.zip

This is the OpenCms 5 jsp documentation. I would use it as a starting point,
although in OpenCms 6 (don't know what you use) this will probably slightly
change.

Regards
Ulrich

-----Ursprungliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von John Giammarche
Gesendet: Mittwoch, 29. Dezember 2004 20:24
An: The OpenCms mailing list
Betreff: Re: AW: AW: [opencms-dev] OpenCMS6 backward module
compatibility


I've found something; I know where I called that
class: in the XML placed in the "templates" folder

    <!-- Always use this class tag when inserting a
JSP element in your page: -->
    <class>com.opencms.flex.CmsJspTemplate</class>

So, how is the new way of using templates? I couldn't
find any documentation on it.

Thanks for the help,

John


--- Ulrich Rueth <lists at rueth.info> wrote:

> This class you find in the com.opencms.legacy
> package, but be warned, it is
> deprecated and will no longer be supported in
> OpenCms 6! The template
> mechanism as you seem to use it will cease!
>
> Regards
> Ulrich
>
> -----Ursprungliche Nachricht-----
> Von: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org]Im Auftrag
> von John Giammarche
> Gesendet: Mittwoch, 29. Dezember 2004 19:40
> An: The OpenCms mailing list
> Betreff: Re: AW: [opencms-dev] OpenCMS6 backward
> module compatibility
>
>
> Excuse me for writing again.
>
> I just noticed something the exception I'm getting:
>
> > java.lang.ClassNotFoundException:
> > com.opencms.flex.CmsJspTemplate
>
> I'm not instantiating this CmsJspTemplate class nor
> I'm calling any of it's static methods. So, I can't
> fix it in my code ;). Is there any way to fix this?
>
> --- Ulrich Rueth <lists at rueth.info> wrote:
>
> > Mario,
> >
> > yes, but some packages also have changed. As far
> as
> > I have experienced up to
> > now:
> >
> > com.opencms.flex.jsp.* --> org.opencms.jsp.*
> >
> > Regards
> > Ulrich
> >
> > P.S. Best is to CVS checkout the source code and
> > build your own javadoc.
> >
> > -----Ursprungliche Nachricht-----
> > Von: opencms-dev-bounces at opencms.org
> > [mailto:opencms-dev-bounces at opencms.org]Im Auftrag
> > von John Giammarche
> > Gesendet: Mittwoch, 29. Dezember 2004 16:47
> > An: The OpenCms mailing list
> > Betreff: RE: [opencms-dev] OpenCMS6 backward
> module
> > compatibility
> >
> >
> > So, just changing the @page import's would
> suffice?
> >
> > Thanks,
> >
> > John
> >
> > --- Mario Juric <mario.juric at privat.tdcadsl.dk>
> > wrote:
> >
> > > Hi John,
> > >
> > > When I upgraded from 5.0.1 to 5.3.5 I found that
> > the
> > > OpenCMS library had
> > > changed. All classes are now listed under
> > > org.opencms.* and it seems that
> > > you are using the old com.opencms.* classes in
> > your
> > > JSP templates. You will
> > > have to upgrade your JSP templates to use the
> new
> > > packages. I found that
> > > most interfaces are otherwise the same so it
> > should
> > > be no big deal.
> > >
> > > Regards
> > > Mario
> > >
> > > -----Original Message-----
> > > From: opencms-dev-bounces at opencms.org
> > > [mailto:opencms-dev-bounces at opencms.org] On
> Behalf
> > > Of John Giammarche
> > > Sent: 29. december 2004 15:25
> > > To: The OpenCms mailing list
> > > Subject: [opencms-dev] OpenCMS6 backward module
> > > compatibility
> > >
> > > Hello everyone,
> > >
> > > I made a test installation of OpenCMS6 in my
> > > machine,
> > > and imported a whole OpenCMS5 site, as a module.
> > >
> > > When I try to access the index html, I receive
> an
> > > exception. It reads as follows:
> > >
> > >
> >
>
--------------------------------------------------------
> > > java.lang.ClassNotFoundException:
> > > com.opencms.flex.CmsJspTemplate
> > > 	at
> > >
> >
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> > > a:1340)
> > > 	at
> > >
> >
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> > > a:1189)
> > > 	at
> > >
> >
>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> > > 	at java.lang.Class.forName0(Native Method)
> > > 	at java.lang.Class.forName(Class.java:141)
> > > 	at
> > >
> >
>
com.opencms.template.CmsTemplateClassManager.getClassInstance(CmsTemplateCla
> > > ssManager.java:59)
> > > 	at
> > >
> >
>
com.opencms.template.CmsXmlTemplate.templateElement(CmsXmlTemplate.java:1365
> > > )
> > > 	at
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > > 	at
> > >
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > > )
> > > 	at
> > >
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> > > .java:25)
> > > 	at
> > java.lang.reflect.Method.invoke(Method.java:324)
> > > 	at
> > >
> >
>
com.opencms.template.A_CmsXmlContent.callUserMethod(A_CmsXmlContent.java:221
> > > )
> > > 	at
> > >
> >
>
com.opencms.template.CmsXmlTemplateFile.handleElementTag(CmsXmlTemplateFile.
> > > java:796)
> > > 	at
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > > 	at
> > >
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > > )
> > > 	at
> > >
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> > > .java:25)
> > > 	at
> > java.lang.reflect.Method.invoke(Method.java:324)
> > > 	at
> > >
> >
>
com.opencms.template.A_CmsXmlContent.processNode(A_CmsXmlContent.java:1540)
> > > 	at
> > >
> >
>
com.opencms.template.A_CmsXmlContent.getProcessedData(A_CmsXmlContent.java:4
> > > 98)
> > > 	at
> > >
> >
>
com.opencms.template.A_CmsXmlContent.getProcessedDataValue(A_CmsXmlContent.j
> > > ava:562)
> > > 	at
> > >
> >
>
com.opencms.template.CmsXmlTemplateFile.getProcessedDataValue(CmsXmlTemplate
>
=== message truncated ===




__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo


_______________________________________________
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