Search This Blog

Wednesday, March 10, 2010

java.lang.RuntimeException: Could not find the OffLine WLST class

Hi All,
I was doing installation of Oracle identity Manager 9.1.0.1 on Weblogic 10.3.0.0 Clustering environment.I came across a issue related to WLST offline class error.

oracle/oim/xellerate/setup/setup.xml:443: The following error occurred while executing this line:
/oracle/oim/xellerate/setup/weblogic-setup.xml:196: java.lang.RuntimeException: Could not find the OffLine WLST class
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)


I tried different things like
1.checking all paths are set correct JAVA_HOME,BEA_HOME.
2.Checking version of Weblogic
3. ./wlst.sh
4. java weblogic.WLST and many other approach.Final solution is listed below :


Solution :
There is an existing Bug 8431390 - WLST NOT WORKING IF WE USE NON-DEFAULT INSTALLATION (WL_HOME OUTSIDE BEA_HOME)

As per this bug, the issue can be reproduced as follows:

Steps to reproduce:
1. Install WLS 10.3GA (essex) kit in a non-default fashion (WL_HOME outside
BEA_HOME)
2. Go to ur $WL_HOME/common/bin directory and execute wlst.cmd
3. It exits with the following exception:
java.lang.RuntimeException:could not find the OffLine WLST class

I have set up the same-way that's why.

2 comments:

  1. There is a solution for this problem. Please add the following jars to the classpath:

    /server/lib/weblogic.jar:
    /modules/com.bea.cie.config_5.2.0.0.jar:
    /modules/features/weblogic.server.modules_10.3.0.0.jar

    and the infamous exception "Could not find the OffLine WLST class" will go away. cheers!! Yay to Middleware!!!

    ReplyDelete
  2. That works!! Thanks a bunch!

    ReplyDelete