This is the needed steps to install and configure OpenCMS 6.2.3 to work with Sun Java System Application Server 8.x (SJSAS for short)
Some notes:
- The deployment is directory based
- If the server is running, then it needs to be restarted
1) Uncompress the opencms.war file, into some other directory. This will be the directory used to deploy
Example: /home/claudio/tmp/opencms/opencms
2) Configure the following JVM properties
- -Dfile.encoding=UTF-8
- Classpath prefix, must set the /home/claudio/tmp/opencms/opencms/WEB-INF/lib/commons-digester-1.7.jar
SJSAS bundles a previous version of commons-digester, but OpenCMS needs the 1.7 version
3) Configure the SJSAS policy file
grant codeBase "file:///home/claudio/tmp/opencms/opencms/-" {
permission java.security.AllPermission;
};
For this to take effect, the instance needs to be restarted
4) Copy the JDBC driver to the library directory
$ cp /home/claudio/javaSoftware/lib/mysql-connector-java-5.0.3/mysql-connector-java-5.0.3-bin.jar /var/opt/sun/appserver/domains/domain1/lib/ext/
5) Deploy the opencms application as a directory
Set the Application Name and Context Root properties as opencms
6) Probably the following exception can occur:
WebModule[/opencms]Servlet /opencms threw load() exception
javax.servlet.ServletException: Critical error during OpenCms
initialization: The OpenCms setup wizard is still enabled.
at org.opencms.main.OpenCmsServlet.init(OpenCmsServlet.java:241)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
That exception only warn to the user, that the wizard mode is enabled.
When wizard mode is enabled, anyone can access the opencms setup and configure from the beginning, that's what we want.
The wizard mode is disable when the setup is done successfully.
Probably its a bug on opencms, because this the first time setup is invoked.
7) Restart the server if its already running
Add new attachment
Only authorized users are allowed to upload new attachments.