on 06-10-2005 11:07 AM
Hallo,
I have write a simple Servlet to test Deploying on J2EE Engine.
I create a WEB Project and a EAR Project.
In the EAR Project the WAR-file is included.
Now i give on application.xml the WAR-File a Context Root like "servlet".
I Deploy and test it with the url "http://host:50000/servlet" but it dosn't work.
I become the Message:
You are not authorized to view the content of the requested directory.
Details: Directory listing is not allowed on this server.
Any Idea?
Thanks,
Robin
Hi Robin,
In order to access the root directory of the application, you have to perform servlet-mapping in the web.xml:
<servlet-mapping>
<servlet-name>YourServletName</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
Or you can access the servlet directly with http://<host>:<port>/<contextRoot>/servlet/<servlet-name>.
Hope that helps!
Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in addition to Vladimir's reply, I'd like to point you to some documentation that elaborates on the ways you can invoke a servlet, and the way the Web Container initializes servlets in the different cases. Here's the page: http://help.sap.com/saphelp_nw04/helpdata/en/bb/f2b9d88ba4e8459e5a69cb513597ec/frameset.htm
Regards,
Ivo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can check which applications are available by checking your HTTP provider service.
See if you servlet application is listed there...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.