[opencms-dev] Issues with OpenCms 8 on fresh install (Mac OS X)

Mathias Lin mail at mathiaslin.com
Thu May 12 06:27:28 CEST 2011


I just installed OpenCms 8 on Mac OS X (fresh installation, not an upgrade of
an existing one) and found a few issues. Before digging deeper into code
analysis and debugging, I want to know whether some of you has similar
issues as well:

After running the setup, which runs through successfully, then start page
gets opened with a 500 error, log says:

12 May 2011 11:49:03,270 ERROR [encms.xml.CmsXmlEntityResolver: 370] Could
not resolve OpenCms XML entity reference
"opencms://system/modules/org.opencms.ade.containerpage/schemas/container_page.xsd"
org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource
from path
"/system/modules/org.opencms.ade.containerpage/schemas/container_page.xsd".
	at
org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:79)
	at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:343)
	at org.opencms.db.CmsDbContext.report(CmsDbContext.java:295)
	at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4600)
	at org.opencms.file.CmsObject.readResource(CmsObject.java:2765)
	at org.opencms.file.CmsObject.readFile(CmsObject.java:2144)
	at
org.opencms.xml.CmsXmlEntityResolver.resolveEntity(CmsXmlEntityResolver.java:361)
	at
org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.java:442)
	at
org.opencms.xml.content.CmsXmlContent.getContentDefinition(CmsXmlContent.java:805)
	at
org.opencms.xml.containerpage.CmsXmlContainerPage.<init>(CmsXmlContainerPage.java:139)
	at
org.opencms.xml.containerpage.CmsXmlContainerPageFactory.unmarshal(CmsXmlContainerPageFactory.java:387)


So I open the workplace (logging in as Admin) to find the problem, and see
another issue: in the workplace file list, left to each file and folder,
folder icons display well, but file icons don't show.
see Screenshot
http://imageshack.us/photo/my-images/852/screenshot20110512at115.png/
I remember having had this before on a OpenCms7 installation (and can't
recall the reason, long time ago, maybe it was permission related), but
never had this issue on a localhost installation before.

Back to my initial problem, I see that in folder
/system/modules/org.opencms.ade.containerpage/schemas/, all xsd files are
gray flagged (belonging to project "Import of module
org.opencms.ade.containerpage"):
http://imageshack.us/photo/my-images/861/screenshot20110512at115.png/


So I switch to that project and try to publish everything (via toolbar
button). -> getting:

Attention: Your publish job created May 12, 2011 11:58:18 AM finished with 3
warnings and 0 errors.

However, even it says the publish job finished, the resources aren't
published afterwards and still have the yellow flag.
Looking at the queue log, I actually see that there were errors though:

( 1 / 75 ) Publishing file
/system/modules/org.opencms.ade.containerpage/resources/containerpage/15C89A0C95792FAC5C3FCC34BC2CBC41.cache.html
... Error publishing file
"/system/modules/org.opencms.ade.containerpage/resources/containerpage/15C89A0C95792FAC5C3FCC34BC2CBC41.cache.html".
Exception org.opencms.file.CmsDataAccessException: Unable to read file
contents with resource ID "d14b225b-7988-11e0-8c78-b967eb0fb6b8"
(online=false).
at
org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:1245)
at
org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1700)
at org.opencms.db.CmsDriverManager.publishJob(CmsDriverManager.java:5880)
at org.opencms.publish.CmsPublishThread.run(CmsPublishThread.java:162)
Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to read
file contents with resource ID "d14b225b-7988-11e0-8c78-b967eb0fb6b8"
(online=false).
at org.opencms.db.generic.CmsVfsDriver.readContent(CmsVfsDriver.java:1682)
at
org.opencms.db.generic.CmsProjectDriver.publishFileContent(CmsProjectDriver.java:1273)
at
org.opencms.db.generic.CmsProjectDriver.publishNewFile(CmsProjectDriver.java:3561)
at
org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:1200)
... 3 more
Statistics: published files: 1, published folders: 0, deleted folders: 0,
duration: 00:00:00
Exception org.opencms.file.CmsDataAccessException: Error publishing file
"/system/modules/org.opencms.ade.containerpage/resources/containerpage/15C89A0C95792FAC5C3FCC34BC2CBC41.cache.html".
at
org.opencms.file.CmsDataAccessException.createException(CmsDataAccessException.java:78)
at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:343)
at org.opencms.db.CmsDbContext.report(CmsDbContext.java:295)
at
org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1732)
at org.opencms.db.CmsDriverManager.publishJob(CmsDriverManager.java:5880)
at org.opencms.publish.CmsPublishThread.run(CmsPublishThread.java:162)
Caused by: org.opencms.file.CmsDataAccessException: Unable to read file
contents with resource ID "d14b225b-7988-11e0-8c78-b967eb0fb6b8"
(online=false).
at
org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:1245)
at
org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1700)
... 2 more
Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to read
file contents with resource ID "d14b225b-7988-11e0-8c78-b967eb0fb6b8"
(online=false).
at org.opencms.db.generic.CmsVfsDriver.readContent(CmsVfsDriver.java:1682)
at
org.opencms.db.generic.CmsProjectDriver.publishFileContent(CmsProjectDriver.java:1273)
at
org.opencms.db.generic.CmsProjectDriver.publishNewFile(CmsProjectDriver.java:3561)
at
org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:1200)
... 3 more
... the resources have been published


So next, I mark some of the files separately via workplace and try to to
publish them, which works for the xsd files, but not for some of the files
under /system/modules/org.opencms.ade.containerpage/resources/containerpage/

I tried restarting Tomcat, but doesn't help.

Since the xsd files are now published though at least, the site now opens in
offline mode as well as online mode. 

The next issue I noticed is with the Template III demo: even though I'm
logged in, and the login box for the extranet on the left hand side shows
"Logged in as: Admin", it would still show the name/password field below. Is
that intentionally? Doesn't look right logically:
http://imageshack.us/photo/my-images/52/screenshot20110512at122.png/

-----
Mathias Lin
Skype: mathias.lin
http://www.mathiaslin.com
-- 
View this message in context: http://old.nabble.com/Issues-with-OpenCms-8-on-fresh-install-%28Mac-OS-X%29-tp31599982p31599982.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list