Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-30 Thread Mark Eggers
- Original Message -

 From: Hassan Schroeder hassan.schroe...@gmail.com
 To: Tomcat Users List users@tomcat.apache.org
 Cc: 
 Sent: Thursday, September 29, 2011 1:34 PM
 Subject: Re: problem configuring tomcat7 in ubuntu 10.04
 
 On Thu, Sep 29, 2011 at 1:26 PM, Anisha Karki karki.ani...@gmail.com 
 wrote:
  I read that but its not clear on how to manage directories in ubuntu i.e
  Where should tomcat be placed ?
 
 Anywhere you want -- it's your server.
 
  and what is the command to run the tomcat server ?
 
 Excerpted quote from the documentation:
 the full distribution (ZIP file or tarball) includes a file called 
 RUNNING.txt
 which is about exactly that...
 
 FWIW,


This really depends on what you want to accomplish. From your original mail 
message, I'm guessing that you might want to learn about running Tomcat and 
writing Java web applications on Ubuntu.

If that's your goal, then I find the easiest way to do things (on Fedora Linux 
at any rate) is the following:

1. Grab the latest version (currently 7.0.21) from tomcat.apache.org

2. Untar it in a directory controlled by your user

I normally create a directory called Apache or Servers in my home directory, 
and then place all of my servers underneath that. I can then organize multiple 
versions, clusters, virtual hosts, etc. without making too much of a mess.

Now you can read RUNNING.txt in the directory where you unpacked the Tomcat 
distribution. However, to get you started . . . .

3. Set $JRE_HOME to point to your Java JRE installation

4. Switch to $CATALINA_HOME/bin and type ./startup.sh

$CATALINA_HOME is where you unpacked the distribution in step 2 above.

5. Open a browser to http://localhost:8080

You should see the Tomcat welcome page at this point.

Before you can implement new web applications, you'll probably find it easier 
to set up the management application. Read the documentation on your running 
Tomcat on how to do that. The URL for that would be:

http://localhost:8080/docs/manager-howto.html


The link is on the welcome page of your running Tomcat.

6. When you're done, stop Tomcat with $CATALINA_HOME/bin/shutdown.sh

In the above, I'm assuming you're using the command line to maneuver around 
Ubuntu. I suppose you can accomplish the same via the GUI, but I have no idea 
how the new Unity interface works.

Setting up Tomcat in a directory you control solves a lot of potential 
permissions problems. It's easier to edit $CATALINA_HOME/conf/tomcat-users.xml 
without having to sudo every time. It's also easier to start/stop Tomcat and 
integrate it with an IDE if the installation is in a directory you control.

You'll find out that Linux permissions are quite a bit different than Windows 
permissions. It's best not to go cluttering up your system with user files (or 
relaxing permissions in system directories) until you become more comfortable 
with the way Linux works.

Hopefully that will be enough to get you started. Next up, looking at version 
control (rcs for simple Tomcat configuration files, git or svn for projects), 
and an IDE (NetBeans or Eclipse) is probably in order.

After that, you can look at running a different copy of Tomcat as a service, 
and integrating it with Apache HTTPD.

. . . . just my two cents.
/mde/

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-30 Thread Anisha Karki
Thanks Mark. I had previously installed tomcat6. I unistalled it using
command: sudo apt-get remove --purge tomcat6. But still when i browse:
http://localhost:8080/ it displays tomcat 6 welcome page. I installed tomcat
7 as you explained but tomcat6 welcome page displays. Why is it so ?

Regards,
Anisha

On Fri, Sep 30, 2011 at 1:02 PM, Mark Eggers its_toas...@yahoo.com wrote:

 - Original Message -

  From: Hassan Schroeder hassan.schroe...@gmail.com
  To: Tomcat Users List users@tomcat.apache.org
  Cc:
  Sent: Thursday, September 29, 2011 1:34 PM
  Subject: Re: problem configuring tomcat7 in ubuntu 10.04
 
  On Thu, Sep 29, 2011 at 1:26 PM, Anisha Karki karki.ani...@gmail.com
  wrote:
   I read that but its not clear on how to manage directories in ubuntu
 i.e
   Where should tomcat be placed ?
 
  Anywhere you want -- it's your server.
 
   and what is the command to run the tomcat server ?
 
  Excerpted quote from the documentation:
  the full distribution (ZIP file or tarball) includes a file called
  RUNNING.txt
  which is about exactly that...
 
  FWIW,


 This really depends on what you want to accomplish. From your original mail
 message, I'm guessing that you might want to learn about running Tomcat and
 writing Java web applications on Ubuntu.

 If that's your goal, then I find the easiest way to do things (on Fedora
 Linux at any rate) is the following:

 1. Grab the latest version (currently 7.0.21) from tomcat.apache.org

 2. Untar it in a directory controlled by your user

 I normally create a directory called Apache or Servers in my home
 directory, and then place all of my servers underneath that. I can then
 organize multiple versions, clusters, virtual hosts, etc. without making too
 much of a mess.

 Now you can read RUNNING.txt in the directory where you unpacked the Tomcat
 distribution. However, to get you started . . . .

 3. Set $JRE_HOME to point to your Java JRE installation

 4. Switch to $CATALINA_HOME/bin and type ./startup.sh

 $CATALINA_HOME is where you unpacked the distribution in step 2 above.

 5. Open a browser to http://localhost:8080

 You should see the Tomcat welcome page at this point.

 Before you can implement new web applications, you'll probably find it
 easier to set up the management application. Read the documentation on your
 running Tomcat on how to do that. The URL for that would be:

 http://localhost:8080/docs/manager-howto.html


 The link is on the welcome page of your running Tomcat.

 6. When you're done, stop Tomcat with $CATALINA_HOME/bin/shutdown.sh

 In the above, I'm assuming you're using the command line to maneuver around
 Ubuntu. I suppose you can accomplish the same via the GUI, but I have no
 idea how the new Unity interface works.

 Setting up Tomcat in a directory you control solves a lot of potential
 permissions problems. It's easier to edit
 $CATALINA_HOME/conf/tomcat-users.xml without having to sudo every time. It's
 also easier to start/stop Tomcat and integrate it with an IDE if the
 installation is in a directory you control.

 You'll find out that Linux permissions are quite a bit different than
 Windows permissions. It's best not to go cluttering up your system with user
 files (or relaxing permissions in system directories) until you become more
 comfortable with the way Linux works.

 Hopefully that will be enough to get you started. Next up, looking at
 version control (rcs for simple Tomcat configuration files, git or svn for
 projects), and an IDE (NetBeans or Eclipse) is probably in order.

 After that, you can look at running a different copy of Tomcat as a
 service, and integrating it with Apache HTTPD.

 . . . . just my two cents.
 /mde/

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-30 Thread Mark Eggers
- Original Message -

 From: Anisha Karki karki.ani...@gmail.com
 To: Tomcat Users List users@tomcat.apache.org; Mark Eggers 
 its_toas...@yahoo.com
 Cc: 
 Sent: Friday, September 30, 2011 12:04 PM
 Subject: Re: problem configuring tomcat7 in ubuntu 10.04
 
T hanks Mark. I had previously installed tomcat6. I unistalled it using
 command: sudo apt-get remove --purge tomcat6. But still when i browse:
 http://localhost:8080/ it displays tomcat 6 welcome page. I installed tomcat
 7 as you explained but tomcat6 welcome page displays. Why is it so ?
 
 Regards,
 Anisha
 
 On Fri, Sep 30, 2011 at 1:02 PM, Mark Eggers its_toas...@yahoo.com 
 wrote:
 
  - Original Message -
 
   From: Hassan Schroeder hassan.schroe...@gmail.com
   To: Tomcat Users List users@tomcat.apache.org
   Cc:
   Sent: Thursday, September 29, 2011 1:34 PM
   Subject: Re: problem configuring tomcat7 in ubuntu 10.04
  
   On Thu, Sep 29, 2011 at 1:26 PM, Anisha Karki 
 karki.ani...@gmail.com
   wrote:
    I read that but its not clear on how to manage directories in 
 ubuntu
  i.e
    Where should tomcat be placed ?
  
   Anywhere you want -- it's your server.
  
    and what is the command to run the tomcat server ?
  
   Excerpted quote from the documentation:
   the full distribution (ZIP file or tarball) includes a file 
 called
   RUNNING.txt
   which is about exactly that...
  
   FWIW,
 
 
  This really depends on what you want to accomplish. From your original mail
  message, I'm guessing that you might want to learn about running Tomcat 
 and
  writing Java web applications on Ubuntu.
 
  If that's your goal, then I find the easiest way to do things (on 
 Fedora
  Linux at any rate) is the following:
 
  1. Grab the latest version (currently 7.0.21) from tomcat.apache.org
 
  2. Untar it in a directory controlled by your user
 
  I normally create a directory called Apache or Servers in my home
  directory, and then place all of my servers underneath that. I can then
  organize multiple versions, clusters, virtual hosts, etc. without making 
 too
  much of a mess.
 
  Now you can read RUNNING.txt in the directory where you unpacked the Tomcat
  distribution. However, to get you started . . . .
 
  3. Set $JRE_HOME to point to your Java JRE installation
 
  4. Switch to $CATALINA_HOME/bin and type ./startup.sh
 
  $CATALINA_HOME is where you unpacked the distribution in step 2 above.
 
  5. Open a browser to http://localhost:8080
 
  You should see the Tomcat welcome page at this point.
 
  Before you can implement new web applications, you'll probably find it
  easier to set up the management application. Read the documentation on your
  running Tomcat on how to do that. The URL for that would be:
 
  http://localhost:8080/docs/manager-howto.html
 
 
  The link is on the welcome page of your running Tomcat.
 
  6. When you're done, stop Tomcat with $CATALINA_HOME/bin/shutdown.sh
 
  In the above, I'm assuming you're using the command line to 
 maneuver around
  Ubuntu. I suppose you can accomplish the same via the GUI, but I have no
  idea how the new Unity interface works.
 
  Setting up Tomcat in a directory you control solves a lot of potential
  permissions problems. It's easier to edit
  $CATALINA_HOME/conf/tomcat-users.xml without having to sudo every time. 
 It's
  also easier to start/stop Tomcat and integrate it with an IDE if the
  installation is in a directory you control.
 
  You'll find out that Linux permissions are quite a bit different than
  Windows permissions. It's best not to go cluttering up your system with 
 user
  files (or relaxing permissions in system directories) until you become more
  comfortable with the way Linux works.
 
  Hopefully that will be enough to get you started. Next up, looking at
  version control (rcs for simple Tomcat configuration files, git or svn for
  projects), and an IDE (NetBeans or Eclipse) is probably in order.
 
  After that, you can look at running a different copy of Tomcat as a
  service, and integrating it with Apache HTTPD.
 
  . . . . just my two cents.
  /mde/


I'm not an Ubuntu person, although I think there are people on the list who are.

Did you follow this page?

https://help.ubuntu.com/10.04/serverguide/C/tomcat.html


If so, did you set up a private instance to run when you log on?

https://help.ubuntu.com/community/AddingProgramToSessionStartup


Did you stop and disable the service before uninstalling?

Again, I'm not an Ubuntu person so I'm probably not the person to ask.

/mde/

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Anisha Karki
Hi,

I am new to both tomcat 7 and ubuntu. How can i configure tomcat server in
ubuntu 10.04 ?  I am novice to ubuntu and tomcat so It would be nice if
anyone could explain in detail.
(I tried but could not configure.)

Regards,
Anisha Karki


Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Piotr Pawlowski
Please explain exactly what would you like to achieve.
To install Tomcat you need to download it from tomcat.apache.org , untar 
archive and start it by running $tomcat_path/bin/catalina.sh start .

Best Regards
--
Piotr Pawlowski
GOYELLO System Administrator


Od: Anisha Karki [karki.ani...@gmail.com]
Wysłano: 29 września 2011 21:02
Do: users@tomcat.apache.org
Temat: problem configuring tomcat7 in ubuntu 10.04

Hi,

I am new to both tomcat 7 and ubuntu. How can i configure tomcat server in
ubuntu 10.04 ?  I am novice to ubuntu and tomcat so It would be nice if
anyone could explain in detail.
(I tried but could not configure.)

Regards,
Anisha Karki


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Anisha Karki
Hi,

I downloaded tomcat 7.0.0 unzipped it and kept in /user/local/tomcat7/. Now
i dont know how to proceed further in ubuntu. In windows i started tomcat by
running the executable files. But in ubuntu i am stuck. Is there any
documentation or step by step explanation on how to configure and make
tomcat work (in ubuntu) ?

Regards,
Anisha Karki

2011/9/29 Piotr Pawlowski piotr.pawlow...@goyello.com

 Please explain exactly what would you like to achieve.
 To install Tomcat you need to download it from tomcat.apache.org , untar
 archive and start it by running $tomcat_path/bin/catalina.sh start .

 Best Regards
 --
 Piotr Pawlowski
 GOYELLO System Administrator

 
 Od: Anisha Karki [karki.ani...@gmail.com]
 Wysłano: 29 września 2011 21:02
 Do: users@tomcat.apache.org
 Temat: problem configuring tomcat7 in ubuntu 10.04

 Hi,

 I am new to both tomcat 7 and ubuntu. How can i configure tomcat server in
 ubuntu 10.04 ?  I am novice to ubuntu and tomcat so It would be nice if
 anyone could explain in detail.
 (I tried but could not configure.)

 Regards,
 Anisha Karki


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Caldarale, Charles R
 From: Anisha Karki [mailto:karki.ani...@gmail.com] 
 Subject: Re: problem configuring tomcat7 in ubuntu 10.04

 I downloaded tomcat 7.0.0

That would be a serious error; the current version is 7.0.21.  7.0.0 never got 
beyond beta.

 Is there any documentation or step by step explanation on how to 
 configure and make tomcat work (in ubuntu) ?

You don't need to build Tomcat - it's pure Java.  Have you bothered to read any 
of the docs?

http://tomcat.apache.org/tomcat-7.0-doc/index.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Anisha Karki
I read that but its not clear on how to manage directories in ubuntu i.e
Where should tomcat be placed ? and what is the command to run the tomcat
server ?

On Thu, Sep 29, 2011 at 2:46 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Anisha Karki [mailto:karki.ani...@gmail.com]
  Subject: Re: problem configuring tomcat7 in ubuntu 10.04

  I downloaded tomcat 7.0.0

 That would be a serious error; the current version is 7.0.21.  7.0.0 never
 got beyond beta.

  Is there any documentation or step by step explanation on how to
  configure and make tomcat work (in ubuntu) ?

 You don't need to build Tomcat - it's pure Java.  Have you bothered to read
 any of the docs?

 http://tomcat.apache.org/tomcat-7.0-doc/index.html

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Hassan Schroeder
On Thu, Sep 29, 2011 at 1:26 PM, Anisha Karki karki.ani...@gmail.com wrote:
 I read that but its not clear on how to manage directories in ubuntu i.e
 Where should tomcat be placed ?

Anywhere you want -- it's your server.

 and what is the command to run the tomcat server ?

Excerpted quote from the documentation:
the full distribution (ZIP file or tarball) includes a file called RUNNING.txt
which is about exactly that...

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org