weblogic.management.DeploymentException | Weblogic

Oracle Weblogic Server

If your weblogic logs show below error while starting/stopping or rebooting then follow below steps to fix the issue.

<Jul 16, 2013 10:30:50 AM EDT> <Warning> <JMX> <BEA-149517> <An attempt was made to unregister an mbean that was already unregistered: [email protected]>

<Jul 16, 2013 10:30:50 AM EDT> <Error> <Deployer> <BEA-149250> <Unable to unprepare application ‘ECWAP’.

weblogic.management.DeploymentException:

at weblogic.application.internal.flow.ApplicationRuntimeMBeanFlow.unprepare(ApplicationRuntimeMBeanFlow.java:64)

at weblogic.application.internal.BaseDeployment$1.previous(BaseDeployment.java:615)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:148)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:138)

at weblogic.application.internal.BaseDeployment.unprepare(BaseDeployment.java:249)

Truncated. see log file for complete stacktrace

OR

java.lang.IllegalArgumentException: Failed to properly unregister [email protected] for ObjectName com.bea:ServerRuntime=mysrv003_223_a,Name=default,ApplicationRuntime=EPWAP,Type=WorkManagerRuntime

at weblogic.management.jmx.ObjectNameManagerBase.unregisterObject(ObjectNameManagerBase.java:219)

at weblogic.management.jmx.ObjectNameManagerBase.unregisterObjectInstance(ObjectNameManagerBase.java:192)

at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.unregisteredInternal(RuntimeMBeanAgent.java:124)

at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.unregistered(RuntimeMBeanAgent.java:108)

at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:187)

Truncated. see log file for complete stacktrace

Usually this error happens when your JDBC connection pool name is same as application name in config.xml.

To avoid this situation change the either names(JDBC Name/App Deployment Name) to something unique.

Example:

See the below names are same(highlighted), so this needs to be changed to some unique names to fix the issue.

<app-deployment>

<name>EPWAP</name>

<target>mysrv003_223_a</target>

<module-type>war</module-type>

<source-path>servers/mysrv003_223_a/upload/ECPWAP.war</source-path>

<security-dd-model>DDOnly</security-dd-model>

</app-deployment>

<admin-server-name>mysrv003_223_a</admin-server-name>

<jdbc-system-resource>

<name>EPWAP</name>

<target>mysrv003_223_a</target>

<descriptor-file-name>jdbc/EPWAP-3342-jdbc.xml</descriptor-file-name>

</jdbc-system-resource>

In case of any ┬ęCopyright or missing credits issue please check CopyRights page for faster resolutions.

Leave a Reply