Wiki source code of OC4J installation

Last modified by Vincent Massol on 2017/09/06

Hide last authors
Manuel Smeria 4.1 1 {{info}}
2 These instructions cover Oracle Application Server 10.1.3.1.0; other versions may differ.
3 {{/info}}
mamoulian 1.1 4
Manuel Smeria 4.2 5 = Choose/prepare a XWiki distribution =
PaulSnow 2.1 6
Manuel Smeria 4.2 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/##.
mamoulian 1.1 8
Manuel Smeria 4.2 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.
mamoulian 1.1 10
Manuel Smeria 4.2 11 = Install XWiki as an OC4J webapp =
mamoulian 1.1 12
Manuel Smeria 4.2 13 Install XWiki using the Oracle Enterprise Manager webapplication in an already working OAS installation.
PaulSnow 2.1 14
Manuel Smeria 4.2 15 As of 10.1.3.x the Manager webapp is located at the following address: ##http:~/~/server_address/em/##
mamoulian 1.1 16
Manuel Smeria 4.2 17 Click on an OC4J instance, then click the "Applications" tab and then "Deploy".
mamoulian 1.1 18
Manuel Smeria 4.2 19 Choose the ##xwiki.war## file you have downloaded.
mamoulian 1.1 20
Manuel Smeria 4.2 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".
mamoulian 1.1 22
Manuel Smeria 4.2 23 = Configuring XWiki to use the OC4J Logger =
PaulSnow 2.2 24
Manuel Smeria 4.2 25 Inside your ##xwiki.war## file find //WEB-INFcommons-logging.properties//.
PaulSnow 2.2 26
Manuel Smeria 4.2 27 As a default it looks like this: {{code}}org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl{{/code}}
mamoulian 1.1 28
Manuel Smeria 4.2 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}}
PaulSnow 2.1 30
Manuel Smeria 4.2 31 Making the above change also prevents a deployment time error:
PaulSnow 2.1 32
Manuel Smeria 4.2 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}}

Get Connected