[opencms-dev] RE: Problems with OpenCMS 5.3.4 and templates

zhao ying zhaoying at thtf.com.cn
Wed Apr 28 02:56:01 CEST 2004


I met the same problem several days ago. I resolved it this way:
Please edit the manifest.xml file, add                
<property>
      <name>template-elements</name>
      <value><![CDATA[body*|Body]]></value>
  </property>
under your modulename/tempaltes/your_template.jsp file. 
After that, my own module worked fine.
Hope it can help you as well.
  ----- Original Message ----- 
  From: opencms-dev-request at opencms.org 
  To: opencms-dev at opencms.org 
  Sent: Wednesday, April 28, 2004 12:22 AM
  Subject: opencms-dev digest, Vol 1 #1075 - 10 msgs


  Send opencms-dev mailing list submissions to
  opencms-dev at opencms.org

  To subscribe or unsubscribe via the World Wide Web, visit
  http://mail.opencms.org/mailman/listinfo/opencms-dev
  or, via email, send a message with subject or body 'help' to
  opencms-dev-request at opencms.org

  You can reach the person managing the list at
  opencms-dev-admin at opencms.org

  When replying, please edit your Subject line so it is more specific
  than "Re: Contents of opencms-dev digest..."


  Today's Topics:

     1. Christian Haas ist abwesend (Christian.Haas at gavi.de)
     2. AW: [opencms-dev] Lucene Mod 1.5 under 5.0.0? (Prestel Marianne)
     3. RE: Opencms and EJB (GERIN =?iso-8859-1?Q?B=E9atrice?= DISU)
     4. OpenCms LDAP module (Irene Santerini)
     5. question on features (GERIN =?iso-8859-1?Q?B=E9atrice?= DISU)
     6. Christian Haas ist abwesend (Christian.Haas at gavi.de)
     7. Implementing a new Editor for Mozilla (Klaassen, Klaas)
     8. opencms with oracle database (GERIN =?iso-8859-1?Q?B=E9atrice?= DISU)
     9. export directory (GERIN =?iso-8859-1?Q?B=E9atrice?= DISU)
    10. RE: Problems with OpenCMS 5.3.4 and templates (Jeff Greer)

  --__--__--

  Message: 1
  From: Christian.Haas at gavi.de
  To: opencms-dev at opencms.org.gavi.de
  Date: Tue, 27 Apr 2004 14:04:40 +0200
  Subject: [opencms-dev] Christian Haas ist abwesend
  Reply-To: opencms-dev at opencms.org





  Ich werde ab  27.04.2004 nicht im B=FCro sein. Ich kehre zur=FCck am
  29.04.2004.

  Derzeit befinde ich mich nicht im B=FCro. Ich werde nach meiner R=FCckk=
  ehr Ihre
  E-Mail beantworten.=



  --__--__--

  Message: 2
  Subject: AW: [opencms-dev] Lucene Mod 1.5 under 5.0.0?
  Date: Tue, 27 Apr 2004 14:20:11 +0200
  From: "Prestel Marianne" <m.prestel at akap.de>
  To: <opencms-dev at opencms.org>
  Reply-To: opencms-dev at opencms.org

  Hi Chris,

  we have succesful running lucene under OpenCMS with 5.0.0, without any
  problem!
  Did you the configuration from the readme?
  And did you set the right path to your index folder in the registry.xml?

  Hope this helps

  Regards Marianne


  -----Urspr=FCngliche Nachricht-----
  Von: Christian P=F6cher [mailto:Poecher at gmx.net]
  Gesendet: Dienstag, 27. April 2004 13:50
  An: opencms-dev at opencms.org
  Betreff: [opencms-dev] Lucene Mod 1.5 under 5.0.0?


  Hi there,

  could somebody tell me, if it is possible to run the opencms-lucene =
  module
  1.5 under OpenCMS 5.0.0? On the weekend I tried to get it working, but
  without success. It traversed all directories, but did not index =
  anything.
  Is it just not possible or did I miss something when updating?

  TIA, chris
  --
  First transmission from NASA lander Spirit:
  "Uuuulaaa!"

  --__--__--

  Message: 3
  Subject: RE: [opencms-dev] Opencms and EJB
  Date: Tue, 27 Apr 2004 14:20:37 +0200
  From: "GERIN =?iso-8859-1?Q?B=E9atrice?= DISU" <beatrice.gerin at francetelecom.com>
  To: <opencms-dev at opencms.org>
  Reply-To: opencms-dev at opencms.org


  This way is OK to call EJB in JSP templates for examples.

  But if I want another protocol like RMI between my presentation server =
  where I install Opencms and mydata server where I have my database. In =
  this case I must wrap openCMS class in EJB components.

  Everyone has already do it??

  How to do with the workplace??

  B=E9atrice

  -----Message d'origine-----
  De : opencms-dev-admin at opencms.org
  [mailto:opencms-dev-admin at opencms.org]De la part de Joachim Arrasz
  Envoy=E9 : mardi 27 avril 2004 09:37
  =C0 : opencms-dev at opencms.org
  Objet : Re: [opencms-dev] Opencms and EJB


  Hi,

  try using an InitialContext and then via JNDI. This is the normal way to
  do this. And because Opencms is already written in Java you can use this
  way.
  Bye Achim

  --=20
  Questions about OpenCMS?
  --> www.opencms-forum.de



  _______________________________________________
  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

  --__--__--

  Message: 4
  From: "Irene Santerini" <i.santerini at inera.it>
  To: "OpenCms" <opencms-dev at opencms.org>
  Date: Tue, 27 Apr 2004 15:54:22 +0200
  Subject: [opencms-dev] OpenCms LDAP module
  Reply-To: opencms-dev at opencms.org

  This is a multi-part message in MIME format.

  ------=_NextPart_000_000B_01C42C6F.E8A5D2B0
  Content-Type: text/plain;
  charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable

  Hi all,

      can somebody tell me if exists a OpenCms LDAP module?

  Thanks in advance.
  Irene

  ------=_NextPart_000_000B_01C42C6F.E8A5D2B0
  Content-Type: text/html;
  charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <HTML><HEAD>
  <META http-equiv=3DContent-Type content=3D"text/html; =
  charset=3Diso-8859-1">
  <META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
  <STYLE></STYLE>
  </HEAD>
  <BODY bgColor=3D#ffffff>
  <DIV><FONT face=3DArial>Hi all,<BR><BR>    can somebody =
  tell me if=20
  exists a OpenCms LDAP module?<BR></FONT></DIV>
  <DIV><FONT face=3DArial>Thanks in =
  advance.<BR>Irene<BR></DIV></FONT></BODY></HTML>

  ------=_NextPart_000_000B_01C42C6F.E8A5D2B0--


  --__--__--

  Message: 5
  Date: Tue, 27 Apr 2004 15:45:14 +0200
  From: "GERIN =?iso-8859-1?Q?B=E9atrice?= DISU" <beatrice.gerin at francetelecom.com>
  To: <opencms-dev at opencms.org>
  Subject: [opencms-dev] question on features
  Reply-To: opencms-dev at opencms.org


  I have read on opencms website (features)
  ****************
  Application server integration / EJB support
  -----------------
  Running OpenCms in a J2EE application server environment (e.g. BEA =
  Weblogic) provides facilities for making use of distributed object =
  architectures, particularly with regard to Enterprise JavaBeans =
  technology. Using these techniques, processes behind the web site may be =
  structured and distributed in a component oriented way. Presentation and =
  business logic can be developed strictly separated, according to the =
  four-tier architecture described in the J2EE Application Model. OpenCms =
  takes care of the presentation of the data, using the integrated JSP =
  template engine for creating the general website layout, while the =
  generation of the content data is relocated to EJBs.
  --------------------
  ********************

  I don't exactly understand what means "generation of the content data is =
  relocated to EJBs".


  I have a presentation presentation server where I install Opencms and =
  mydata server where I have my database. I use RMI protocol between these =
  two servers.=20
  I suppose I must wrap openCMS classes with EJB Components.
  What means exactly "generation of content data". It's all database =
  access? but we have a lot in workplace...

  B=E9atrice

  --__--__--

  Message: 6
  From: Christian.Haas at gavi.de
  To: opencms-dev at opencms.org.gavi.de
  Date: Tue, 27 Apr 2004 16:05:37 +0200
  Subject: [opencms-dev] Christian Haas ist abwesend
  Reply-To: opencms-dev at opencms.org





  Ich werde ab  27.04.2004 nicht im B=FCro sein. Ich kehre zur=FCck am
  29.04.2004.

  Derzeit befinde ich mich nicht im B=FCro. Ich werde nach meiner R=FCckk=
  ehr Ihre
  E-Mail beantworten.=



  --__--__--

  Message: 7
  From: "Klaassen, Klaas" <klaas.klaassen at entitec.de>
  To: opencms-dev at opencms.org
  Date: Tue, 27 Apr 2004 16:24:04 +0200
  Subject: [opencms-dev] Implementing a new Editor for Mozilla
  Reply-To: opencms-dev at opencms.org

  This message is in MIME format. Since your mail reader does not understand
  this format, some or all of this message may not be legible.

  ------ =_NextPart_001_01C42C63.4AF92750
  Content-Type: text/plain;
  charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable

  Hello List,
  =A0
  actually I'm very interested in implementing a=A0WYSIWYG Editor for
  Linux/Mozilla in OpenCMS 5.3.4.
  The=A0List disussed this topic, I=A0studied the CVS-Source and=A0like =
  to integrate
  MozILE 0.52, the javascript editor from Mozilla.
  =A0
  Is there any documentation or a HowTo for=A0an integration?
  =A0
  Am I right when I suggest that I have to create a class like
  "CmsMSDHtmlEditor" and an analog integration as done in=20
  "opencms\webapp\WEB-INF\setupdata\vfs\system\workplace\jsp\editors\msdht=
  ml"?
  =A0
  Best regards
  =A0

  --=20
  Klaas Klaassen ___ Systemberater
  ENTITEC AG
  Deelb=F6genkamp 4c 22297 Hamburg
  Fon: 0049-40-514841-84 / Fax -48
  Klaas.Klaassen at entitec.de=A0=A0=A0=A0=A0=A0=A0=20

  =A0

  ------ =_NextPart_001_01C42C63.4AF92750
  Content-Type: text/html;
  charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <HTML><HEAD>
  <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
  charset=3Diso-8859-1">


  <META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
  <BODY>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial size=3D2>Hello =

  List,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial =
  size=3D2>actually I'm very=20
  interested in implementing a WYSIWYG Editor for Linux/Mozilla in =
  OpenCMS=20
  5.3.4.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial =
  size=3D2>The List=20
  disussed this topic, I studied the CVS-Source and like to=20
  </FONT></SPAN><SPAN class=3D558510414-27042004><FONT face=3DArial =
  size=3D2>integrate=20
  MozILE 0.52, the javascript editor from Mozilla.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial size=3D2>Is =
  there any=20
  documentation or a HowTo for an integration?</FONT></SPAN></DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial size=3D2>Am I =
  right when I=20
  suggest that I have to create a class like "CmsMSDHtmlEditor" and an =
  analog=20
  integration as done in </FONT></SPAN></DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial=20
  size=3D2>"opencms\webapp\WEB-INF\setupdata\vfs\system\workplace\jsp\edit=
  ors\msdhtml"?</FONT></SPAN></DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D558510414-27042004><FONT face=3DArial size=3D2>Best=20
  regards</FONT></SPAN></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV><!-- Converted from =
  text/rtf format -->
  <P><SPAN lang=3Dde><FONT face=3D"Courier New" size=3D2>-- =
  </FONT></SPAN><BR><SPAN=20
  lang=3Dde><FONT face=3D"Courier New" size=3D2>Klaas Klaassen ___=20
  Systemberater<BR>ENTITEC AG<BR>Deelb=F6genkamp 4c 22297 Hamburg<BR>Fon: =

  0049-40-514841-84 / Fax -48<BR><U></U></FONT><U><FONT face=3D"Courier =
  New"=20
  color=3D#0000ff size=3D2>Klaas.Klaassen at entitec.de</FONT></U><FONT=20
  face=3D"Times New =
  Roman">       </FONT>=20
  </SPAN></P>
  <DIV> </DIV></BODY></HTML>

  ------ =_NextPart_001_01C42C63.4AF92750--

  --__--__--

  Message: 8
  Date: Tue, 27 Apr 2004 17:04:23 +0200
  From: "GERIN =?iso-8859-1?Q?B=E9atrice?= DISU" <beatrice.gerin at francetelecom.com>
  To: <opencms-dev at opencms.org>
  Subject: [opencms-dev] opencms with oracle database
  Reply-To: opencms-dev at opencms.org


  I want to use OpenCMS install on server1 with Oracle database on =
  another server2.

  How configure the adress of database server? I must just lokk at =
  opencms.properties?which line?

  Think you.

  --__--__--

  Message: 9
  Date: Tue, 27 Apr 2004 17:22:08 +0200
  From: "GERIN =?iso-8859-1?Q?B=E9atrice?= DISU" <beatrice.gerin at francetelecom.com>
  To: <opencms-dev at opencms.org>
  Subject: [opencms-dev] export directory
  Reply-To: opencms-dev at opencms.org


  I want to use static export but I want export on another server. Is it =
  possible? how?

  --__--__--

  Message: 10
  Date: Tue, 27 Apr 2004 11:28:15 -0500 (CDT)
  Subject: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
  From: "Jeff Greer" <jgreer at fdusa.com>
  To: <opencms-dev at opencms.org>
  Reply-To: opencms-dev at opencms.org

  Wonderful, Thank you very much Mariano.

  It works great now. :)


  Mariano Barcia said:
  > Jeff,
  >
  > Yes you are right about internationalization (not the focus), but check out below about the "template-elements"
  > property. I can properly edit pages based on such a well-defined template.
  >
  > --mariano
  >
  > -----Mensaje original-----
  > De: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org] En nombre de Jeff Greer
  > Enviado el: Lunes, 26 de Abril de 2004 12:06 p.m.
  > Para: opencms-dev at opencms.org
  > Asunto: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
  >
  > Hi Mariano,
  >
  > I think somewhere we got our wires crossed. :)
  >
  > My problem is that I can not use the page editor to edit my html pages without problems when the page is saved.
  > After
  > saving the page the system becomes non-responsive. After editing the control code manually the page is fixed and the
  > system becomes responsive again.
  >
  > I am not up to internationalization yet even though my boss would like me to be. :)
  >
  > Cheers.
  >
  > P.S. Thanks for the tip on the local. configuration as I will need to know that soon.
  >
  > Mariano Barcia said:
  >> Jeff,
  >>
  >> It seems that the locale configuration comes from opencms.properties
  > so, no hardcoding at all :-D
  >>
  >> #
  >> # Locale configuration
  >>
  > ######################################################################## #########
  >> locale.default=\
  >> en,\
  >> es
  >> locale.available=\
  >> en,\
  >> es,\
  >> nl,\
  >> pt,\
  >> de
  >>
  >> HTH,
  >> --mariano
  >>
  >> -----Mensaje original-----
  >> De: opencms-dev-admin at opencms.org
  > [mailto:opencms-dev-admin at opencms.org] En nombre de Mariano Barcia
  >> Enviado el: Lunes, 26 de Abril de 2004 11:08 a.m.
  >> Para: opencms-dev at opencms.org
  >> Asunto: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
  >>
  >> Jeff,
  >>
  >> We did not try it, but looking at your code it seems we are missing
  > something.
  >>
  >> We have edited here a JSP template property called
  > "template-elements". Seems you have to do that in order to
  >> properly edit a page. The syntax seems to be a CSV of pairs like this
  > "body*|Body". This means
  >> "key|nicename", and the * indicates whether the element is mandatory.
  > "key" is used as the name in the control code,
  >> while the nice name is used to display in the WYSIWYG editor (see
  >> src/org/opencms/workplace/editor/CmsDialogElements.java::
  >> computeElements)
  >>
  >> But don't know whether this is really the reason why we have no
  > problem ...
  >>
  >> I think we need to know how to declare those entities properly, and
  > know how they behave. Need help from one of the
  >> core developers... For
  >> example, no matter how you declare the element as "es" (Spanish), the
  > WYSIWYG always shows "English". That seems to
  >> be hardcoded or only accepting when it's declared somewhere else...
  >>
  >> --mariano
  >>
  >> -----Mensaje original-----
  >> De: opencms-dev-admin at opencms.org
  > [mailto:opencms-dev-admin at opencms.org] En nombre de Jeff Greer
  >> Enviado el: Viernes, 23 de Abril de 2004 06:01 p.m.
  >> Para: opencms-dev at opencms.org
  >> Asunto: RE: [opencms-dev] Problems with OpenCMS 5.3.4 and templates
  >>
  >> Below is what the control code looks like after creating a new page.
  >>
  >> <?xml version="1.0" encoding="ISO-8859-1"?>
  >> <!DOCTYPE page SYSTEM "/system/shared/page.dtd">
  >> <page>
  >>   <elements/>
  >> </page>
  >>
  >> Below is what the control code looks like after editing the new page.
  >>
  >> <?xml version="1.0" encoding="ISO-8859-1"?>
  >> <!DOCTYPE page SYSTEM "/system/shared/page.dtd">
  >> <page>
  >>   <elements>
  >>     <element name="body" language="en">
  >>       <links/>
  >>       <content/>
  >>     </element>
  >>     <element language="en" enabled="true">
  >>       <links/>
  >>       <content><![CDATA[some data here]]></content>
  >>     </element>
  >>   </elements>
  >> </page>
  >>
  >> Below is my hand edited version of the control code that works.
  >>
  >> <?xml version="1.0" encoding="ISO-8859-1"?>
  >> <!DOCTYPE page SYSTEM "/system/shared/page.dtd">
  >> <page>
  >>   <elements>
  >>     <element name="body" language="en" enabled="true">
  >>       <links/>
  >>       <content><![CDATA[Content coming soon]]></content>
  >>     </element>
  >>   </elements>
  >> </page>
  >>
  >> Below is the control code after using the editor to modify the page
  > after making the page work by hand editing the
  >> control code.
  >>
  >> <?xml version="1.0" encoding="ISO-8859-1"?>
  >> <!DOCTYPE page SYSTEM "/system/shared/page.dtd">
  >>
  >> <page>
  >>   <elements>
  >>     <element name="body" language="en" enabled="true">
  >>       <links/>
  >>       <content><![CDATA[Content coming soon]]></content>
  >>     </element>
  >>     <element language="en" enabled="true">
  >>       <links/>
  >>       <content><![CDATA[Modified Content coming soon]]></content>
  >>     </element>
  >>   </elements>
  >> </page>
  >>
  >> As can be seen above the original content is kept in a well formed
  > element while the new content gets saved in a
  >> second poorly formed element.
  >>
  >>
  >>
  >> :
  >>> 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. It’s 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.initWorkplaceRequestVal 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>(CmsDefaultPageE ditor.java:103)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.workplace.editor.CmsSimplePageEditor.<init>(CmsSimplePageEdi tor.java:67)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.workplace.editor.CmsMSDHtmlEditor.<init>(CmsMSDHtmlEditor.ja va:73)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.jsp.editors.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(JspServletWrapper.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.internalDoFilter(Applica tionFilterChain.java:284)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:750)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp atcher.java:636)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat cher.java:546)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequest Dispatcher.java:131)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatch er.java:180)
  >>>>         at
  >>>> org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:405)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatch er.java:311)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java: 396)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:244 )
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:189 )
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.jsp.editors.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(JspServletWrapper.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.internalDoFilter(Applica tionFilterChain.java:284)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:750)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp atcher.java:636)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat cher.java:546)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequest Dispatcher.java:131)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatch er.java:180)
  >>>>         at
  >>>> org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:405)
  >>>>         at
  >>>>
  >>>
  >>
  > org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatch 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(CmsLoaderManager.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.internalDoFilter(Applica tionFilterChain.java:284)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:204)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:257)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 67)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon textValve.java:245)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:199)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 67)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :184)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :164)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:149)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 67)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:156)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo ntext.java:151)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.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(Http11Processor.java:83 3)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:732)
  >>>>         at
  >>>>
  >>>
  >>
  > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.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
  >>
  >>
  >> --
  >> 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
  >
  >
  > --
  > 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


  -- 
  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

  End of opencms-dev Digest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040428/a6821a8f/attachment.htm>


More information about the opencms-dev mailing list