Deploying a War File Using admin_client.jar With a Local Deployment Plan Fails with Error "Deploy error: Deploy error: Operation failed with error" (Doc ID 605339.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version: 10.1.3.3.0 and later   [Release: AS10gR3 and later ]
Information in this document applies to any platform.
***Checked for relevance on 04-Oct-2011***

Symptoms

Using the admin_client.jar tool to deploy a WAR file fails when a deployment plan is used.

Steps to reproduce

1. Run the following command to try and deploy a WAR file using a deployment plan:
java -jar admin_client.jar deployer:oc4j:opmn://<host>:<opmnPort>/<instance> oc4jadmin <password> -deploy -file <file>.war -deploymentName <application_name> -deploymentPlan <deploymentPlanName>.dat -bindAllWebApps


2. Deployment will fail with the following error:

08/08/11 14:13:14 Notification ==>Initialize /home/oracle/products/ApplicationServer/10.1.3.2/notes/601684_1/j2ee/home/a
pplications/TestDS.ear begins...

08/08/11 14:13:14 Notification ==>Operation failed with error:
Unable to find/read file META-INF/application.xml in /home/oracle/products/ApplicationServer/10.1.3.2/notes/601684_1/j2e
e/home/applications/TestDS (META-INF/application.xml)


Deploy error: Deploy error: Operation failed with error:
Unable to find/read file META-INF/application.xml in /home/oracle/products/ApplicationServer/10.1.3.2/notes/601684_1/j2e
e/home/applications/TestDS (META-INF/application.xml)



NOTE: Sample deployment plan.

moduleType=ear
applicationID=TestDS
bindWebApp=default-web-site
webSiteBindings=
parent=default
moduleID=.
doctype=orion-application
<?xml version="1.0" encoding="UTF-8"?>
<orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd">
</orion-application>
moduleID=dsTest.war
doctype=orion-web-app
<?xml version="1.0" encoding="UTF-8"?>
<orion-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd" context-root="dsTestRoot">
<web-app-class-loader>
</web-app-class-loader>
</orion-web-app>

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