aspose file tools*
The moose likes Servlets and the fly likes regarding tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "regarding tomcat" Watch "regarding tomcat" New topic
Author

regarding tomcat

sunanda kadam
Ranch Hand

Joined: Feb 26, 2008
Posts: 42
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

Joined: Dec 11, 2004
Posts: 13410

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 ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Aug 10, 2005
Posts: 685
Yes the Norms directory does contain the directory: WEB-INF
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Feb 26, 2008
Posts: 42
how to deploy our webapp.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 ..


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
sunanda kadam
Ranch Hand

Joined: Feb 26, 2008
Posts: 42
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

using any IDE ??
sunanda kadam
Ranch Hand

Joined: Feb 26, 2008
Posts: 42
yes using any IDE
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 !!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: regarding tomcat