• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help me

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i m begging in front of all of you.
after all efforts i m not be able to run /execute a servlet in tomcat.

i m depressed a lot,i m trying it from last 4-5 days.
my directory is--:

c:\program file\apache group\tomcat4.1\

please please please please please please please please please please please please please please please please please please please please please please please please please ..................................

give me out with the proper solution ,that how to set the environmental variables and where to save up with the files, what extra files i have to create...etc what all stuff is necessary.............please sir i m begging in front of you.

thank you
gaurav
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Need not begging mate. Get this, it will help you more then you want.

Otherwise tell us what you did and what you are doing. and what are you getting???
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, begging is beneath you.

I have some simple servlet applications all written and packaged as war files that you can just drop in the webapps directory of you Tomcat installation and run.

http://simple.souther.us

Start with SimpleServlet.
Once you see that it's running, you'll be able to either modify it or compare with your own app to see what's going wrong.

Let us know how you make out.
 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you , as per your saying i now understand that we have to save our WAR file in TOMCAT_HOME\webapps\ .and after doin this it have worked ,
btu sorry to disturb you please tell me that how to create WAR file in tomcat.

thank you
gaurav
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
creating a WAR file is not compulsary. however you can make a war file using jar utility.
And make sure your TOMCAT server is running before you try to run your servlet. You can start your server by running startup.bat from bin directory. Before that you have to save the JAVA_HOME variable in the environment variables, which the home of your JDK.

Hope this solves your problem.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Bens' link really works.
cheers.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My point was not that you have to make a war file.
By downloading and deploying one of those apps, you give yourelf a working application that you can refer to.

You can see what the proper directory structure.
You can see a proper servlet declaration and mapping in your web.xml file.

Compare that with your own app and you will see what the problem is.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic