<---- template headericclude ----->
Installing Tomcat6 on fedora 12
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  2. #2
    Join Date
    Jul 2004
    Location
    Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
    Age
    78
    Posts
    24,890
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  3. #3
    Join Date
    Apr 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing Tomcat6 on fedora 12

    no help please ?

  4. #4
    Join Date
    Oct 2005
    Location
    GMT
    Posts
    3,242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Installing Tomcat6 on fedora 12

    Try
    Code:
    chkconfig --del tomcat5
    chkconfig --level 2345 tomcat6 on
    as root
    Asus K55VD, i5 3230M - Productivity/Programming (F28)
    Asus M32CD - i7-6700, Asus STRIX-GTX970-DC2OC-4GD, 1x8 GB Sk Hynix 2133 MHz DDR4 - Gaming (W10)

  5. #5
    Join Date
    Apr 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  6. #6
    Join Date
    Oct 2005
    Location
    GMT
    Posts
    3,242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.
    Asus K55VD, i5 3230M - Productivity/Programming (F28)
    Asus M32CD - i7-6700, Asus STRIX-GTX970-DC2OC-4GD, 1x8 GB Sk Hynix 2133 MHz DDR4 - Gaming (W10)

  7. #7
    Join Date
    Apr 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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
    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

  8. #8
    Join Date
    Oct 2005
    Location
    GMT
    Posts
    3,242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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
    Asus K55VD, i5 3230M - Productivity/Programming (F28)
    Asus M32CD - i7-6700, Asus STRIX-GTX970-DC2OC-4GD, 1x8 GB Sk Hynix 2133 MHz DDR4 - Gaming (W10)

  9. #9
    Join Date
    Apr 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  10. #10
    Join Date
    Oct 2005
    Location
    GMT
    Posts
    3,242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.
    Asus K55VD, i5 3230M - Productivity/Programming (F28)
    Asus M32CD - i7-6700, Asus STRIX-GTX970-DC2OC-4GD, 1x8 GB Sk Hynix 2133 MHz DDR4 - Gaming (W10)

Similar Threads

  1. Tomcat6 Problem
    By Rafael Krejci in forum Servers & Networking
    Replies: 1
    Last Post: 10th May 2011, 04:20 AM
  2. f13 tomcat6 install
    By blemidon in forum Servers & Networking
    Replies: 3
    Last Post: 23rd November 2010, 03:47 PM
  3. Tomcat6 on Fedora
    By peliukasss in forum Using Fedora
    Replies: 1
    Last Post: 28th September 2010, 10:58 AM
  4. Tomcat6 Common Lib
    By randell in forum Using Fedora
    Replies: 1
    Last Post: 12th August 2008, 04:50 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]