Application Undeployment Fails When Multiple JVMs Are Configured For The OC4J Instance (Doc ID 1077725.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version 10.1.3.5.0 to 10.1.3.5.0 [Release AS10gR3]
Information in this document applies to any platform.

Symptoms

Application .ear file is correctly deployed to OracleAS 10.1.3.5 / oc4j with multi-JVM using "admin_client.jar" command.

java -jar o:\oas1013\j2ee\home\admin_client.jar deployer:oc4j:opmn://host:port/<oc4jInstance> oc4jadmin welcome1 -deploy -file <.ear file> -deploymentName <appName> -bindAllWebApps


Undeploying it using ASConsole results on the error "javax.management.RuntimeMBeanException: Standalone ResourceAdapter not found".

The same issue occurs when redeploying the application .ear file using "admin_client.jar" command.

/j2ee/home/log/home_default_group_1\oc4j\log.xml

<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2010-02-16T11:30:14.265+01:00</TSTZ_ORIGINATING>
<COMPONENT_ID>j2ee</COMPONENT_ID>
<MSG_ID>J2EE RMI-00009</MSG_ID>
<MSG_TYPE TYPE="WARNING"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>hsong-fr2</HOST_ID>
<HOST_NWADDR>10.166.243.29</HOST_NWADDR>
<MODULE_ID>rmi</MODULE_ID>
<THREAD_ID>16</THREAD_ID>
<USER_ID>hsong</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>1621496767:45926:1266316214265:1</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Exception returned by remote server: {0}</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[oracle.oc4j.admin.jmx.shared.exceptions.InternalException: RuntimeException thrown by the invoke method of the Dynamic MBean
at oracle.oc4j.admin.jmx.ejb.MBeanServerEjbBean.invoke(MBeanServerEjbBean.java:373)
at oracle.oc4j.admin.jmx.ejb.MBeanServerEjbBean.invoke(MBeanServerEjbBean.java:332)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
...
at com.evermind.server.ejb.StatefulSessionEJBObject.OC4J_invokeMethod(StatefulSessionEJBObject.java:844)
at MBeanServerEjb_RemoteProxy_1me2j7.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:67)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)

...
Caused by: oracle.oc4j.admin.internal.DeployerException: Standalone ResourceAdapter not found
at com.evermind.server.RuntimeRarUpdater.getDeployedAdapterToBeUnDeployed(RuntimeRarUpdater.java:151)
at com.evermind.server.RuntimeRarUpdater.removeGlobalRarFromRuntime(RuntimeRarUpdater.java:119)
at com.evermind.server.ApplicationServer.removeApplicationFromRuntime(ApplicationServer.java:4950)
at oracle.oc4j.admin.management.mbeans.JVM.removeApplicationFromRuntime(JVM.java:685)
... 43 more
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms