This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

regarding tomcat  RSS feed

 
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
 
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 ]
 
Rancher
Posts: 3067
33
  • 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
Rancher
Posts: 3067
33
  • 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.
 
Ranch Hand
Posts: 2907
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: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using any IDE ??
 
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: 2907
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 !!
 
Hey! Wanna see my flashlight? It looks like this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!