Sunday 6 July 2014

Deployment Failure error: BEA-149205 (Failed to initialize the application 'hello' due to error weblogic.management.Deployment xception)

Problem:
Deployment fails by giving below error. Error observed while starting the server. Server comes up, but the application goes into 'Prepared' state.

<Jul 6, 2014 11:28:43 AM IST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'hello' due to error weblogic.management.Deployment
xception: .
weblogic.management.DeploymentException:
        at weblogic.servlet.internal.WarDeploymentFactory.findOrCreateComponentMBeans(WarDeploymentFactory.java:69)
        at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
        at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
        at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
        at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:91)
        Truncated. see log file for complete stacktrace
Caused By: java.io.FileNotFoundException: File not found
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:117)
        at java.util.zip.ZipFile.<init>(ZipFile.java:133)
        at weblogic.servlet.utils.WarUtils.existsInWar(WarUtils.java:84)
        at weblogic.servlet.utils.WarUtils.isWebServices(WarUtils.java:76)
        Truncated. see log file for complete stacktrace


Solution:
Deployment Path of application 'hello' is changed. Server is not able to find the location from where it was last deployed. Check the path where it is pointed or redeploy it.
In my case, I moved it from 'C:\Users\amitaj\Desktop\OAM\hello.war' to some other location, hence while starting the server, I got the above deployment error. Fixed it by redeploying it from the new location.

Thursday 3 July 2014

How to change SUPERVISOR password for ODI

Follow the below steps to change the SUPERVISOR password in ODI 11g:


1. Naviagate to start --> All Programs --> Oracle --> Oracle Data Integrator --> ODI Studio

2. Navigate on ODI Studio
  click on left pane -->   Connect to Repository --> pop up the Master Repository with Supervisor/<pwd> --> click on OK

        and go to
View --> ODI Security Navigator -->  click on users --> click on "Supervisor " --> on right pane click on "change password"

Change the password and save it.

Go to the below location:

3. cd <ODI_HOME>/odi_111/oracledi/agent/bin

4. Take the backup of the file odiparams.sh

5. Run the command

      ./encode.sh  <new password>

6. Copy the encoded password to odiparams.sh in the following location

      ODI_SUPERVISOR=SUPERVISOR
      ODI_SUPERVISOR_ENCODED_PASS=<encoded password>

7. Restart all the servers and DB.

If you face below error after changing:

<Jul 3, 2014 6:28:10 AM GMT> <Warning> <Default> <J2EE JMX-46252> <Error during postRegister for MBean oracle.odi.re:name=AgentStatistics,oditype=ODIRuntimeMBeans,Application=odiconsole
java.lang.RuntimeException: oracle.odi.core.security.BadCredentialsException: ODI-10199: Incorrect ODI username or password.
        at oracle.as.jmx.framework.generic.spi.interceptors.LoggingMBeanInterceptor.internalPostRegister(LoggingMBeanInterceptor.java:703)
        at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doPostRegister(AbstractMBeanInterceptor.java:205)
        at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.postRegister(OracleStandardEmitterMBean.java:516)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.postRegisterInvoke(DefaultMBeanServerInterceptor.java:1033)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:973)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:916)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:492)
        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:714)
        at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)


Kindly check for below points if repository details have also been updated:

a) Master Repository connection details
b) Work Repository Details
c) Both the Datasources in weblogic console: jdbc/odiMasterRepository and jdbc/odiWorkRepository should have the correct password.
d) Update Master/Work repository configuration in odiparams.sh