Weblogic Añadir ADF al classpath.

Para añadir las librerías ADF al classpath de Weblogic, primero lo añadiremos al setDomainEnv.sh:


weblogic@wlsserver:/oracle/Middleware/user_projects/domains/MIDOMINIO/bin> vi setDomainEnv.sh

#
if [ "${POST_CLASSPATH}" != "" ] ; then
POST_CLASSPATH="${COMMON_COMPONENTS_HOME}/modules/oracle.adf.share_11.1.1/adf-share-wls.jar${CLASSPATHSEP}${POST_CLASSPATH}"
export POST_CLASSPATH
else
POST_CLASSPATH="${COMMON_COMPONENTS_HOME}/modules/oracle.adf.share_11.1.1/adf-share-wls.jar"
export POST_CLASSPATH
fi

if [ "${POST_CLASSPATH}" != "" ] ; then
POST_CLASSPATH="${COMMON_COMPONENTS_HOME}/modules/features/adf.share_11.1.1.jar${CLASSPATHSEP}${POST_CLASSPATH}"
export POST_CLASSPATH
else
POST_CLASSPATH="${COMMON_COMPONENTS_HOME}/modules/features/adf.share_11.1.1.jar"
export POST_CLASSPATH
fi

if [ "${POST_CLASSPATH}" != "" ] ; then
POST_CLASSPATH="${COMMON_COMPONENTS_HOME}/modules/features/adf.model_11.1.1.jar${CLASSPATHSEP}${POST_CLASSPATH}"
export POST_CLASSPATH
else
POST_CLASSPATH="${COMMON_COMPONENTS_HOME}/modules/features/adf.model_11.1.1.jar"
export POST_CLASSPATH
fi

#

En el caso de tener Managed servers y estos son gestionados por NodeManager, será necesario modificar el fichero /server/bin/startNodeManger.sh de la siguiente forma:

ORACLE_HOME="/opt/products/oracle/WLS103/jdeveloper"
export ORACLE_HOME
ADF_CLASSPATH="${ORACLE_HOME}/modules/features/adf.share_11.1.1.jar"
export ADF_CLASSPATH
set -x
CLASSPATH="${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${CLASSPATH}${CLASSPATHSEP}${BEA_HOME}
${CLASSPATHSEP}${ADF_CLASSPATH}"
export CLASSPATH

StopScriptEnabled=true
StartScriptEnabled=true