Maverick
Maverick

Reputation: 2760

java apache tomcat is not detecting the jsp file even when it exists

I have come across to a strange problem where apache tomcat server is showing 404 server code. But some of the files are being detected by the system. I am using eclipse for the development.

Any suggestions?!

EDIT 1 :

i have checked the webapps folder of CATALINA_HOME but nothing is there related to the project.

Upvotes: 0

Views: 3330

Answers (3)

Kavalg
Kavalg

Reputation: 11

Another possible issue that might cause similar problems is if you have deployed your application in the root context (i.e. under the name ROOT) and the jsp in question is in a folder like /manager, while you also have the manager application. In this case, Tomcat will give preference to the manager application, rather than the /manager path inside the ROOT application

Upvotes: 1

duffymo
duffymo

Reputation: 308763

I'd recommending seeing if you can deploy a WAR file successfully in Tomcat without using Eclipse.

Right now it sounds like you don't understand Java web apps or Tomcat very well.

When you throw Eclipse on top of it there's too much ignorance to make progress.

So remove one of the things you don't understand. See if you can make the WAR file, deploy it manually, and see your JSP in the browser by hand. Once that works, you have a baseline for comparing how Eclipse needs to do things.

Upvotes: 3

Shaunak
Shaunak

Reputation: 18018

Eclipse wont always deploy dynamically aka hot deploy and you need to make it re-deploy. So sure shot way of checking is to actually going into the war file, or the root directory and checking if the jsp exists. Also you have to provided much information as to what kind of a web application it is, for me to understand the problem better. For example, in struts a wrong entry in struts-config.xml will result in 404 even if the intended jsp is present.

Upvotes: 0

Related Questions