cancel
Showing results for 
Search instead for 
Did you mean: 

deploying a war file

Former Member
0 Kudos

I have an application in the form of a .war file. I dont have source code of the application. But I feel in SAP WebAS one cannot deploy .war file.

Can someone tell me how can I deploy this application?

regards,

Saurabh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Create an EAR project in NWDS/eclipse that encapsulates your war file and deploy the EAR.

Former Member
0 Kudos

I tried doing that.

This is basically what I did. I created a j2EE web project and imported my file into the root directory of the project.

Then I created a J2EE EAR project and added the web module project to it.

Then I build the EAR module. the .ear file is showing the original .war file.

now I am deploying this .ear to the J2ee engine. the deployment went successful. But still I am getting the following error:- "The requested resource does not exist."

What can be the solution to this?

regards,

Saurabh

sid-desh
Advisor
Advisor
0 Kudos

Hi Saurabh,

Using visual administrator just check whether your application has started after deployment. It may happen at times that the application remains stopped after deployment.

Also what is the path that you are giving for running the application. Have you configured this path in the deployment descriptors.

Regards

Sidharth

Former Member
0 Kudos

Actually i think the problem is in importing an external .war file into j2EE web module. Although i am able to import it correctly (keeping the name of j2ee web module project and name of .war file same).

But when i build the j2ee EAR project, the externally imported .war file is not getting included in the .ear archive. the one that is getting included is a very basic almost empty (new) .war archive.

am I missing something. is importing an external .war correct procedure.

regards,

Saurabh

Former Member
0 Kudos

Unzip the entire war file into your War project directory, overwriting the existing web.xml etc. Then rebuild the War and Ear projects.

Former Member
0 Kudos

Hi,

As i understand you the source files arent available so rebuilding is out of question.

0. Add web-j2ee-engine.xml in the same path as web.xml

<web-j2ee-engine>

<login-module-configuration/>

</web-j2ee-engine>

1. Create a Dummy EAR file.

2. Add the WAR file to the base directory (path should be blank if you view the EAR in WinZip).

3. Open the application.xml and add the entry for the WAR file

<application id="Application_ID">

<display-name>EAR_Name</display-name>

<module id="WebModule_1127381405488">

<web>

<web-uri><WAR NAME>.war</web-uri>

<context-root>sampleContextRoot</context-root>

</web>

</module>

</application>

Note: The number in module id has some significance, for the time being you have any random number.

Deploy the EAR.

Regards,

S.Divakar

Former Member
0 Kudos

Hi Sidahrth ,

Can you please tell how do you check your application running status in visual administrator GUI to determine that if it has started.

Thanks

sid-desh
Advisor
Advisor
0 Kudos

Hi Tom,

Under server -> services just search for Depliy service and under relevant container you will find whether you app is running or not.

Regards

Sidharth

Former Member
0 Kudos

i believe you can deploy WAR files using the SDM remote gui tool