# Edit the file $\{ORACLE_HOME}/j2ee/home/config/system-application.xml and change:
{code}
<import-shared-library name="oracle.toplink">
{code}to:{code}
<!--import-shared-library name="oracle.toplink"-->
{code}
# 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}
<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"
/>
{code}
where obviously *you MUST add your username and password.* If you do not have a username and password, request a them from your team leader.
\\
\\
# 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}
<?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>
{code}
If you had an existing file, add this block to it:
{code}
<imported-shared-libraries>
<remove-inherited name="oracle.xml"/>
</imported-shared-libraries>
{code}
\\
# *FOR WINDOWS ONLY* - setting the administrator's password
\\
Open a CMD window and cd to the $\{ORACLE_HOME}/bin directory. Type the following command:
\\
{indent:23}
oc4j -start
|