[opencms-dev] CmsException says "Access denied!"

ambiesense at gmx.de ambiesense at gmx.de
Wed Mar 26 03:04:47 CET 2003


Hi there,

I have OpenCMS 5.0 RC 1 within 4.1.18 at Windows XP. I use Internet Explorer
6.0.

I have a lot of fun with OpenCMS these days. The last phenomen I got is as
follows:

I try to set up a example to run own Java code which is able to generate
some output inside a content template.

I use (master)template, frametemplate, contenttemplate and elementtemplate
and a Java class which overwrites the getContent method. I have enclosed all
the templates as well as Java class and file in a zipped file to this email. I
hope it does not produce unhappiness because of higher data traffic.

I can insert and publish all the templates. I compiled the compiled java
class in the  /Tomcat/webapps/opencms/WEB-INF/classes directory (is this
correct?? or should I also import it in OpenCMS and publish it??).

Anyway, when I produce a page from this template, I get the following
exception when I publish and later the contenttemplate is missing since it was not
published correctly. Can somebody help me?

-------------------------------------- S T A R T 
---------------------------------------------------------------
Publishing resource ...
Publishing /system/bodies/bob.html
Publishing /bob.html
Static export, number of starting links is: 2
Skipping /system/bodies/bob.html
Exporting /bob.html
Exception com.opencms.core.CmsException: 31 Access denied to resource.
Detailed error: Guests has no read access to
/content/contenttemplates/owncodetemplate. . 
at
com.opencms.template.cache.A_CmsElement.checkReadAccess(A_CmsElement.java:208)
at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:99)
at
com.opencms.template.cache.A_CmsElement.resolveVariant(A_CmsElement.java:468)
at
com.opencms.template.CmsXmlTemplate.startProcessing(CmsXmlTemplate.java:1315)
at com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:164)
at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:170)
at
com.opencms.template.cache.A_CmsElement.resolveVariant(A_CmsElement.java:468)
at
com.opencms.template.CmsXmlTemplate.startProcessing(CmsXmlTemplate.java:1315)
at com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:164)
at
com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:170)
at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149)
at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)
at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:277)
at com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:715)
at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:243)
at
com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResourceBroker.java:4656)
at com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1564)
at com.opencms.file.CmsObject.publishProject(CmsObject.java:2498)
at com.opencms.file.CmsObject.publishResource(CmsObject.java:2634)
at
com.opencms.workplace.CmsPublishResourceThread.run(CmsPublishResourceThread.java:64)
... static export finished
... the resource has been published

-------------------------------------- E N D
---------------------------------------------------------------

I am wondering what the problem might be. I checked all the permissions. I
am Admin when I publish and all the files have readin permission for owner,
groups and the rest of the world. I cannot think about a permission problem....

Any help will be highly appreciated!

Cheers
Ralf

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OwnCodeTemplateExample.zip
Type: application/zip
Size: 2211 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030326/f8ef1cfb/attachment.zip>


More information about the opencms-dev mailing list