on 11-11-2005 3:39 AM
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?
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.
-Steve
-
If you find a post useful, please help keep the community going by setting a good example and rewarding the poster with points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
<display-name>sap</display-name>
<context-param>
<param-name>sap</param-name>
<param-value>/sap</param-value>
</context-param>
I can't access using http://localhost:50000/sap . Or am I missing something? Thanks.
Rgds,
Jonathan
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:
http://localhost:50000/myProject/myServlet
Hope that helps!
Jennifer
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.