[opencms-dev] Setup problems OpenCms 8 on IBM WebSphere & Oracle 9

Mathias Lin mail at mathiaslin.com
Tue Jun 7 14:14:37 CEST 2011


Does anybody know whether OCMS 8.0 meanwhile *installs* and works fine on IBM
WebSphere and Oracle?


Currently, the IT department is trying to setup such environment, but the
OpenCms setup hangs during the initial publishing process of the imported
modules.

I've read through the mailing list and found a reply by Arash to an earlier
posting of 2008, mentioning that the OCMS setup doesn't work properly on
Glassfish, WebSphere, etc. - so the usual approach was to setup OCMS on
Tomcat and copy the files over to WebSphere. 
But that posting was of 2008, and not our preferred way, would only be the
last option.
(http://old.nabble.com/Problem-deploying-OpenCMS%2C-Version-7.0.5-td20176617.html#a20176617)


Here's our environment and problem:
Sun JDK 1.5, OpenCms 8
Oracle 9.2 and WebSphere 6.1
Assigned RAM to JVM: 1 GB

Now, during setup, the first exception that is thrown is this:

4139:	------ ... The parsing process is finished.
4140:	------ Publishing project ...
4141:	org.opencms.publish.CmsPublishException: The publish engine has been
disabled, so no more publish jobs can be accepted.
4142:		at
org.opencms.publish.CmsPublishEngine.enqueuePublishJob(CmsPublishEngine.java:247)
4143:		at
org.opencms.db.CmsDriverManager.publishProject(CmsDriverManager.java:5996)
4144:		at
org.opencms.db.CmsSecurityManager.publishProject(CmsSecurityManager.java:3509)
4145:		at
org.opencms.publish.CmsPublishManager.publishProject(CmsPublishManager.java:532)
4146:		at
org.opencms.publish.CmsPublishManager.publishProject(CmsPublishManager.java:512)
4147:		at
org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:386)
4148:		at
org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:682)
4149:		at
org.opencms.setup.CmsSetupBean.importModuleFromDefault(CmsSetupBean.java:2568)
4150:		at
org.opencms.setup.CmsSetupBean.importModulesFromSetupBean(CmsSetupBean.java:1264)
4151:		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
4152:		at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
4153:		at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
4154:		at java.lang.reflect.Method.invoke(Method.java:618)
4155:		at
org.opencms.main.CmsShell$CmsCommandObject.executeMethod(CmsShell.java:207)
4156:		at org.opencms.main.CmsShell.executeCommand(CmsShell.java:776)
4157:		at org.opencms.main.CmsShell.executeCommands(CmsShell.java:848)
4158:		at org.opencms.main.CmsShell.start(CmsShell.java:676)
4159:		at
org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:195)


and some other errors like this, regarding writing to the VFS:

4607:	Importing /sites/default/_contents/images/events/meadowsweet.jpg ...
!!! Exception Error creating resource
"/sites/default/_contents/images/events/meadowsweet.jpg" on path
"/sites/default/_contents/images/events/meadowsweet.jpg".
4608:	org.opencms.file.CmsVfsException: Error creating resource
"/sites/default/_contents/images/events/meadowsweet.jpg" on path
"/sites/default/_contents/images/events/meadowsweet.jpg".
4609:		at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:347)
4610:		at org.opencms.db.CmsDbContext.report(CmsDbContext.java:295)
4611:		at
org.opencms.db.CmsSecurityManager.importResource(CmsSecurityManager.java:2983)
4612:		at
org.opencms.file.types.A_CmsResourceType.importResource(A_CmsResourceType.java:594)
4613:		at
org.opencms.file.types.CmsResourceTypeImage.importResource(CmsResourceTypeImage.java:365)
4614:		at org.opencms.file.CmsObject.importResource(CmsObject.java:1647)
4615:		at
org.opencms.importexport.CmsImportVersion7.importResource(CmsImportVersion7.java:1798)
4616:		at sun.reflect.GeneratedMethodAccessor324.invoke(Unknown Source)
4617:		at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


It seems that these errors occur during the writing of some jpg files (not
html) to the VFS. In an environment using MySql, I would think this might be
related to the max_packet_size, but with Oracle, I am not too familiar with. 


5028:	!!! Exception Error reading the user "Admin".
5029:	org.opencms.file.CmsVfsException: Error reading the user "Admin".
5030:		at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:347)
5031:		at org.opencms.db.CmsDbContext.report(CmsDbContext.java:295)
5032:		at
org.opencms.db.CmsSecurityManager.readUser(CmsSecurityManager.java:4991)


5114:	!!! Exception null
5115:	java.lang.NullPointerException
5116:		at
org.opencms.db.CmsSecurityManager.readUser(CmsSecurityManager.java:4986)
5117:		at org.opencms.file.CmsObject.readUser(CmsObject.java:3012)
5118:		at
org.opencms.importexport.CmsImportVersion7.setUserCreated(CmsImportVersion7.java:2837)
5119:		at sun.reflect.GeneratedMethodAccessor322.invoke(Unknown Source)



Tried to run the setup multiple times, it always hangs at the publishing
process, screenshot:
http://imageshack.us/photo/my-images/43/ocmssetuphang.png/


However, the setup log says, even after all these errors, that it's
finished:

8710:	Admin at Offline>
8711:	Admin at Offline># Rebuild search indexes
8712:	Admin at Offline>rebuildAllIndexes
8713:	Exception while calling method "rebuildAllIndexes".
8714:	java.lang.NullPointerException
8715:		at
org.opencms.main.CmsShellCommands.rebuildAllIndexes(CmsShellCommands.java:1009)
8716:		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
8717:		at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
8718:		at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
8719:		at java.lang.reflect.Method.invoke(Method.java:618)
8720:		at
org.opencms.main.CmsShell$CmsCommandObject.executeMethod(CmsShell.java:207)
8721:		at org.opencms.main.CmsShell.executeCommand(CmsShell.java:776)
8722:		at org.opencms.main.CmsShell.executeCommands(CmsShell.java:848)
8723:		at org.opencms.main.CmsShell.start(CmsShell.java:676)
8724:		at
org.opencms.setup.CmsSetupWorkplaceImportThread.run(CmsSetupWorkplaceImportThread.java:195)
8725:	Admin at Offline>
8726:	Admin at Offline>exit
8727:	
8728:	
8729:	The setup is finished!
8730:	The OpenCms system used for the setup will now shut down.


When trying to open the OpenCms site then afterwards, it would say "Critical
error during OpenCms initialization: The OpenCms setup wizard is still
enabled."
Same issue as mentioned here
http://old.nabble.com/Trouble-installing-opencms7.0.5-on-Jbos-4.2.3-td27952272.html#a27952272

On the RFS, the deployed app folder structure looks like this:
http://imageshack.us/photo/my-images/151/ocmsfolder.png/



In the opencms.log I find some warnings/errors like these:

07 Jun 2011 15:12:48,690  WARN [workplace.tools.CmsToolManager: 210] . Tool
Manager config  : unknown error during configuration of the admin tool root.
org.opencms.db.CmsDbEntryNotFoundException: Error reading all resources on
the path "/system/workplace/admin/" that have the property
"admintoolhandler-class". with value "null".
	at
org.opencms.db.CmsDbEntryNotFoundException.createException(CmsDbEntryNotFoundException.java:75)
	at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:343)
	at org.opencms.db.CmsDbContext.report(CmsDbContext.java:295)
	at
org.opencms.db.CmsSecurityManager.readResourcesWithProperty(CmsSecurityManager.java:4708)
	at
org.opencms.file.CmsObject.readResourcesWithProperty(CmsObject.java:2869)
	at
org.opencms.file.CmsObject.readResourcesWithProperty(CmsObject.java:2842)

07 Jun 2011 15:42:50,355  INFO [pencms.module.CmsModuleManager: 872] .
Shutting down        : org.opencms.module.CmsModuleManager ... ok!
07 Jun 2011 15:42:50,359  INFO [s.scheduler.CmsScheduleManager: 499] .
Shutting down        : org.opencms.scheduler.CmsScheduleManager ... ok!
07 Jun 2011 15:42:50,360  INFO [ncms.loader.CmsResourceManager:1111] .
Shutting down        : org.opencms.loader.CmsResourceManager ... ok!
07 Jun 2011 15:42:50,364  INFO [ms.db.generic.CmsProjectDriver: 640] .
Shutting down        : org.opencms.db.oracle.CmsProjectDriver ... ok!
07 Jun 2011 15:42:50,367 ERROR [rg.opencms.main.CmsThreadStore: 256] Failed
to write locks to database. 
java.lang.NullPointerException
	at org.opencms.db.generic.CmsProjectDriver.log(CmsProjectDriver.java:881)
	at org.opencms.db.CmsDriverManager.updateLog(CmsDriverManager.java:8950)
	at
org.opencms.db.CmsSecurityManager.updateLog(CmsSecurityManager.java:5830)
	at org.opencms.main.CmsThreadStore.persistData(CmsThreadStore.java:253)
	at org.opencms.main.CmsThreadStore.run(CmsThreadStore.java:159)

07 Jun 2011 15:42:50,558 ERROR [importexport.CmsImportVersion7:1318] Error
reading file "manifest.xml".
java.lang.NullPointerException
	at
org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
	at
org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)


Any advice or experience with OCMS on WebSphere/Oracle is appreciated.



-----
Mathias Lin
Skype: mathias.lin
http://www.mathiaslin.com
-- 
View this message in context: http://old.nabble.com/Setup-problems-OpenCms-8-on-IBM-WebSphere---Oracle-9-tp31791343p31791343.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list