To add further details to Shahzeb's answer: My environment: Websphere 8.5; Windows 7 (Eclipse Luna to create a test .war file)
I installed the war file exported from eclipse on the websphere server using the websphere console. Then export it again and unzip it to see what the web page automatically adds to it to create the EAR.
[folder]META-INF [folder]ibmconfig [file]application.xml [file]ibm-application-bnd.xmi [file]ibm-application-runtime.props [file]MANIFEST.MF [file]was.module [file]was.policy [file]was.webmodule [file]myWAR.war
And the deploy.xml file is placed in .. \ ibmconfig \ cells \ defaultCell \ applications \ defaultApp \ deployments \ defaultApp \
whose contents are in the form
<?xml version="1.0" encoding="UTF-8"?> <appdeployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:appdeployment="http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi" xmi:id="Deployment_1417052686904"> <deployedObject xmi:type="appdeployment:ApplicationDeployment" xmi:id="ApplicationDeployment_1417052686904" deploymentId="0" startingWeight="1" binariesURL="$(APP_INSTALL_ROOT)/[server service name]Cell/myWAR.ear" useMetadataFromBinaries="false" enableDistribution="true" createMBeansForResources="true" reloadEnabled="false" appContextIDForSecurity="href:[server service name]Cell/myWAR" filePermission=".*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755" allowDispatchRemoteInclude="false" allowServiceRemoteInclude="false" asyncRequestDispatchType="DISABLED" standaloneModule="true" enableClientModule="false"> <targetMappings xmi:id="DeploymentTargetMapping_1417052686904" enable="true" target="ServerTarget_1417052686904"/> <classloader xmi:id="Classloader_1417052686904" mode="PARENT_FIRST"/> <modules xmi:type="appdeployment:WebModuleDeployment" xmi:id="WebModuleDeployment_1417052686904" deploymentId="1" startingWeight="10000" uri="myWAR.war" containsEJBContent="0"> <targetMappings xmi:id="DeploymentTargetMapping_1417052686905" target="ServerTarget_1417052686904"/> <classloader xmi:id="Classloader_1417052686905"/> </modules> <properties xmi:id="Property_1417052686904" name="metadata.complete" value="true"/> </deployedObject> <deploymentTargets xmi:type="appdeployment:ServerTarget" xmi:id="ServerTarget_1417052686904" name="server1" nodeName="[server service name]"/> </appdeployment:Deployment>
(Since I have no reputation, I have to do it all in the text ..)
source share