-1

I have found several replicas of this question, but none helped me. I was dealing with jsp and hibernet with eclipse and apache server. The server installation is in port 9090. An downloaded project has imported from D:/. After clearing the jre path, I Run the project on server and the out put is error

`HTTP Status 404 - /servlet/

type Status report message /servlet/

description The requested resource is not available.

Apache Tomcat/7.0.32`

The google search gave some remedies and I followed that. The following are the screen shots.

Project:

enter image description here

Server Properties:

enter image description here

Tomcat Overview: enter image description here

Did I missed anything?

Sajeev
  • 783
  • 3
  • 14
  • 46

2 Answers2

1

I solved the issue. I had made some mistakes 1. I have failed to include the welcome page in web.xml 2. I had put the project in eclipse workspace and I choose the server location as Use tomcat installation. That was wrong. I should choose workspace meta data as my project is in workspace

Sajeev
  • 783
  • 3
  • 14
  • 46
0

Below steps solves 404 problem if server is properly configured.

First:

Check your Context root for this project.

You can edit context root from project-->property->web project settings.

Second:

Restart your server and try to clean and build again. Sometimes that solves 404 problem.

Third:

1) Double click on your server or right click->open

2) Click on open launch configuration

3) Go to classpath tab

4) See in user-entries, commons-daemon.jar is available or not if it not then click on add external jar --> path(which you can find it in TOMCAT_HOME/bin)

5) Click on apply and restart your server

Now access : http://localhost:9090/<project-context-root>

Darshan Patel
  • 2,839
  • 2
  • 25
  • 38