on 01-02-2006 9:30 AM
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
Create an EAR project in NWDS/eclipse that encapsulates your war file and deploy the EAR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.