Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Quick Links to:

Table of Contents
minLevel3
Panel

My build fails whenever

it

MyEclipse tries to deploy

the

my application to my OC4J application server

using MyEclipse?

.

ANSWER:

  • Open ${ORACLE_HOME}/j2ee/home/config/system-jazn-data.xml with a text editorBuild for a project will fail in a MyEclipse environment if there are 2 maven natures/libraries in the .project and. classpath files. Sometimes MyEclipse will automatically create or configure your .classpath and .project file when you check out a project. If it adds 2 maven natures (org.maven.ide.eclipse and org.eclipse.m2e ) in your project, you will not be able to build your project. The build will fail when it tries to deploy the application to the application server. The logs in the server will shows an error indicating that it is unable to load the appplcationContext as it cannot create the daoFoundation bean, sessionFactory bean, and so on as a result of a missing object: Student .
Panel

I forgot my OC4J administrator password.  How can I manually reset the password?

ANSWER:

  • Open ${ORACLE_HOME}/j2ee/home/config/system-jazn-data.xml with a text editor.
    Find the <user> tag block for oc4jadmin. Change the oc4jadmin's <credentials> property to (substituting your password for myNewPassowd): <credentials>!myNewPassword</credentials>
    Be sure to preface the password with an ! to inidcate that this is a plain text value.
    When completed, the oc4jadmin <user> should look something like:
    Code Block
    <user>
        <name>oc4jadmin</name>
        <display-name>OC4J Administrator</display-name>
        <guid>E33D5A508AA511DF8F573778FB23EDF8</guid>
        <description>OC4J Administrator</description>
        <credentials>!myNewPassword</credentials>
    </user>
    
    Save the changes and restart the OC4J server.

...