Wiki source code of OC4J installation
Last modified by Vincent Massol on 2017/09/06
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{info}} | ||
2 | These instructions cover Oracle Application Server 10.1.3.1.0; other versions may differ. | ||
3 | {{/info}} | ||
4 | |||
5 | = Choose/prepare a XWiki distribution = | ||
6 | |||
7 | The 'web standard hsqldb.war' build will work right out of the box if you don't mind it storing its own HSQL database files in ##...oracle/product/10.1.3.1/OracleAS_1/j2ee/home/database/##. | ||
8 | |||
9 | Note that the ##database## directory already exists within the OAS install and is used for other things so you may want to change this directory by editing ##hibernate.cfg.xml## in the .war file. Another option is to edit ##hibernate.cfg.xml## after it has been deployed to the server. | ||
10 | |||
11 | = Install XWiki as an OC4J webapp = | ||
12 | |||
13 | Install XWiki using the Oracle Enterprise Manager webapplication in an already working OAS installation. | ||
14 | |||
15 | As of 10.1.3.x the Manager webapp is located at the following address: ##http:~/~/server_address/em/## | ||
16 | |||
17 | Click on an OC4J instance, then click the "Applications" tab and then "Deploy". | ||
18 | |||
19 | Choose the ##xwiki.war## file you have downloaded. | ||
20 | |||
21 | On the third deployment page you will be given the option to "Edit Deployment Plan". Click this, open the "war" tree segment on the left, click "xwiki", scroll down and click "Edit webAppClassLoader", change "searchLocalClassesFirst" to "true", click "Continue" and then "Ok". | ||
22 | |||
23 | = Configuring XWiki to use the OC4J Logger = | ||
24 | |||
25 | Inside your ##xwiki.war## file find //WEB-INFcommons-logging.properties//. | ||
26 | |||
27 | As a default it looks like this: {{code}}org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl{{/code}} | ||
28 | |||
29 | To make it use "Oracles Logging" modify it to look like this: {{code}}org.apache.commons.logging.LogFactory=oracle.core.ojdl.log4j.OracleAppender{{/code}} | ||
30 | |||
31 | Making the above change also prevents a deployment time error: | ||
32 | |||
33 | {{code}} | ||
34 | [Jun 4, 2009 12:44:46 PM] Operation failed with error: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor | ||
35 | [Ljava.lang.Class;@15ae0ff for org.apache.commons.logging.impl.Log4JLogger | ||
36 | (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) | ||
37 | (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor | ||
38 | [Ljava.lang.Class;@15ae0ff for org.apache.commons.logging.impl.Log4JLogger | ||
39 | (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) | ||
40 | {{/code}} |