• 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

easiest way to install/configure tomcat

 
greenhorn
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
easiest way to install/configure tomcat:

1. download tomcat installation and unzip it.
2. set two environment variable: JAVA_HOME and CATELINA_HOME pointing to jdk and tomcat directory respectively.

that should work.
 
pooja jain
greenhorn
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why do we need all these: http://www.coreservlets.com/Apache-Tomcat-Tutorial/

like:


Change the port to 80. Edit install_dir/conf/server.xml and change the port attribute of the Connector element from 8080 to 80.
Turn on servlet reloading. Edit install_dir/conf/context.xml and change <Context> to <Context reloadable="true" privileged="true">.
Enable the invoker servlet. Go to install_dir/conf/web.xml and uncomment the servlet and servlet-mapping elements that map the invoker servlet to /servlet/*.
Turn on directory listings. Go to install_dir/conf/web.xml, find the init-param entry for listings, and change the value from false to true.


etc.

thanks.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Pooja,

Do you have a question? Please ask it clearly, then we can answer it for you.
 
pooja jain
greenhorn
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesper Young:
Hello Pooja,

Do you have a question? Please ask it clearly, then we can answer it for you.



why do we need all these? (steps mentioned in above post and in link mentioned in above post)

thanks.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note what that page says in the first paragraph:

Most people will just want to download the preconfigured Tomcat version, set JAVA_HOME and CLASSPATH, and they are done. But following is a summary of the steps for people who want to change the configuration or do it themselves.


Those extra steps make changes to the standard configuration, and are entirely optional.
 
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

Originally posted by pooja jain:
why do we need all these?



You don't need them but I'm sure if you looked at each of the configuration changes you'll be able to imagine how they might be useful to someone in a development environment.

With the 'reloadable' attribute set to true, Tomcat will watch your class files and automatically reload the application if one of them is updated (preventing you from having to restart the app every time you compile something).

Turning on directory listings makes it easy for you to see what files are in a particular directory (as long as a welcome-file is not configured).

The InvokerServlet allows a developer (in a test or development environment) to run servlets without having to declare and map them in the deployment descriptor (read the link to find out why using this technique can cause a lot of features to fail. Many of us feel there is never a good reason to use the InokerServlet).
 
reply
    Bookmark Topic Watch Topic
  • New Topic