[opencms-dev] I think I know what is going wrong..

Phil Launchbury Phil.Launchbury at tssi.co.uk
Wed Feb 4 12:46:28 CET 2009


I've nuked my old config and re-installed from scratch on the test server.
Just creating a couple of pages in a new folder, doing the remove opencms
procedure and publishing the pages (after restarting OCMS) gives the the
same error.

To which I conclude that something I'm doing in the 'remove /opencms/'
procedure is causing the error..

Here are the relevant bits that I'm changing:

(since it's running on Ubuntu Tomcat lives on :8180)

===========================================================
opencms-importexport.xml:

<rendersettings>
<rfs-prefix>/export</rfs-prefix>
<vfs-prefix></vfs-prefix>
<userelativelinks>false</userelativelinks>
<exporturl>http://127.0.0.1:8180${CONTEXT_NAME}/handle404</exporturl>

===========================================================

opencms-system.xml: 

<sites>
<workplace-server>http://cms2.tssi.co.uk</workplace-server>
<default-uri>/sites/default/</default-uri>
<site server="http://www.tssi.co.uk" uri="/sites/default/tssi/"/>
<site server="http://www.ohsc-uk.com"
uri="/sites/default/alkacon-documentation/"/>
<site server="http://cms2.tssi.co.uk" uri="/sites/default/"/>
</sites>

===========================================================

Site definition in Apache2:

NameVirtualHost *:80

<VirtualHost *:80>

ServerName cms2.tssi.co.uk:80
ServerAlias www.tssi.co.uk:80
ServerAlias www.ohsc-uk.com:80
ServerAlias 81.171.155.86:80 NameVirtualHost *:80

<VirtualHost *:80>

ServerName cms2.tssi.co.uk:80
ServerAlias www.tssi.co.uk:80

<Directory /var/lib/tomcat5.5/webapps/opencms/>
   Options Indexes Includes FollowSymLinks MultiViews
   AllowOverride AuthConfig
   Order allow,deny
   Allow from all
</Directory>

DocumentRoot "/var/lib/tomcat5.5/webapps/opencms/"

# If the requested URI is located in the resources folder, do not forward
the reque
SetEnvIfNoCase Request_URI ^/opencms/resources/.*$ no-jk

# If the requested URI is static content do not forward the request
SetEnvIfNoCase Request_URI ^/export/.*$ no-jk

RewriteEngine on
# If the requested URI is NOT located in the resources folder.
# Prepend an /${WEBAPP_NAME}/OpenCms to everything that does not already
starts wit
# and force the result to be handled by the next URI-handler ([PT])
(JkMount in thi
RewriteCond %{REQUEST_URI} !^/opencms/resources/.*$
RewriteCond %{REQUEST_URI} !^/export/.*$
RewriteCond %{REQUEST_URI} !^/opencms/webdav.*$
RewriteRule !^/opencms/opencms/(.*)$ /opencms/opencms%{REQUEST_URI} [PT]


# These are the settings for static export. If the requested resource is
not alread
# statically exported create a new request to the opencms404 handler. This
has to b
# a new request, because the current would net get through mod_jk because
of the "n

RewriteCond %{REQUEST_URI} ^/export/.*$

RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f
RewriteRule .*
/opencms/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
# If the request starts with /${WEBAPP_NAME}/resources, delete the
/${WEBAPP_NAME}

<Directory /var/lib/tomcat5.5/webapps/opencms/>
   Options Indexes Includes FollowSymLinks MultiViews
   AllowOverride AuthConfig
   Order allow,deny
   Allow from all
</Directory>

DocumentRoot "/var/lib/tomcat5.5/webapps/opencms/"

# If the requested URI is located in the resources folder, do not forward
the reque
SetEnvIfNoCase Request_URI ^/opencms/resources/.*$ no-jk

# If the requested URI is static content do not forward the request
SetEnvIfNoCase Request_URI ^/export/.*$ no-jk

RewriteEngine on
# If the requested URI is NOT located in the resources folder.
# Prepend an /${WEBAPP_NAME}/OpenCms to everything that does not already
starts wit
# and force the result to be handled by the next URI-handler ([PT])
(JkMount in thi
RewriteCond %{REQUEST_URI} !^/opencms/resources/.*$
RewriteCond %{REQUEST_URI} !^/export/.*$
RewriteCond %{REQUEST_URI} !^/opencms/webdav.*$
RewriteRule !^/opencms/opencms/(.*)$ /opencms/opencms%{REQUEST_URI} [PT]


# These are the settings for static export. If the requested resource is
not alread
# statically exported create a new request to the opencms404 handler. This
has to b
# a new request, because the current would net get through mod_jk because
of the "n

RewriteCond %{REQUEST_URI} ^/export/.*$

RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f
RewriteRule .*
/opencms/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
# If the request starts with /${WEBAPP_NAME}/resources, delete the
/${WEBAPP_NAME}
RewriteCond %{REQUEST_URI} ^/opencms/resources/.*$

RewriteRule ^/opencms/(.*)$ /$1

JkMount /* ocms

</VirtualHost>

===========================================================

The workers.properties file for mod_jk:

worker.list=ocms
worker.ocms.type=ajp13
worker.ocms.host=localhost
worker.ocms.port=8009
worker.ocms.retries=10
worker.ocms.connection_pool_minsize=13

===========================================================

The mod_jk conf file:

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat

===========================================================

All the Apache2 files were copied directly from the live server.

Can anyone see anything wrong with any of the changes?

Cheers,
Phil.


Phil Launchbury
IT & Support Manager
------------------------------------------------------
TSSI Systems Ltd,
Rutland House, Hargreaves Road,
Groundwell Industrial Estate,
Swindon, Wiltshire, SN25 5AZ, U.K.
Tel: +44 (0) 1793 747736

Support Helpdesk
Tel: +44 (0) 8450 707 898
Email: support at tssi.co.uk 
Website: www.tssi.co.uk

'Securing Business Around the World'
-------------------------------------------------------


-----Original Message-----
From: christian_steinert at web.de [mailto:christian_steinert at web.de] 
Sent: Wednesday, February 04, 2009 10:57 AM
To: Phil Launchbury; The OpenCms mailing list
Subject: Re: [opencms-dev] I think I know what is going wrong..

Phil Launchbury ha scritto:
> Yes - and I tried setting up a completely fresh site with no template
> associations other than templatetwo and I get exactly the same thing.
>
> I think I'm going to nuke my current test setup and start again from
> scratch and see if it does it before I import our OCMS6 site.
>
>
>   
sorry - I have really no idea what could cause this.
Since you wrote that switching to absolute links and restarting the cms 
also did nothing, I am really out of ideas

Christian

This e-mail message (including any attachments) is from TSSI and intended for the addressee only. It may contain information that is privileged and confidential.  If you are not the intended recipient, you must not copy, distribute or take any action in reliance of it. If this communication has been sent to you in error, please notify us immediately by either replying to this e-mail or by telephoning our offices on (+44) 1793 747700. TSSI accept no responsibility for any changes made to this message after it has been sent by the original author. This email or any of its attachments may contain data that falls within the scope of the Data Protection Acts. You must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.
TSSI Systems Ltd is a company registered in England And Wales with company number 05433732.
The TSSI Systems Ltd Registered Office address is Rutland House, Hargreaves Rd, Groundwell Industrial Estate, Swindon, Wiltshire, SN25 5AZ.



More information about the opencms-dev mailing list