If your OC4J server is not using the embedded OC4J server which is included with JDeveloper or if your OC4J server does not seem to have the Business Components for Java framework installed, you can set up the standalone OC4J server with the BC4J runtime libraries. You can do this either automatically with a script or manually by copying files.
JDeveloper provides an automated script that configures a standalone OC4J to
work with BC4J. The bc4j2oc4j.bat
script is available in:
<jdev_install>/Bc4j/bin
There are two bc4j2oc4j
scripts, one is a UNIX shell script and
one is a DOS batch script. JDeveloper works on Solaris. You should unzip OC4J
into a directory outside of the Oracle Home. See the How To document at the
following location for details on using this script:
http://otn.oracle.com/products/jdev/htdocs/config_oc4j_for_bc4j.html
To deploy BC4J web applications to a standalone OC4J server not running JDeveloper:
You require a complete JDeveloper installation which includes the BC4J
runtime libraries and which you will copy to the target OC4J server. OC4J
is installed in the <jdev_install>/j2ee/home
directory or the "OC4J Home".
<jdev_install>
directory tree to your target OC4J server machine. <jdev_install>/jdev
directory and its subdirectories. application.xml
file from the JDeveloper <jdev_install>/j2ee/home/config
directory to the <OC4J_HOME>/j2ee/home/config
directory. This file contains a listing of the JDeveloper runtime files and
sets the classpath for all of these files. bc4j.ear
in the Navigator (below bc4j.ear
contains support for the
BC4J web application images and cascading style sheets and UIX libraries.
You can also find the bc4j.ear
file in <jdev_install>/Bc4j/redist
directory. % Java -jar oc4j.jar <options>
Important: Make sure that you have the tools.jar
in the OC4J classpath. This file is located in <jdev_install>/jdk/lib
.
This file must match the version of the JDK being used to run OC4J. If it does
not, you may have problems running applications in OC4J standalone mode.