on 10-28-2006 5:12 AM
Hi Everyone,
I am a newbie to the SAP Netweaver application server. I tried to search on this topic in the forums but could not find anything. If it has been already answered, please direct me to the link.
I am trying to get the sample EJB3.0 Application(ConverterWEB) to work. The application seem to be deployed properly.
S U M M A R Y
~~~~~~~~~~~~~~~~~~~
Successfully deployed: 1
Deployed with warnings: 0
Failed deployments: 0
~~~~~~~~~~~~~~~~~~~
1. File:E:\sap\DevStudio\eclipse\workspace\ConverterEAR\ConverterEAR.ear
Name:ConverterEAR
Vendor:sap.com
Location:localhost
Version:2006.10.27.23.03.36
Deploy status:Success
Version:HIGHER
Result
Status:Success
When invoking through the browser The following message is seen.
403 Forbidden
You are not authorized to view the content of the requested directory.
Details: Directory listing is not allowed on this server.
Env : SAP NetWeaver Application Server 7.10 / AS Java 7.10
Microsoft loopback adapter enabled
Web.xml
-
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">;
<display-name>ConverterWEB</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<ejb-local-ref>
<ejb-ref-name>Converter</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.sap.tutorial.javaee.ConverterLocal</local>
</ejb-local-ref>
</web-app>
application-j2ee-engine.xml
-
<?xml version="1.0" encoding="UTF-8"?>
<application-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="application-j2ee-engine.xsd">
</application-j2ee-engine>
Any help is appreciated.
Venkatesh
Hi Venkatesh,
Looks like you are trying to open directory and directories listing is not allowed (by default). In your browser you need to specify a complete path to your application. For example, http://<java-host>:<port>/Calculator/calculator.jsp
If, however, you still want to look at directory structure, you can allow directory listing in Visual administrator / NWA by selecting appropriate checkbox for HTTP Provider Service.
Regards,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Mike and Vladimir for your response.
I enabled the Java HTTP Provider configuration directory listing as mike suggested and restarted the server and was able to view the application.
I got to the configuration through the following navigation, Login to NWA portal, Configuration Management, Java HTTP Provider Configuration. I was just wondering whether there is a configuration file that can be edited to do the same(instead of the clicks).
Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkatesh,
What URL did you request in the browser? It should be http://<host>:<http_port>/ConverterWEB/ as described in the tutorial "Developing Your First Java EE 5 Application". Please check too.
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.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.