cancel
Showing results for 
Search instead for 
Did you mean: 

how to deploy ear files from command line

Former Member
0 Kudos

Hi,

I have a requirement of deploying an ear from command line .can any body send me the related links or jars or related information regarding that.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Using variuos deployment tools, an ear can be deployed thru command line..

Kindly refer thses links

http://java.sun.com/javaee/5/docs/tutorial/doc/MDB5.html

http://wiki.apache.org/geronimo/Deployment

Regards,

Uma

Former Member
0 Kudos

Hi kiran

You can deploy using ant scripts . please follow the link which contains step by step guide as to how u can do it using ant scripts

1)one is writing an ant task

2)Other is using deployManager command line option

link to PDF

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1ca44e78-0801-0010-fa9d-a76...

example link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/w...

hope this helps .

regards

rajeshkr

Former Member
0 Kudos

The scripts

<b>1.J2EEgenerator

2.eargenerator

3.deploymanager</b>

would help you doing this. You'll find these in

<b>usr\sap\<SID>\<Instance_Number>\j2ee\deploying</b>directory.

Also check this link.

http://help.sap.com/saphelp_nw04/helpdata/en/c1/f6a282078245e99654b99ffb13c508/frameset.htm

Rgds,

Amol

Former Member
0 Kudos

Hi Amol,

Thankyou for giving reply.

In the J2EEgenerator command it is asking for xml file. Which is is the path to the specific XML file that J2EEgenerator uses to assemble the components.

But what is that xml file . where can i find this. I am giving my ear file details here.

I am having sample.ear

In that it contains

Manifest.mf

Sap_manifest.mf

application.xml

application-j2ee-engine.xml

data-source-aliases.xml

sda-dd.xml

and some other jar files(Related to the projects which i used in this).

How can i run J2EEgenerator command with this. Pls explain me clearly.

Thank you.

Former Member
0 Kudos

Hi Kiran

just check this link .You can take the same example shown in the pdf and use it .

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1ca44e78-0801-0010-fa9d-a76...

regards

rajesh kr

Former Member
0 Kudos

Hi Kiran

just check this link .You can take the same example for

deploy-manager-config.xml shown in the pdf and use it .

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1ca44e78-0801-0010-fa9d-a76...

Also you can get the details about these xml's file in

http://help.sap.com/saphelp_nw04/helpdata/en/21/82a9058fa8de46b1ba7522289345b2/frameset.htm

regards

rajesh kr

Former Member
0 Kudos

Hi Bhogi Kiran,

This is the command to create the ear file.

jar cf ear-file input-file(s)

Please try this out also.

/message/904879#904879 [original link is broken]

Regards

Vishal Kumar