• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding tomcat

 
sunanda kadam
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i am getting following error while executing servlets or normal html files in webapps. my application is sunanda.
http status 404
resource(/sunanda/index.html)is not available
pplease resolve this , i am stuck with this
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't sound Tomcat specific, yet.
404, is HTTP's status code for File Not Found.

It may be that you don't have your web app structured properly or that you don't have some files in the right place.
Can you tell us how you deployed your application?
[ June 22, 2008: Message edited by: Ben Souther ]
 
Norm Radder
Ranch Hand
Posts: 728
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This URL (in browser)
http://127.0.0.1:8080/Norms/index.html

returns this file:
C:\Java\jakarta-tomcat-3.2.4\webapps\Norms\index.html
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the Norms directory contain a directory named WEB-INF?
If not, any version of tomcat older than 6.0, will not recognize it as a web application.
 
Norm Radder
Ranch Hand
Posts: 728
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the Norms directory does contain the directory: WEB-INF
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The next two things I would do:
1.) Use the Tomcat manager application to see if Norms is deployed and running.
2.) Look at the log files under tomcat/logs to see if anything has blown up.
 
sunanda kadam
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to deploy our webapp.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have .war file of your web application or folder contaning all the required resources with proper directory structure ..
You can simply paste it TOMCAT_HOME/webapps directory

where TOMCAT_HOME is the directory where you installed your tomcat ..
 
sunanda kadam
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no i don't hav a war file . i am a bigineer here , created jsp & html files & was trying to get on tomcat server.
how would i getit ?
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
 
sunanda kadam
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes using any IDE
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, i ask you , whether you are using any IDE, like Eclipse, JEditor, Netbeans !! If yes , the provide you with the basic directory structure template ).

If no ,
downloaad thisdoc file , which helps you to get the things more clearly !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic