Showing results for 
Search instead for 
Did you mean: 

Deployment of new EAR File

Former Member
0 Kudos

Ok,I've tried hunting high and low but still can't find an answer. I have successfully used NetWeaver Developer Studio to deployed an EAR file to the SDM. What should I do next? How do I activate/access the application?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jonathan,

I'm going to need a little more information than that. What exactly do you want to do? I gather you've deployed a web application, which means the application should already be activated. If you just want to access the application you need to append whatever is listed in the context-root element in the web.xml of your application to http://<hostname>:<portnumber>/ and put it in the browser.

Let me know if you need more guidance.



If you find a post useful, please help keep the community going by setting a good example and rewarding the poster with points.

Former Member
0 Kudos

Hi Steve,

Here's what I did. I have an application which was deployed in tomcat. I created a Web module in NetWeaver Studio, build Web archive to create a .war file. Next I created an Enterprise Applicaiton, added the WebModule to EAR project. Build Application Archive to create EAR file, deploy to J2EE engine. Am I right so far? When you mentioned I need to append whatever is listed in the context-root element, should it be in the application or the web? I have tried adding something like this to the web.xml of the Web module






I can't access using http://localhost:50000/sap . Or am I missing something? Thanks.



Former Member
0 Kudos

Hi Jonathan.

The context root that Steve is talking about is the Enterprise Application project, not the web project. If you open up the application.xml file, click on the modules tab, and then click on your war file, you'll see Context Root show up as the last text box on the right.

On a side note, if you're working with servlets, you can also set up servlet mappings to make accessing them easier (or at least give you a prettier url :). If you open your web.xml file in your web project, and go to the Mapping tab, you can click on the Servlet Mappings folder, and then hit add. It should give you a list of your available servlets. After you pick one, you can enter a URL pattern for it. So. if you put "myProject" for the Context Root, and "myServlet" for the URL pattern, your final url would be:


Hope that helps!