Monday, November 8, 2010

BPELConsole and BPELAdmin Page does not load

All,

When trying to access the BPEL Console or the BPEL Admin page or the EM console after a fresh installation of Oracle Application Server Release 3 and BPEL I was not able to get the initial screen.The browser status always showed as "Loading .....".

After a long time of investigation and going through all the log files.
Found one log file under
$ORACLE_HOME/j2ee/oc4j_bpel/log/oc4j_bpel_default_group_1/oc4j/log.xml which was growing rapidly...on just tailing the log file came across the following error


<MSG_TEXT>IOException in NIOServerSocketDriver:select</MSG_TEXT>


Cause :-

Starting up oc4j on Solaris 10 spawns nioserversocketdriver exceptions,which is a bug.

Fix:-

1. Backup the $ORACLE_HOME/opmn/conf/opmn.xml file.

2. Edit the opmn.xml file to include -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider in the
java-options tag for the start-parameters for "home" and "oc4j_bpel" as mentioned below

<data id="java-options" value="-server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Djava.awt.headless=true"/>

3. Restart the Oracle Application Server

$ORACLE_HOME/opmn/bin/opmnctl stopall
$ORACLE_HOME/opmn/bin/opmnctl startall
$ORACLE_HOME/opmn/bin/opmnctl status (to verify)

Now I was able to sucessfully load the BPEL Console ,BPEL Admin and EM page without any issues.

The system classes in the classpath are not compatible with this version of Java when trying to start application using adstrtal.sh

Hello All,

Today when trying to start one of the mid-tier services using adstrtal.sh apps/apps, the script failed with the below message :-

Note :- This was a 11i EBS system.

apphost1:/d51/oracle/viscomn/admin/scripts/vis_apphost1> adstrtal.sh apps/apps

You are running adstrtal.sh version 115.11

The system classes in the classpath are not compatible with this
version of Java.
  Please check that the classpath is correct.
CLASSPATH = /opt/jdk1.3.1_20/j2se/jre/lib/rt.jar:/opt/jdk1.3.1_20/j2se/jre/lib/i18n.jar:/d51/oracle/viscomn/java/appsborg.zip:/d51/oracle/viscomn/java/apps.zip:/d51/oracle/visora/8.0.6/forms60/java:/d51/oracle/viscomn/java:/d51/oracle/visappl/ad/11.5.0/java/adconfig.zip:/opt/jdk1.3.1_20/j2se/bin/../classes:/opt/jdk1.3.1_20/j2se/bin/../lib/classes.zip:/d51/oracle/viscomn/java/loadjava.zip:/d51/oracle/visappl/ad/11.5.0/java/adconfig.zip:/d51/oracle/visappl/fnd/11.5.0/java/3rdparty/stdalone/xmlparserv2.zip:/d51/oracle/viscomn/util/jre/1.1.8/bin/../classes:/d51/oracle/viscomn/util/jre/1.1.8/bin/../lib/classes.zip
Check logfile /d51/oracle/viscomn/admin/log/vis_apphost1/11040716.log for details.


After analysing for minutes found that the tools java home was incorrectly set and pointing to a wrong directory.

1. Took a backup of the Context file and replaced the s_tools_java to point to the correct java location.

<JAVA_HOME oa_var="s_tools_java">/opt/jdk1.3.1_20/j2se</JAVA_HOME>

2. Then ran autoconfig .

3. Now tried to start the application services and it started successfully.