cancel
Showing results for 
Search instead for 
Did you mean: 

SAP NW NEO - HTTP404 not found

Former Member
0 Kudos

Hello experts,

I have just created the Hello World application as described on the help.sap.com page: https://help.netweaver.ondemand.com/default.htm?deploy_ide.html#concept_10CB6EE361554825A778B64F806C....

When I am deploying the application locally it is started and all looks fine. When opening the browser(http://localhost:8080/HelloWorld/) there is an error though.

HTTP404 - /HelloWorld/

The requested resource (/HelloWorld/) is not available.

Where does this error come from? Is it the JRE? Is it MacBook? I am running JAVA SE6(Mac OS X default).

I would appreciate your help.

Best regards,

Fons

  • SAP Managed Tags:

Accepted Solutions (0)

Answers (1)

Answers (1)

matt_steiner
Active Contributor
0 Kudos

Hi Fons,

hm, I'd assume that the URL (HelloWorld) may not be right. In order to make things simply, I'd suggest you do a right-click (open the context menu) on the HelloWorldServlet and pick the 'Run as...' option and then start it that way on your localhost. This should open up a browser window in Eclipse using the right URL.

If that shouldn't do the trick, pls right-click on our localhost server in the "Servers" window, choose 'More' and display the log file. Pls attach the log so that we can have a closer look.

BR,

Matthias

Former Member
0 Kudos

Hello Matthias,

Thank you for your help. I had already tried to run it on the local server but without success. I have attached the log file, hopefully you can find something.

Best regards,

Fons van Nuland

7/10/12 9:12:16.768 PM [0x0-0xc00c].org.eclipse.eclipse: WARNING: Failed to restart: java.io.IOException: Failed to get a RMI stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:

7/10/12 9:12:16.768 PM [0x0-0xc00c].org.eclipse.eclipse: WARNING: Failed to call the method close():java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:

matt_steiner
Active Contributor
0 Kudos

Hi Fons,

hm, now that looks really strange indeed. Could you send us the full log file?

BR,

Matthias

Former Member
0 Kudos

Hi Fons,

You get 404 because your are requesting the context root of your application. There should be a so called "welcome page" like index.html or index.jsp to have a response other than 404 Not Found.

In order to call the resource you want (servlet in this case), you should call the Run on Server action from the context menu of this resource.

You can check the same issue reported here: http://scn.sap.com/thread/3188416

Greetings,

Kaloyan

architectSAP
Active Contributor
0 Kudos

Hello Fons,

to get your HelloWorldServlet called when you request the context root of your application you would have to edit the web.xml file in WebContent/WEB-INF so that the the url-pattern is / instead of the default /HelloWorldServlet:

<servlet-mapping>

     <servlet-name>HelloWorldServlet</servlet-name>

     <url-pattern>/</url-pattern>

</servlet-mapping>

With that http://localhost:8080/HelloWorld/ should work.

Best regards

Frank