 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

21st March 2012, 11:33 AM
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 8

|
|
|
How to install tomcat6 and make it work on Fedora 16
Hii,
I installed tomcat6 on my fedora 16:
Code:
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
I tried to start it.
Code:
# tomcat6
Usage: /usr/sbin/tomcat6 {start|start-security|stop|version}
# tomcat6 start
# /usr/sbin/tomcat6: line 30: /logs/catalina.out: No such file or directory
I didn't find documentation about tomcat6 when googling...
|

21st March 2012, 11:37 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929

|
|
|
Re: How to install tomcat6 and make it work on Fedora 16
http://tomcat.apache.org/
http://www.google.com/search?q=tomcat6&as_rights=
I know nothing about tomcat6. Do the following 2 commands result in any different results?
PHP Code:
systemctl enable tomcat6.service
systemctl start tomcat6.service
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

21st March 2012, 11:50 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929

|
|
|
Re: How to install tomcat6 and make it work on Fedora 16
Yum will install. I wouln't assume that it will configure everything for you.
There sure are a ton of search results for "Fedora 16 tomcat6".
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

21st March 2012, 11:55 AM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: How to install tomcat6 and make it work on Fedora 16
Not using Tomcat either.
But i'd like to point out that there's a diffrence between a yum installation, and the the building of an application.
If you build the application, you have chances (but NOT granted) that some configuration is done along the way.
The page you linked, shows how to build tomcat and configure it.
It doesnt even mention yum, so i have no idea how you think yum should do anything else but install it.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

21st March 2012, 12:03 PM
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 8

|
|
|
Re: How to install tomcat6 and make it work on Fedora 16
okai I'm reading this.
http://caffiendfrog.blogspot.com/201...strations.html
if that works for me, i let you know.
thanks.
---------- Post added at 11:03 AM ---------- Previous post was at 11:02 AM ----------
Quote:
Originally Posted by sea
The page you linked, shows how to build tomcat and configure it.
It doesnt even mention yum, so i have no idea how you think yum should do anything else but install it.
|
I linked That page to let you know that the apache tomcat documentation doesn't mention the tomcat6 fedora package.
|

21st March 2012, 12:07 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: How to install tomcat6 and make it work on Fedora 16
Quote:
Originally Posted by elaich
I linked That page to let you know that the apache tomcat documentation doesn't mention the tomcat6 fedora package.
|
Right, as they provide the source code, they dont have to mention any packaging system at all.
A quick google for fedora tomcat6 brought up some aged article:
http://www.linuxquestions.org/questi...a-12-a-822574/
Not sure if there's anything applicable for you.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

21st March 2012, 01:13 PM
|
|
Registered User
|
|
Join Date: Jan 2012
Location: Manchester, UK
Posts: 33

|
|
|
Re: How to install tomcat6 and make it work on Fedora 16
I use Tomcat a lot.
If you want this for development I would recommend NOT installing the repository version (and that goes for any GNU/Linux distribution). The repository versions are in system directories and it's hard to control them as you would want during development, e.g. constant redeployment and trying to debug in an IDE. For production use they are fine.
I just download the binary tarball from Apache and unpack it in ~/Software/. The name doesn't matter. You can start it by running the startup.sh script in the ~/Software/apache-tomcat-xxx/bin directory. You can also set it up as a server in Eclipse or Netbeans, which is the way I work with it. And you can have multiple versions for testing.
Just make sure there are no port conflicts (it's 8080 by default). If you have the repository Tomcat running on 8080 for final testing, just change the port number on the development version to something like 8082.
~/Software/apache-tomcat-xxx/conf/server.xml
Code:
...
<Connector port="8080"
protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
...
|

21st March 2012, 05:39 PM
|
 |
Registered User
|
|
Join Date: Nov 2006
Location: Detroit
Posts: 4,616

|
|
|
Re: How to install tomcat6 and make it work on Fedora 16
Quote:
Originally Posted by sanhozay
If you want this for development I would recommend NOT installing the repository version (and that goes for any GNU/Linux distribution).
|
I completely agree with you. Like you I always install Tomcat from the binary tarball from the Apache Tomcat site. I just installed Tomcat 6.0.35 on a machine yesterday in that way and it was simple. My steps were:
- Unpack the apache-tomcat-6.0.35.tar.gz tarball in /usr/local, so that Tomcat is installed in /usr/local/apache-tomcat-6.0.35.
- I have Oracle JDK 1.7.0_03 installed in /usr/java, so I did this (as root):
Code:
cp /usr/local/tomcat/lib/*-api.jar /usr/java/jre/lib/ext
- Since I'm still used to the old SysV way of starting services (instead of systemd), I created an init script for Tomcat in /etc/init.d (called "tomcat") like this:
Code:
#!/bin/sh
CATALINA_HOME=/usr/local/tomcat
JAVA_HOME=/usr/java
export CATALINA_HOME JAVA_HOME
case $1 in
start)
if [ -x ${CATALINA_HOME}/bin/startup.sh ]; then
echo "Starting Tomcat..."
${CATALINA_HOME}/bin/startup.sh
fi
exit
;;
stop)
if [ -x ${CATALINA_HOME}/bin/shutdown.sh ]; then
echo "Stopping Tomcat..."
${CATALINA_HOME}/bin/shutdown.sh
fi
exit
;;
restart)
$0 stop; $0 start;
;;
"")
$0 start
exit
;;
*)
echo "tomcat [start|stop|restart]"
exit
;;
esac
- Start [and stop] Tomcat like this: /etc/init.d/tomcat start[stop]
But if you want to use systemd instead then do this:
Code:
chkconfig tomcat
systemctl enable tomcat.service
systemctl start tomcat.service
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
|

5th October 2012, 04:00 AM
|
|
Registered User
|
|
Join Date: Jan 2012
Location: Washington, DC
Posts: 157

|
|
|
Re: How to install tomcat6 and make it work on Fedora 16
hey Rupert, I did exactly all you did except that i put your script in /usr/sbin. works awesomely !!
thanks
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
f13 tomcat6 install
|
blemidon |
Servers & Networking |
3 |
23rd November 2010 02:47 PM |
|
Tomcat6 on Fedora
|
peliukasss |
Using Fedora |
1 |
28th September 2010 10:58 AM |
Current GMT-time: 10:34 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|