[opencms-dev] opencms-dev Digest, Vol 236, Issue 4
Christian Steinert
christian_steinert at web.de
Thu Apr 16 18:20:59 CEST 2009
Hi Gerald,
welcome to the list
> I'm Gerald Butler. Just joined the list. New to OpenCMS.
>
> I just downloaded the latest from the DEV_7_0 branch from CVS last
> night. Built it using Eclipse (Target = .WAR). Deployed on Tomcat 6.0.
> 18 on Ubuntu Linux 8.10.
>
> I'm using the standard "tar.gz" distribution of Tomcat and untarred
> into my home directory. I'm not using the Tomcat 6 from the Ubuntu
> repositories.
>
> My problems are these:
>
> First, I tried to use PostgreSQL 8.3 as the database. I ran the "http:
> //localhost:8080/opencms/setup" and it went through correctly. It
> created the database, schema, and user correctly. It goes through all
> the way to the end and then when I try to "Login" it gives an
> exception related to "Admin" not having access to the "Workspace
> Manager" role. I searched for the errror and found a post/bug from
> Jan 2008 indicating that this was caused by the stricter requirements
> surrounding casting/comparing differing data-types - in this case the
> problem seems to be comparing "int" to "varchar" without a cast.
normally, Postgres should be officially supported - search for Postgresql on http://www.alkacon.com/en/search.html
I have not used opencms with postges though - probably others on the list can give some first-hand advice about this.
If you have problems with the regular postgres driver - there is a driver that uses JPA instead of plain SQL:
http://www.opencms-days.org/en/program/sessions/t6.html
http://sourceforge.net/projects/modulesforopenc
I have not used it yet but others seem to have.
> My question is this, is it possible to make OpenCMS work with
> PostgreSQL 8.3 and I'm just missing something, or is this a known
> problem? Does OpenCMS use an ORM layer (Hibernate,TopLink,etc) or
> straight JDBC? (It seems to me, on initial inspection, that it uses
> straight JDBC).
Yes - straight JDBC, unless you use the additional JPA driver
>
> Next, I switched to using MySQL 5.0.67. Everything then seems to work
> and "Core" initialized properly, as far as I can tell according to
> the logs. However, when I try to log in, I just get a blank page. No
> errors in any of the logs that I can see. Any thing I'm missing? More
> information required? Please Help!?!
Which URL to your call?
The usual opencms login is
http(s)://host:port/opencms/opencms/system/login
If you have installed the documentation and sample modules, then you should also see something when calling
http(s)://host:port/opencms/opencms/
You should take a look at the setup.log and opencms.log in <webapps>/opencms/WEB-INF/logs to make sure that the installation really worked properly.
If the installation ran into trouble, then you should find exception messages in setup.log. I never had problems with mysql so far though.
When you want to get started, make sure that you install all modules to get the sample site with all documentation. (By default all necessary modules are pre-selected in the installation wizard).
hth
Christian
>
> Kind Regards,
>
> Gerald E. Butler
>
> On Thu, Apr 16, 2009 at 6:00 AM, <opencms-dev-request at opencms.org>
> wrote:
> Send opencms-dev mailing list submissions to
> opencms-dev at opencms.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.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-owner 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. Bug? Re: 404 on export when exportname is "/" (Marc Johnen)
> 2. Re: Opencms can generate the code in XHTML 1.1?
> (Deiverson Silveira)
> 3. XML Content Editor Not Saving Special Characters Correctly
> (Brett Sheeran)
> 4. Re: XML Content Editor Not Saving Special Characters
> Correctly (Christian Steinert)
> 5. Sites down due to export error (Paul-Inge Flakstad)
>
> ---------- Forwarded message ----------
> From: Marc Johnen <opencms at johnen.biz>
> To: opencms-dev at opencms.org
> Date: Wed, 15 Apr 2009 04:03:15 -0700 (PDT)
> Subject: [opencms-dev] Bug? Re: 404 on export when exportname is "/"
>
> Thank you for your answer Dave.
> I'm afraid this is not a feasible solution as I would
> have to adjust the configuration every time the
> user ads a folder.
> Also I think there's something wrong with my configuration.
> I tried the same in 6.2.3 and got the same error, or is
> this maybe a bug?
> Greetings
> Marc
>
> Dave Clark wrote:
> >
> > Marc,
> >
> > Using "/" as exportname for "/sites/default/" didn't work for me.
> Instead
> > I used "/" as exportname for each of its subdirectories I wanted to
> > export, and created an rfs-rules rule for each of those subdirectorie
> s.
> > That worked for me in 7.0.5.
> >
> > -- Dave Clark
> >
> >
> >
> >>>> Marc Johnen <opencms at johnen.biz> 4/9/2009 10:07 AM >>>
> >
> > Hello everyone,
> >
> > I'd like to make a static export of two websites. The export won't
> contain
> > any
> > dynamic things and will be copied from my local computer to an
> apache
> > directory
> > on the server.
> > Therefore the export should not contain any links with "/opencms/
> opencms",
> > this is why
> > I removed the "rfs-prefix". Now I wanted to remove the
> > "/sites/mysite1.de/"
> > from
> > the links, so I set the exportname for the folde "/sites/mysite1.de/
> " to
> > "/".
> > When I export the site I get a 404 when the export of template-
> resources
> > starts.
> > Strangely it does work, when I set the exportname to anything other
> than
> > "/", e.g.
> > "/test", but then I have "test" in the links as well which is not
> what I
> > want.
> > Does anyone have a clue why this happens?
> > Thanks and greetings
> > Marc Johnen
> >
> > error message:
> > 08 Apr 2009 16:38:19,152 INFO [fterPublishStaticExportHandler: 450]
> > Request
> > result for RFS file "/_contentlinkbox.conf" with url
> > "http://127.0.0.1:8380/opencms/handle404/_contentlinkbox.conf" was
> > STATUS=404
> > 08 Apr 2009 16:38:19,195 DEBUG [fterPublishStaticExportHandler: 384]
> > Sending
> > request for RFS file "/_global.conf" with url
> > "http://127.0.0.1:8380/opencms/handle404/_global.conf"
> > 08 Apr 2009 16:38:19,196 DEBUG [fterPublishStaticExportHandler: 427]
> > Request
> > for RFS file "_global.conf" "If-Modified-Since" header set to "0"
> > 08 Apr 2009 16:38:19,230 DEBUG [pencms.site.CmsSiteManagerImpl: 686]
> > Matching request [http://127.0.0.1:8380] to site server: * uri:
> > /sites/mysite1.de title: /sites/mysite1.de/
> > 08 Apr 2009 16:38:19,272 INFO [fterPublishStaticExportHandler: 450]
> > Request
> > result for RFS file "/_global.conf" with url
> > "http://127.0.0.1:8380/opencms/handle404/_global.conf" was STATUS=
> 404
> > 08 Apr 2009 16:38:23,717 DEBUG [pencms.site.CmsSiteManagerImpl: 686]
> > Matching request [http://mysite1:8380] to site server: * uri:
> > /sites/mysite1.de title: /sites/mysite1.de/
> >
> >
> > opencms-system.xml:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE opencms SYSTEM
> > "http://www.opencms.org/dtd/6.0/opencms-system.dtd">
> > <opencms>
> > <system>
> > <internationalization>
> > <localehandler class="org.opencms.i18n.CmsDefaultLocaleHandler"/>
> > <localesconfigured>
> > <locale>en</locale>
> > <locale>de</locale>
> > </localesconfigured>
> > <localesdefault>
> > <locale>en</locale>
> > <locale>de</locale>
> > </localesdefault>
> > </internationalization>
> > <mail>
> > <mailfrom>nobody at nowhere.com</mailfrom>
> > <mailhost name="my.smtp.server" protocol="smtp" user="username"
> > password="secure"/>
> > <mailhost name="alternative.smtp.server"/>
> > <mailhost name="another.alternative.smtp.server"/>
> > </mail>
> > <scheduler/>
> > <versionhistory enabled="true" count="10" deleted="4"/>
> > <resourceinit>
> > <resourceinithandler
> > class="org.opencms.file.history.CmsHistoryResourceHandler"/>
> > <resourceinithandler
> > class="org.opencms.main.CmsPermalinkResourceHandler"/>
> > <resourceinithandler
> > class="org.opencms.workplace.CmsWorkplaceLoginHandler"/>
> > </resourceinit>
> > <requesthandlers/>
> > <passwordhandler
> > class="org.opencms.security.CmsDefaultPasswordHandler">
> > <encoding>UTF-8</encoding>
> > <digest-type>MD5</digest-type>
> > false
> > </passwordhandler>
> > <validationhandler
> > class="org.opencms.security.CmsDefaultValidationHandler"/>
> > <sites>
> > <workplace-server>http://localhost:8380</workplace-server>
> > <default-uri>/sites/mysite1.de/</default-uri>
> > <site server="http://localhost:8381" uri="/sites/mysite1.de/"/>
> > <site server="http://localhost:8382" uri="/sites/mysite2.de/"/>
> > </sites>
> > <runtimeproperties>
> > false
> > /opencms/opencms/
> > </runtimeproperties>
> > <runtimeclasses>
> > <runtimeinfo class="org.opencms.db.CmsDbContextFactory"/>
> > </runtimeclasses>
> > <defaultusers>
> > <user-admin>Admin</user-admin>
> > <user-guest>Guest</user-guest>
> > <user-export>Export</user-export>
> > <group-administrators>Administrators</group-administrators>
> > <group-projectmanagers>Projectmanagers</group-projectmanagers>
> > <group-users>Users</group-users>
> > <group-guests>Guests</group-guests>
> > </defaultusers>
> > <defaultcontentencoding>UTF-8</defaultcontentencoding>
> > <memorymonitor class="org.opencms.monitor.CmsMemoryMonitor">
> > <maxusagepercent>90</maxusagepercent>
> > <log-interval>600</log-interval>
> > <email-interval>43200</email-interval>
> > <warning-interval>43200</warning-interval>
> > </memorymonitor>
> > <flexcache>
> > <cache-enabled>true</cache-enabled>
> > <cache-offline>false</cache-offline>
> > <maxcachebytes>8000000</maxcachebytes>
> > <avgcachebytes>6000000</avgcachebytes>
> > <maxentrybytes>400000</maxentrybytes>
> > <maxkeys>2000</maxkeys>
> > </flexcache>
> > <http-authentication>
> > <browser-based>true</browser-based>
> > </http-authentication>
> > <resultcache>
> > <keygenerator>org.opencms.db.CmsCacheKey</keygenerator>
> > <size-users>64</size-users>
> > <size-groups>64</size-groups>
> > <size-orgunits>64</size-orgunits>
> > <size-usergroups>256</size-usergroups>
> > <size-projects>32</size-projects>
> > <size-projectresources>64</size-projectresources>
> > <size-resources>8192</size-resources>
> > <size-resourcelists>256</size-resourcelists>
> > <size-properties>1024</size-properties>
> > <size-propertylists>1024</size-propertylists>
> > <size-accesscontrollists>1024</size-accesscontrollists>
> > <size-permissions>1024</size-permissions>
> > </resultcache>
> > <content-notification>
> > <notification-time>365</notification-time>
> > <notification-project>Offline</notification-project>
> > </content-notification>
> > <authorizationhandler
> > class="org.opencms.security.CmsDefaultAuthorizationHandler"/>
> > <publishmanager>
> > <history-size>100</history-size>
> > <queue-persistance>true</queue-persistance>
> > <queue-shutdowntime>1</queue-shutdowntime>
> > </publishmanager>
> > <session-storageprovider
> > class="org.opencms.main.CmsDefaultSessionStorageProvider"/>
> > <permissionhandler
> > class="org.opencms.security.CmsDefaultPermissionHandler"/>
> > <servletcontainer-settings mode="manual">
> > <prevent-response-flush>false</prevent-response-flush>
> > <release-tags-after-end>true</release-tags-after-end>
> > </servletcontainer-settings>
> > </system>
> > </opencms>
> >
> >
> > opencms-importexport.xml:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE opencms SYSTEM
> > "http://www.opencms.org/dtd/6.0/opencms-importexport.dtd">
> > <opencms>
> > <importexport>
> > <importexporthandlers>
> > <importexporthandler
> > class="org.opencms.importexport.CmsVfsImportExportHandler"/>
> > <importexporthandler
> > class="org.opencms.module.CmsModuleImportExportHandler"/>
> > </importexporthandlers>
> > <import>
> > <overwrite>true</overwrite>
> > <convert>true</convert>
> > <importversions>
> > <importversion class="org.opencms.importexport.CmsImportVersion2"/>
> > <importversion class="org.opencms.importexport.CmsImportVersion3"/>
> > <importversion class="org.opencms.importexport.CmsImportVersion4"/>
> > <importversion class="org.opencms.importexport.CmsImportVersion5"/>
> > <importversion class="org.opencms.importexport.CmsImportVersion6"/>
> > <importversion class="org.opencms.importexport.CmsImportVersion7"/>
> > </importversions>
> > <immutables>
> > <resource uri="/system/"/>
> > <resource uri="/system/categories/"/>
> > <resource uri="/system/galleries/"/>
> > <resource uri="/system/galleries/download/"/>
> > <resource uri="/system/galleries/externallinks/"/>
> > <resource uri="/system/galleries/htmlgalleries/"/>
> > <resource uri="/system/galleries/pics/"/>
> > <resource uri="/system/login/"/>
> > <resource uri="/system/modules/"/>
> > <resource uri="/system/shared/"/>
> > <resource uri="/system/workplace/"/>
> > <resource uri="/system/workplace/admin/"/>
> > <resource uri="/system/workplace/help/"/>
> > <resource uri="/system/workplace/locales/"/>
> > <resource uri="/system/workplace/resources/"/>
> > <resource uri="/system/workplace/restypes/"/>
> > <resource uri="/system/workplace/scripts/"/>
> > <resource uri="/system/workplace/templates/"/>
> > <resource uri="/system/workplace/views/"/>
> > <resource uri="/sites/"/>
> > </immutables>
> > <principaltranslations/>
> > <ignoredproperties/>
> > </import>
> > </importexport>
> > <staticexport enabled="true">
> >
> > <!--<staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticEx
> portHandler</staticexporthandler>-->
> >
> > <!--<staticexporthandler>org.opencms.staticexport.CmsOnDemandHtmlSubt
> reeHandler</staticexporthandler>-->
> >
> > <staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticEx
> portHandler</staticexporthandler>
> > <exportpath>export</exportpath>
> > <defaultpropertyvalue>true</defaultpropertyvalue>
> > <!-- wird nur genommen, wenn defaultpropertyvalue=true -->
> > <defaultsuffixes>
> > <suffix key=".jpg"/>
> > <suffix key=".gif"/>
> > <suffix key=".png"/>
> > <suffix key=".doc"/>
> > <suffix key=".xls"/>
> > <suffix key=".ppt"/>
> > <suffix key=".pdf"/>
> > <suffix key=".txt"/>
> > <suffix key=".css"/>
> > <suffix key=".zip"/>
> > <suffix key=".swf"/>
> > </defaultsuffixes>
> > <rendersettings>
> > <rfs-prefix></rfs-prefix>
> >
> > <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>
> > <userelativelinks>false</userelativelinks>
> >
> > <exporturl>http://localhost:8380${CONTEXT_NAME}/handle404</
> exporturl>
> > <plainoptimization>true</plainoptimization>
> > <testresource uri="/system/shared/page.dtd"/>
> > <resourcestorender>
> > <regex>/sites/mysite1.de/.*</regex>
> > <regex>/sites/mysite2.de.de/.*</regex>
> >
> > <regex>/system/modules/de.mysite1.frontend/resources.*</regex>
> >
> > <regex>/system/modules/de.mysite2.frontend/resources.*</regex>
> > <export-rules>
> > <export-rule>
> > <name>mysite1.de</name>
> > <description>export rules
> > for mysite1.de</description>
> > <modified-resources>
> >
> > <regex>/sites/mysite1\.de/.*</regex>
> >
> > <regex>/system/modules/de.mysite1.frontend/.*</regex>
> > </modified-resources>
> > <export-resources>
> >
> > <uri>/sites/mysite1.de/</uri>
> > </export-resources>
> > </export-rule>
> > <export-rule>
> > <name>sfp.de</name>
> > <description>export rules
> > for mysite2.de</description>
> > <modified-resources>
> >
> > <regex>/sites/mysite2\.de/.*</regex>
> >
> > <regex>/system/modules/de.mysite2.frontend/.*</regex>
> > </modified-resources>
> > <export-resources>
> >
> > <uri>/sites/mysite2.de/</uri>
> > </export-resources>
> > </export-rule>
> > </export-rules>
> > </resourcestorender>
> > <rfs-rules>
> > <rfs-rule>
> > <name>mysite1.de</name>
> > <description>export rules for
> > mysite1.de</description>
> >
> > <source>/sites/mysite1\.de/.*</source>
> > <rfs-prefix></rfs-prefix>
> >
> > <exportpath>/srv/tomcat/opencms7/www/mysite1.de</exportpath>
> >
> > <userelativelinks>false</userelativelinks>
> > <related-system-res>
> >
> > <regex>/system/modules/de.mysite1.frontend/resources/.*</regex>
> > </related-system-res>
> > </rfs-rule>
> > <rfs-rule>
> > <name>sfp.de</name>
> > <description>export rules for
> > mysite2.de</description>
> >
> > <source>/sites/mysite2\.de/.*</source>
> > <rfs-prefix>/</rfs-prefix>
> >
> > <exportpath>/srv/tomcat/opencms7/www/mysite2.de.de</exportpath>
> >
> > <userelativelinks>true</userelativelinks>
> > <related-system-res>
> >
> > <regex>/system/modules/de.mysite2.frontend/resources/.*</regex>
> > </related-system-res>
> > </rfs-rule>
> > </rfs-rules>
> > </rendersettings>
> > </staticexport>
> > <usercsvexport>
> > <separator>;</separator>
> > <columns>
> > <column>description</column>
> > <column>lastname</column>
> > <column>firstname</column>
> > <column>email</column>
> > <column>address</column>
> > <column>zipcode</column>
> > <column>city</column>
> > <column>country</column>
> > <column>USERPREFERENCES_workplace-startupsettingssite</column>
> > <column>USERPREFERENCES_workplace-startupsettingslocale</column>
> > <column>password</column>
> > </columns>
> > </usercsvexport>
> > <repositories>
> > <repository name="standard" class="org.opencms.repository.
> CmsRepository">
> > <params>
> > org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp
> > org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent
> > org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlPage
> > org.opencms.file.wrapper.CmsResourceWrapperSystemFolder
> > org.opencms.file.wrapper.CmsResourceWrapperPropertyFile
> > </params>
> > <filter type="include">
> > <regex>/</regex>
> > <regex>/__properties/.*</regex>
> > <regex>/sites/.*</regex>
> > <regex>/system/</regex>
> > <regex>/system/__properties/.*</regex>
> > <regex>/system/galleries/.*</regex>
> > <regex>/system/modules/.*</regex>
> > <regex>/system/workplace/.*</regex>
> > </filter>
> > </repository>
> > <repository name="extended" class="org.opencms.repository.
> CmsRepository">
> > <params>
> > org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp
> > org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent
> > org.opencms.file.wrapper.CmsResourceWrapperXmlPage
> > org.opencms.file.wrapper.CmsResourceWrapperSystemFolder
> > org.opencms.file.wrapper.CmsResourceWrapperPropertyFile
> > </params>
> > <filter type="include">
> > <regex>/</regex>
> > <regex>/__properties/.*</regex>
> > <regex>/sites/.*</regex>
> > <regex>/system/</regex>
> > <regex>/system/__properties/.*</regex>
> > <regex>/system/galleries/.*</regex>
> > <regex>/system/modules/</regex>
> > <regex>/system/modules/[^/]*/</regex>
> > <regex>/system/modules/[^/]*/__properties/.*</regex>
> > <regex>/system/modules/[^/]*/resources/.*</regex>
> > </filter>
> > </repository>
> > </repositories>
> > </opencms>
> > --
> > View this message in context:
> > http://www.nabble.com/404-on-export-when-exportname-is-%22-%22-
> tp22974081p22974081.html
> > Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
> >
> >
> >
> >
> > _______________________________________________
> > 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/mailman/listinfo/opencms-dev
> >
>
> --
> View this message in context: http://www.nabble.com/Used-rfs-rules-
> for-subdirectories-Re%3A-404%09-on-export-when-exportname-is-%22-%22-
> tp23027263p23056706.html
> Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
>
> ---------- Forwarded message ----------
> From: Deiverson Silveira <deiverson at solutioncms.com>
> To: opencms-dev at opencms.org
> Date: Wed, 15 Apr 2009 10:00:39 -0300
> Subject: Re: [opencms-dev] Opencms can generate the code in XHTML 1.1?
>
> Hi,
>
> I understand, thank you for answers, Detlef and Christian!!
>
> Deiverson
>
> Message: 3
> Date: Wed, 15 Apr 2009 07:10:48 +0200
> From: Beyer Detlef <fangmich at medienkonzepte.de>
> Subject: Re: [opencms-dev] Opencms can generate the code in XHTML 1.1?
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <3A0FB6EE-2F86-47F4-A127-2F9CA993152C at medienkonzepte.de>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> OpenCMS will create what ever you put into your templates...
>
> Cheers,
>
> Detlef
>
> Message: 4
> Date: Wed, 15 Apr 2009 09:36:36 +0200
> From: Steinert <christian_steinert at web.de>
> Subject: Re: [opencms-dev] Opencms can generate the code in XHTML 1.1?
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <49E58E84.7040506 at web.de>
> Content-Type: text/plain; charset="iso-8859-1"
>
> You may want to disable some functions of the wysiwyg-HTML editor and/
> or
> switch to the XStandard HTML editor for which an opencms integration
> module is available.
>
> Apart from that, opencms will generate whatever you make your
> templates
> generate, just as Detlef said
>
> Best Regards
> Christian
> An HTML attachment was scrubbed...
> URL: http://lists.opencms.org/pipermail/opencms-dev/attachments/
> 20090415/f4bbcd8a/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Wed, 15 Apr 2009 09:39:28 +0200
> From: Christian Steinert <christian_steinert at web.de>
> Subject: Re: [opencms-dev] Opencms can generate the code in XHTML 1.1?
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Message-ID: <49E58F30.4060801 at web.de>
> Content-Type: text/plain; charset="iso-8859-1"
>
> P.S. since xhtml 1.1 must be delivered with an XML content type, you
> may
> need to set an explicit response mime type in your JSP template code.
> This should not be a big problem though.
>
> Since Internet Explorer does not have XHTML export, you may need to
> implement server-side browser sniffing inside of your templates so
> that
> you can still deliver pages as text/html to Internet Explorer.
>
> But these issues are not very opencms-specific, that's just the
> regular
> suffering of doing xhtml-as-xml...
>
> Best Regards
> Christian
>
> ---------- Forwarded message ----------
> From: Brett Sheeran <brett.sheeran at gmail.com>
> To: opencms-dev at opencms.org
> Date: Thu, 16 Apr 2009 14:05:20 +1000
> Subject: [opencms-dev] XML Content Editor Not Saving Special
> Characters Correctly
> Hi,
>
> I have a problem with the XML Content editor not saving special
> characters correctly. However, I can save the same characters in the
> same XML file if I use "Edit Control Code". Can anyone help please?
> Details as follows.
>
> I find that if I save a special character in the XML content editor,
> (in particular the pound "£" character), the XML content editor seems
> to append an extra character so the value stored becomes "£".
>
> I am using OpenCMS 7.0.5 and MySQL 5.1. It appears to me that
> everything on my system is set up for UTF-8.
>
> The JDBC connection is configured thus:
> db.pool.default.jdbcUrl.params=?characterEncoding\=UTF-8
>
> In the <head> of the editor page, I see the following metatag:
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
>
> I ran a sniffer on the submit. I see this string in the request
> header:
> Content-Type: application/x-www-form-urlencoded
>
> And this string in the response header:
> Content-Type: text/html;charset=UTF-8
>
> The *really* strange thing is that if I use "Edit Control Code" to
> edit the same XML file I can save the special characters correctly.
>
> Saving the special character as a code "£" will only work once
> because the second time I am saving the "£" character again.
>
> As a temporary workaround, I use "Edit Control Code" to remove the "Â"
> characters.
>
> Incidentally, a former colleague "skinned" a few OpenCMS JSPs. If
> anyone thinks that might be a problem, I would be interested to know
> which JSPs are associated with the XML Content Editor. I am wondering
> if there should be a tag like this in a JSP somewhere:
> <%@ page pageEncoding="UTF-8" %>
>
> Thank you.
>
> Regards BrettS
>
> ---------- Forwarded message ----------
> From: Christian Steinert <christian_steinert at web.de>
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Date: Thu, 16 Apr 2009 07:51:25 +0200
> Subject: Re: [opencms-dev] XML Content Editor Not Saving Special
> Characters Correctly
> Hi
>
> this sounds strange indeed.
> Have you tried to explicitly set the "encoding" file system property
> of your pages (or their parent folder) to "UTF-8"?
> I don't think that setting the JSP pageEncoding will make any
> difference because your response encoding is set to UTF-8 already.
>
> Kind Regards
> Christian
>
> > Hi,
> >
> > I have a problem with the XML Content editor not saving special
> > characters correctly. However, I can save the same characters in the
> > same XML file if I use "Edit Control Code". Can anyone help please?
> > Details as follows.
> >
> > I find that if I save a special character in the XML content editor,
> > (in particular the pound "£" character), the XML content editor
> seems
> > to append an extra character so the value stored becomes "£".
> >
> > I am using OpenCMS 7.0.5 and MySQL 5.1. It appears to me that
> > everything on my system is set up for UTF-8.
> >
> > The JDBC connection is configured thus:
> > db.pool.default.jdbcUrl.params=?characterEncoding\=UTF-8
> >
> > In the <head> of the editor page, I see the following metatag:
> > <meta http-equiv="content-type" content="text/html; charset=UTF-8">
> >
> > I ran a sniffer on the submit. I see this string in the request
> header:
> > Content-Type: application/x-www-form-urlencoded
> >
> > And this string in the response header:
> > Content-Type: text/html;charset=UTF-8
> >
> > The *really* strange thing is that if I use "Edit Control Code" to
> > edit the same XML file I can save the special characters correctly.
> >
> > Saving the special character as a code "£" will only work once
> > because the second time I am saving the "£" character again.
> >
> > As a temporary workaround, I use "Edit Control Code" to remove the "
> Â"
> > characters.
> >
> > Incidentally, a former colleague "skinned" a few OpenCMS JSPs. If
> > anyone thinks that might be a problem, I would be interested to know
> > which JSPs are associated with the XML Content Editor. I am
> wondering
> > if there should be a tag like this in a JSP somewhere:
> > <%@ page pageEncoding="UTF-8" %>
> >
> > Thank you.
> >
> > Regards BrettS
> >
> > _______________________________________________
> > 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/mailman/listinfo/opencms-dev
> >
>
> ______________________________________________________
> GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://movieflat.web.de
>
> ---------- Forwarded message ----------
> From: Paul-Inge Flakstad <flakstad at npolar.no>
> To: The OpenCms mailing list <opencms-dev at opencms.org>
> Date: Wed, 15 Apr 2009 18:46:10 +0200
> Subject: [opencms-dev] Sites down due to export error
>
> Hello list
>
> The export function is giving me hell.
>
> Our system is modified the "old" way, with mod_jk and mod_rewrite. We'
> ve got this setup running on several servers.
>
> When we started using OpenCms, we mistakenly assumed that all site
> folders should be placed under the "/sites/default" folder, e.g. /
> sites/default/site1 and /sites/default/site2. We then discovered that
> this was not a good idea, due to the overlapping "default" folder, so
> I am currently in the process of moving folders from /sites/default
> to /sites - so we get e.g. /sites/site1 and /sites/site2 instead.
>
> The problem on this particular server is that static resources (css
> files, images and such) are not getting exported like they should
> after I moved the folders. I tried to clear the export folder, but
> that did not help. The export folder remains _empty_!
>
> Apache's error log shows a whole bunch of errors like this one:
>
> proxy: DNS lookup failure for: dev.cruise-handbook.npolar.no returned
> by /export/system/modules/no.npolar.cruise/resources/construction.jpg,
> referer: http://dev.cruise-handbook.npolar.no/en/hornsund/index.html
>
> I double checked using nslookup, and all is fine - the relevant
> domains are all pointing to the correct server.
>
> This is our <VirtualHost> section of httpd.conf (which by the way was
> working fine when www.arcticsystem.no was placed in /sites/default/
> arcticsystem):
>
> <VirtualHost *:80>
> DocumentRoot "/usr/local/apache-tomcat-5.5.26/webapps/cms2/"
> ServerName cms2.npolar.no
> ServerAlias www.arcticsystem.noarcticsystem.nodev.mosj.npolar.nodev.
> cruise-handbook.npolar.no
>
> SetEnvIfNoCase Request_URI ^/cms2/resources/.*$ no-jk
>
> SetEnvIfNoCase Request_URI ^/export/.*$ no-jk
>
> RewriteEngine on
>
> RewriteCond %{REQUEST_URI} !^/cms2/resources/.*$
> RewriteCond %{REQUEST_URI} !^/export/.*$
> RewriteRule !^/cms2/opencms/(.*)$ /cms2/opencms%{REQUEST_URI} [PT]
>
> RewriteCond %{REQUEST_URI} ^/export/.*$
> RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
> RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !
> -f
> RewriteRule .* /cms2/opencms/handle404?exporturi=%{REQUEST_URI}&%{
> QUERY_STRING} [P]
>
> RewriteCond %{REQUEST_URI} ^/cms2/resources/.*$
> RewriteRule ^/cms2/(.*)$ /$1
>
> JkMount /* ocms
> </VirtualHost>
>
> and the <sites> section of opencms-system.xml:
>
> <sites>
> <workplace-server>http://cms2.npolar.no</workplace-server>
> <default-uri>/sites/default/</default-uri>
> <site server="http://cms2.npolar.no" uri="/sites/default/"/>
> <site server="http://www.arcticsystem.no" uri="/sites/arcticsystem/"/
> >
> <!-- <site server="http://www.arcticsystem.no" uri="/sites/default/
> arcticsystem/"/> -->
> <site server="http://dev.mosj.npolar.no" uri="/sites/mosj/"/>
> <site server="http://dev.cruise-handbook.npolar.no" uri="/sites/
> cruise/"/>
> </sites>
>
> and the modified part of opencms-importexport.xml:
>
> <rfs-prefix>/export</rfs-prefix>
> <vfs-prefix/>
>
> I'm quite stuck at this, since I'm no expert in neither Apache or
> OpenCms. Does anybody have a clue as to what might be wrong?
>
> Best regards
>
> *Paul-Inge Flakstad*
> web developer
> flakstad at npolar.no
> office: +47 77 75 06 39 | cell-phone: +47 905 94 924
> Norwegian Polar Institute
> Polar Environmental Centre
> NO-9296 Tromsø
> NORWAY
> www.npolar.no
> _______________________________________________
> 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
>
> --
> Gerald E. Butler
> http://bffoss.com
> gerald.edward.butler at gmail.com
> _______________________________________________ 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/
>
> mailman/listinfo/opencms-dev
__________________________________________________________________________
Verschicken Sie SMS direkt vom Postfach aus - in alle deutschen und viele
ausländische Netze zum gleichen Preis!
https://produkte.web.de/webde_sms/sms
More information about the opencms-dev
mailing list