Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Download, install and configure the Oracle OC4J 10.1.3.5 stand alone server

1
4.

  1. In
  1. your
  1. $
\
  1. {user.home}
  1. directory,
  1. create
  1. the
  1. directories
  1. oc4j/10.1.3.5.0
  1. and
  1. unzip
  1. the
*
  1. oc4j_extended_101350.zip
*
  1. file
  1. to
  1. the
  1. $
\
  1. {user.home}/oc4j/10.3.5.0
  1. directory.
  Create a system environmental variable *
  1.   Create a system environmental variable ORACLE_HOME
*
  1. and
  1. set
  1. it's
  1. value
  1. to
  1. $
\
  1. {user.home}/oc4j/10.3.5.0.
\\

  1. For
  1. example:
  1. if
*
  1. $
\
  1. {user.home}=/users/rstone
*
  1. ,
  1. then
*
  1. ORACLE_HOME=/user/rstone/oc4j/10.1.3.5.0
* \\

  1. You
  1. can
  1. actually
  1. unzip
  1. to
  1. any
  1. directory
  1. you
  1. desire.
  1. The
  1. only
  1. requirement
  1. is
  1. that
  1. all
  1. directory
  1. names
  1. cannot
  1. contain
  1. any
  1. white
  1. space.

  1. Configure


  2. Edit the file ${ORACLE_HOME}/j2ee/home/config/system-application.xml and change:
Panel

Download

indent
1
1

1.
indent
22
  1. Go
  1. to
  1. the
[*
  1. Oracle
  1. Internet
  1. Application
  1. Server
*|http://www.oracle.com/technetwork/middleware/ias/overview/index.html] site.  Click on the [*Downloads*|http://www.oracle.com/technetwork/middleware/ias/downloads/index.html] tab and all available [*Application Server 10g Release 3
  1. site.  Click on the Downloads tab and all available Application Server 10g Release 3 (10.1.3.x)
  1. Downloads
*|http://www.oracle.com/technetwork/middleware/ias/downloads/index.html]
  1. will
  1. be
  1. displayed.
\\ \\ 2. Scroll down until you reach the *Oracle Containers for J2EE* section and click on [*Pure Java*|http://www.oracle.com/technetwork/middleware/ias/downloads/utilsoft-090603.html].  The [*Oracle Application Server 10g Software Downloads*|http://www.oracle.com/technetwork/middleware/ias/downloads/utilsoft-090603.html] will be displayed. \\ \\ 3. Accept the License Agreement, then click on the *Oracle Containers for J2EE 10g (OC4J)* link. The download of the *


  1. Scroll down until you reach the Oracle Containers for J2EE section and click on Pure Java.  The Oracle Application Server 10g Software Downloads will be displayed.

  2. Accept the License Agreement, then click on the Oracle Containers for J2EE 10g (OC4J) link. The download of the oc4j_extended_101350.zip
*
  1. file
  1. will
  1. start.
  1. Save
  1. this
  1. zip
  1. file
  1. on
  1. your
  1. workstation.

  1. Install

indent
1
Code Block
<import-shared-library name="oracle.toplink">
to:
Code Block
<!--import-shared-library name="oracle.toplink"-->
  • We need to add a datasource so that the applications can pull data from the database.  Edit ${ORACLE_HOME/j2ee/home/config/data-sources.xml to add a datasource.  Here's an example of adding a MITSIS datasource:
    Code Block
    <data-source
        class="com.evermind.sql.DriverManagerDataSource"
        name="OracleDS2"
        location="jdbc/MitsisDS"
        xa-location="jdbc/xa/StargateXADS-unused"
        ejb-location="jdbc/OracleDS-unused"
        connection-driver="oracle.jdbc.driver.OracleDriver"
        username=""
        password=""
        url="jdbc:oracle:thin:@//earth-vault-2.mit.edu:1523/sundev2"
        inactivity-timeout="30"
    />
    
    where obviously you'll add your username and password.

  • In order to use Spring 3.X with OC4J 10.1.3, you'll need to swap out the default XML parser in OC4J with something more modern.  xercesImpl.jar and xml-apis.jar work fine.  To swap the parser out, you need to create a new shared library in the OC4J enterprise manager and then edit the system-application.xml file to use your new shared library instead of the Oracle XML parser.

    Open ${ORACLE_HOME}/j2ee/home/application-deployments/default/orion-application.xml with a text editor.  If the file or any sub-directory does not exist, create them as needed.

    If you had to create the file anew, these are the contents of the file:
    Code Block
    <?xml version='1.0' encoding='utf-8'?>
    <orion-application
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd"
        schema-major-version="10"
        schema-minor-version="0"
        component-classification="internal">
        <imported-shared-libraries>
            <remove-inherited name="oracle.xml"/>
        </imported-shared-libraries>
    </orion-application>
    
    If you had an existing file, add this block to it:
    Code Block
    <imported-shared-libraries>
        <remove-inherited name="oracle.xml"/>
    </imported-shared-libraries>
    
  • ...