HTTP/1.1 404 Not Found error in Web Server

I am running 2 jboss instances with ports 8585 and 8686 in my web server.
Now trying to get header using the command

curl -s --connect-timeout 360 -m 360 --head http: // localhost:8686/ then i get the following error

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 15 Oct 2015 10:59:54 GMT

but the same command is working for another jboss port 8585

curl -s --connect-timeout 360 -m 360 --head http : // localhost:8585/

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/"2432-1331318642000"
Last-Modified: Fri, 09 Mar 2012 18:44:02 GMT
Content-Type: text/html
Content-Length: 2432
Date: Thu, 15 Oct 2015 11:19:15 GMT

what is the problem. how can i get the same output as 8585.

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums