IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Installing Tomcat Server

2 posters

Go down

Installing Tomcat Server Empty Installing Tomcat Server

Post by BIT0112-Rokon Mon Feb 15, 2010 10:19 pm

Tomcat server installation:

Somehow I was getting trouble in installing tomcat server. It was quite difficult task for me. This tutorial explain you how to install tomcat 6.0 in your desktop. This is pretty simple but most of the java beginners find difficulties to get started with the web development as I was. Tomcat server is the mostly recommended web server for learning JSP and Servlet basics. We will switch better one like glass fish server. But as beginner tomcat is the best. 

Here I’ll mention you the easiest way of installing Tomcat server. So download the tomcat installer from here.



After downloading the file, click on the setup file and install it on your PC by selecting the desired location. I think following steps will help you to install the server: 

Installing Tomcat Server Snapsh10

Installing Tomcat Server Snapsh11

Installing Tomcat Server Snapsh12

Installing Tomcat Server Snapsh13

Installing Tomcat Server Snapsh14


Installing Tomcat Server Snapsh15

Installing Tomcat Server Snapsh16


cheers!!!


Last edited by bit0112-rokon on Tue Feb 16, 2010 2:41 am; edited 1 time in total
BIT0112-Rokon
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

http://blog.codexplo.org

Back to top Go down

Installing Tomcat Server Empty Re: Installing Tomcat Server

Post by BIT0122-Amit Tue Feb 16, 2010 1:58 am

Ah.. good tutorial.
And err.... you can download it from various sources from here
I have played with both the 32-bit windows Installer(search for 32-bit/64-bit Windows Service Installer) and the zipped version(named 32-bit Windows zip)
here are the basic differences:
the installer sets up everything for you, and as Rokon said above, it is very easy to use too!
but in case of the zipped file, at first you need to set up Environment variables, and then use it. And guess what? it doesn't offer any task bar menu.. or gui to control it.

Anyway, even after you install it, there is one little problem.
how?
Say, you want to use the tomcat manager. click on the Tomcat Manager Under Administrator menu. it wants username and password!!
where are you supposed to find that, hmm?

Well here is the deal. say, you have installed tomcat apache under C: drive.
if the installation directory is C:\apache-tomcat-6.0.24 , go there, search for folder named conf.
there is a file called tomcat-users.xml
[You should create a backup of this file in case you mess everything up]
open it, you will see something like
Code:



<tomcat-users>
<!--
  <role
rolename="tomcat"/>
  <role rolename="role1"/>
  <user
 username="tomcat" password="tomcat" roles="tomcat"/>
  <user
username="both" password="tomcat" roles="tomcat,role1"/>
 
<user username="role1" password="tomcat" roles="role1"/>
-->


</tomcat-users>







change it to:
Code:



<tomcat-users>
<!--
  <role
rolename="tomcat"/>
  <role rolename="role1"/>
  <user
 username="tomcat" password="tomcat" roles="tomcat"/>
  <user
username="both" password="tomcat" roles="tomcat,role1"/>
 
<user username="role1" password="tomcat" roles="role1"/>
-->
<role
 rolename="manager"/>
<user username="tomcat" password="s3cret"
 roles="manager"/>

</tomcat-users>










Now when you want to login as manager , simply use tomcat as username and s3cret as password.

And if you want to login as admin, use this code:
Code:

<tomcat-users>
<user name="whatevername" password="whateverpassword" roles="admin,manager" /><!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>

now simply use whatevername as name and whateverpassword as password to login as admin Smile
Hope that helps Smile
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum