Fedora Linux Support Community & Resources Center
  #1  
Old 11th April 2011, 10:50 PM
marouene Offline
Registered User
 
Join Date: Apr 2011
Posts: 5
windows_vistafirefox
Installing Tomcat6 on fedora 12

hi, nice to meet you

i used ssh to connect to my server
i've juste installed tomcat6 on my fedora server c12, i used the yum command

Code:
sudo yum install tomcat6-webapps tomcat6-admin-webapps
then i put
Code:
sudo service tomcat6 restart
But i can't access to my tomcat server when tapping http://@server:8080 on my browser...
i try
Code:
netsat -anp | grep :8080
the result is
Code:
tcp        0      0 :::8080                     :::*                        LISTEN      25549/java
also
Code:
chkconfig --list | grep tomcat
and the result is


Code:
tomcat5         0:off   1:off   2:on    3:on    4:on    5:on    6:off
tomcat6         0:off   1:off   2:off   3:off   4:off   5:off   6:off
i don't know how to configure it, i have to deploy my JSP/Servlet application in my server and i i'm not able to do it ><
thx to help me
Reply With Quote
  #2  
Old 11th April 2011, 11:08 PM
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 69
Posts: 22,234
linuxfirefox
Re: Installing Tomcat6 on fedora 12

Moved to EOL
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #3  
Old 12th April 2011, 03:06 PM
marouene Offline
Registered User
 
Join Date: Apr 2011
Posts: 5
linuxubuntufirefox
Re: Installing Tomcat6 on fedora 12

no help please ?
Reply With Quote
  #4  
Old 12th April 2011, 03:26 PM
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: Installing Tomcat6 on fedora 12

Try
Code:
chkconfig --del tomcat5
chkconfig --level 2345 tomcat6 on
as root
Reply With Quote
  #5  
Old 12th April 2011, 04:28 PM
marouene Offline
Registered User
 
Join Date: Apr 2011
Posts: 5
linuxubuntufirefox
Re: Installing Tomcat6 on fedora 12

i tested yum remove tomcat6 and tomcat5
and now when i did
sudo yum install tomcat6-webapps tomcat6-admin-webapps

and service tomcat6 start

i took this noti : tomcat6: no service
Reply With Quote
  #6  
Old 12th April 2011, 04:54 PM
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: Installing Tomcat6 on fedora 12

Well, those are examples and tools for Tomcat6, you have to install Tomcat6 first:
Code:
su -c "yum install tomcat6"
Then you have to prepare for running the service
Code:
su -c "chkconfig --level 2345 tomcat6 on"
then you have to setup JAVA_HOME in /usr/share/tomcat6/conf/tomcat6.conf, then you have to start up the service
Code:
su -c "service tomcat6 start"
then you have to deploy your WARs to /usr/share/tomcat6/webapps and, finally, you can point your browser to your deployed application(s)

Last edited by giulix; 12th April 2011 at 05:03 PM.
Reply With Quote
  #7  
Old 12th April 2011, 04:58 PM
marouene Offline
Registered User
 
Join Date: Apr 2011
Posts: 5
linuxubuntufirefox
Re: Installing Tomcat6 on fedora 12

boff i try to install tomcat 5 and i did what you tell me the result of
chkconfig --level 2345 tomcat5 on

is

tomcat5 0:arręt1:arręt2:arręt3:arręt4:arręt5:arręt6:arręt

---------- Post added at 03:56 PM ---------- Previous post was at 03:54 PM ----------

Quote:
Originally Posted by giulix View Post
Well, those are examples and tools for Tomcat6, you have to install Tomcat6 first:
Code:
su -c "yum install tomcat6"
I try it but when i start tomcat6 i took this msg ! tomcat6 : service not found...

This is why i try with tomcat5

---------- Post added at 03:58 PM ---------- Previous post was at 03:56 PM ----------

and this is the result of my catalina.out

Code:
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Apr 11, 2011 10:50:58 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Apr 11, 2011 10:50:58 PM org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
        at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298)
        at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
        at org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
        at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
... .... ...
Apr 12, 2011 4:38:43 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Apr 12, 2011 4:38:44 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Apr 12, 2011 4:38:44 PM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
        at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
        at org.apache.catalina.connector.Connector.stop(Connector.java:1138)
        at org.apache.catalina.core.StandardService.stop(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
        at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:645)
Apr 12, 2011 4:38:44 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Apr 12, 2011 4:38:44 PM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started
Apr 12, 2011 4:38:44 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Reply With Quote
  #8  
Old 12th April 2011, 05:07 PM
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: Installing Tomcat6 on fedora 12

Which version of tomcat are you willing to install, 5 or 6? I suggest that you uninstall whatever you've installed so far and start fresh with a new installation of your target tomcat version
Reply With Quote
  #9  
Old 13th April 2011, 11:48 AM
marouene Offline
Registered User
 
Join Date: Apr 2011
Posts: 5
linuxubuntufirefox
Re: Installing Tomcat6 on fedora 12

OK i will try to install tomcat5 now

then i will telle you the result, i hope that it will turn on
Reply With Quote
  #10  
Old 13th April 2011, 01:26 PM
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: Installing Tomcat6 on fedora 12

Ok, I hope that too. If you require assistance, please post all commands executed and all messages received

---------- Post added at 02:26 PM ---------- Previous post was at 01:53 PM ----------

Ok, a few problems I ran into when trying to install tomcat5 after installing (and subsequently removing) tomcat6 on F14 (and maybe the other way round, too): Starting up the service fails because during installation/removal the tomcat account is not updated according to the version of tomcat currently being installed, so it ends up pointing to the wrong home directory and leaves it disabled.
To fix this, one has to amend tomcat's home directory in /etc/passwd: Change
Code:
tomcat:x:91:91:Apache Tomcat:/usr/share/tomcat6:/sbin/nologin
to
Code:
tomcat:x:91:91:Apache Tomcat:/usr/share/tomcat5:/bin/bash
with your favorite text editor. I also had to change ownership to all tomcat directories
Code:
su -c "chown root:tomcat /var/log/tomcat5 /var/lib/tomcat5 /var/cache/tomcat5 /etc/tomcat5"
and change permissions to /var/log/tomcat5
Code:
su -c "chmod 775 /var/log/tomcat5"
I don't know if this is also a consequence of the double installation, much the same as I don't know if it's going to be a problem in F12 too (I don't have a F12 installation handy, atm). Just check this out in case you can't manage to start the service after installing tomcat5 in F12.

Last edited by giulix; 13th April 2011 at 02:02 PM.
Reply With Quote
Reply

Tags
fedora, installing, tomcat6

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat6 Problem Rafael Krejci Servers & Networking 1 10th May 2011 04:20 AM
f13 tomcat6 install blemidon Servers & Networking 3 23rd November 2010 03:47 PM
Tomcat6 on Fedora peliukasss Using Fedora 1 28th September 2010 10:58 AM
Tomcat6 Common Lib randell Using Fedora 1 12th August 2008 04:50 AM


Current GMT-time: 02:22 (Tuesday, 23-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Official JetBlue Terminal 5 - New York JFK International Airport Photos - Bauer's Brauhaus - Zelena Laguna, Istarska, Croatia