Groups > Weblogic > Weblogic education > How to deploy ear file with jar file and war file with different names




How to deploy ear file with jar file and war file with
different names

How to deploy ear file with jar file and war file with different names
Tue, 24 Jul 2007 23:12:55 -070
Hi,

As part of weblogic migration from WL 6.1 sp3 to WL 10, Iam facing some
problem.
Problem:
I have one ear file(abc.ear) to deploy which contains one jar file(xyz.jar) and
one war file(pqr.war).
In config.xml file of WL 6.1, it was mentioned as :
<Application Deployed="true" Name="abc"
Path="./config/mydomain/applications/abc.ear">
  <EJBComponent Name="xyz" Targets="myserver"
URI="xyz.jar"/>
        <WebAppComponent Name="pqr" Targets="myserver"
URI="pqr.war"/>
</Application>.
The above is working fine.
But in config.xml file WL10,I cannot mention the same.
I need to have different application anmes for ear,jar and war.If I deploy as a
ear file,the jar and war files are deployed with the same ear file name.
I tried the following options:
1) Deploying as a ear file by adding <sub-deployments>
2) Deploying both war and jar seperately which is not recommended in my
application. 

Please provide the content I should place in the config.xml so that everything
works fine correctly.

Post Reply
about | contact