This discussion is archived
4 Replies Latest reply: May 9, 2013 3:11 PM by user517694 RSS

weblogic.version gives java error after install of D33T

1005480 Newbie
Currently Being Moderated
Hi,

I just installed patch D33T (Oracle WebLogic Server Patch Set Update 10.3.6.0.4) - released April 2013. Before installing the patch, I checked my weblogic version (running setWLSEnv and java weblogic.version) following the instructions in the readme and the command worked.

The patch installed fine, I then checked the version again (first doing setWLSEnv and then running java weblogic.version) - however this produced the java error 'NoClassDefFoundError' - could not find the main class: weblogic.version.

I found a blog entry that suggested adding the weblogic.jar to the classpath, so I did that, then exported the classpatch, ran the setWLSEnv.sh again and tried the java weblogic.version command again - but still received the java error. I then tried running the command from the folder containg the weblogic.jar and still no luck.

Anyone have any ideas why this may be producing errors?

Thanks,

Connie

Environment info: RHEL 64 - Weblogic SErver 11gR1 (10.3.6.0) - The servers start and seem to be running fine after the patch install.
  • 1. Re: weblogic.version gives java error after install of D33T
    Vijaya Moderator -Oracle Expert
    Currently Being Moderated
    Does the classnotfound issue occur only after applying patch ?
    Please confirm.

    Can you try if you find any luck by running the two other scripts that can set the environment path?

    setDomainEnv.sh
    commEnv.sh

    Thanks,
    Vijaya
  • 2. Re: weblogic.version gives java error after install of D33T
    1005480 Newbie
    Currently Being Moderated
    Hi Vijaya,

    Thanks for your reply. Yes - the error only seemed to show up after installing the patch - I tried the java weblogic.version command before installing the patch so that I could compare the results with running it later and it produced a result then. After the result - it produced an error.

    I tried running the sh files you suggested setDomainEnv.sh and commonenv and then tried the weblogic.version - and no luck. I then tried running the setWLSEnv.sh again and then trying weblogic.version - and still no luck.
  • 3. Re: weblogic.version gives java error after install of D33T
    1005480 Newbie
    Currently Being Moderated
    I was trying a few more things after I sent my last reply and wondered if my classpath and path values might have not had correct values after running setWLSENV.sh

    When I echo'ed their values, they came back without any of the values being set by setWLSEnv.sh

    I then set them by copying and pasting the values echo'ed back from the setWLSEnv.sh file - by using export CLASSPATH=$CLASSPATH:<<paste of echo'ed classpath from setWLSEnv.sh>> and then the same for the path. After this, I tried the java weblogic.version and that worked - so now, I guess I am left to deal with issue of my setWLSEnv.sh not setting the CLASSPATH and PATH variables.

    Thanks,

    Connie
  • 4. Re: weblogic.version gives java error after install of D33T
    user517694 Newbie
    Currently Being Moderated
    I have experiencing the same problem with weblogic.version. I resolved it by sourcing setWLSenv.sh like this:
    . ./setWLSenv.sh

    After that I was able to run the java weblogic.version successfully.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points