March 31, 2010

Redeploying the OJMS Adapter due to “Unable to find/read file META-INF/ra.xml”

Upon startup of Oracle SOA Suite, the OC4J_SOA OPMN logs were showing errors related to my OJMS adapter:
10/01/28 19:17:50 WARNING: ApplicationStateRunning.loadConnectors Exception loading connector OjmsAdapter : Unable to find/read file META-INF/ra.xml in /u01/app/oracle/product/10.1.3/soa_1/j2ee/oc4j_soa/connectors/OjmsAdapter/OjmsAdapter archive (IO Error: No such file or directory)
Basically, the OJMS adapter is not found, which was strange since I was pretty sure it was deployed.

The oc4j-connectors.xml file was configured correctly:
<connector name="OjmsAdapter" path="OjmsAdapter.rar">
<config-property name="lookupMethod" value="resourceProvider"/>
<config-property name="esourceProviderName" value="MY_AQJMS_POOLED_DS"/>
</connector>
I am not sure why the adapter was missing, but fortunately I had a backup copy of both the adapter JAR and oc4j-ra.xml, and used the following steps to redeploy the adapter manually:
mkdir -p $ORACLE_HOME/j2ee/oc4j_soa/connectors/OjmsAdapter/OjmsAdapter

cp OjmsAdapter.rar $ORACLE_HOME/j2ee/oc4j_soa/connectors/OjmsAdapter/OjmsAdapter

cd $ORACLE_HOME/j2ee/oc4j_soa/connectors/OjmsAdapter/OjmsAdapter

unzip OjmsAdapter.rar

mv $ORACLE_HOME/j2ee/oc4j_soa/connectors/OjmsAdapter/OjmsAdapter/OjmsAdapter.rar $ORACLE_HOME/j2ee/oc4j_soa/connectors/OjmsAdapter

mkdir $ORACLE_HOME/j2ee/oc4j_soa/application-deployments/default/OjmsAdapter

cp /tmp/oc4j-ra.xml $ORACLE_HOME/j2ee/oc4j_soa/application-deployments/default/OjmsAdapter
I restarted the OC4J_SOA container, and was good to go.

1 comment:

  1. Blancpain released bathyscaphs Bathyscaphe swiss replica watches flyback Chronograph "heart of the ocean" 2016 new limited edition, rolex replica limited edition 250. This watch every one sold, replica rolex will donate 1000 euros to support the marine scientific research projects, the second pen 250 thousand euros for charity will become Blancpain for continuously supplying marine environmental protection power.

    ReplyDelete