Installing OpenCMS on WebSphere 7
OpenCMS isn't officially supported on WebSphere Application Server 7, however I was able to get this going. I did this on RHEL5+WAS7 installation
Here are the steps:
1. Copy the opencms.war file to /root.
2. Open the WebSphere Application Server Admin Console and install the application normally. The context root will be /opencms.
3. Now start the application. It will error out. When you analyse the SystemOut.log file you'll see errors like this:
Caused by: com.ibm.ws.metadata.MetaDataException: CWWJP0040E: The persistence.xml in application opencms, module opencms.war, has a syntax error at line number: 5, column number: 16.
at com.ibm.ws.jpa.management.JPAPxmlInfo.extractPersistenceUnits(JPAPxmlInfo.java:432)
at com.ibm.ws.jpa.management.JPAScopeInfo.processPersistenceUnit(JPAScopeInfo.java:140)
at com.ibm.ws.jpa.management.JPAApplInfo.processModulePUs(JPAApplInfo.java:169)
... 94 more
This can be rectified by editing line number 5 of ./opencms.ear/opencms.war/WEB-INF/classes/META-INF/persistence.xml file and changing
version="2.0"
to
version="1.0"
4. Try starting the opencms application again and it will start now.
5. Start the setup of opencms usually by http://ip-address:9080/opencms/setup.
Labels: installation, opencms, was
2 Comments:
Hi Chirag,
Thanks for the post. Do you have any idea if I can setup OpenCMS using DB2? If you have any guidelines please let me know.
Thanks
Abdullah
Sorry, I haven't tried that.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home