Results 1 to 3 of 3

Thread: Apache Tomcat7 is not working on my Ubuntu Server 12.04

  1. #1
    Join Date
    Feb 2013
    Beans
    13

    Question Apache Tomcat7 is not working on my Ubuntu Server 12.04

    We have been creating servlets and animations on our Enterprise Java class and wanted to upload some of my projects on my home made server so that my classmates could see it online.

    I followed this guide - here - on how to install tomcat7 on Ubuntu but when I run the command:

    Code:
    $CATALINA_HOME/bin/startup.sh
    It doesn't seem to load the tomcat webpage.

    Output of the command:

    Code:
    root@coolai:~# $CATALINA_HOME/bin/startup.sh
    Using CATALINA_BASE:   /usr/share/tomcat7
    Using CATALINA_HOME:   /usr/share/tomcat7
    Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
    Using JRE_HOME:        /usr/lib/jvm/default-java
    Using CLASSPATH:       /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
    Is it on how I installed tomcat7? Or is the problem from the configuration of my JAVA?

    Edit:

    Here is the output of my catalina.out log file:

    Code:
    root@coolai:~# cd /var/local/tomcat/logs
    -bash: cd: /var/local/tomcat/logs: No such file or directory
    root@coolai:~# cd /var/lib/tomcat7
    root@coolai:/var/lib/tomcat7# tail -f /var/log/tomcat7/catalina.out
    10 31, 13 11:33:47 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1808 ms
    10 31, 13 11:56:47 PM org.apache.coyote.AbstractProtocol pause
    INFO: Pausing ProtocolHandler ["http-bio-8080"]
    10 31, 13 11:56:47 PM org.apache.catalina.core.StandardService stopInternal
    INFO: Stopping service Catalina
    10 31, 13 11:56:47 PM org.apache.coyote.AbstractProtocol stop
    INFO: Stopping ProtocolHandler ["http-bio-8080"]
    10 31, 13 11:56:47 PM org.apache.coyote.AbstractProtocol destroy
    INFO: Destroying ProtocolHandler ["http-bio-8080"]
    Last edited by Coolai; October 31st, 2013 at 06:12 PM. Reason: added log file of catalina.out

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Apache Tomcat7 is not working on my Ubuntu Server 12.04

    are you installing using apt-get or the gz file?

    Webapps should be placed in /var/lib/tomcat6/webapps/ (the .war files or the folder)

    Tomcat should restart/start (if installed via apt-get which is reccomended) by running
    Code:
    service tomcat7 restart
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3
    Join Date
    Feb 2013
    Beans
    13

    Re: Apache Tomcat7 is not working on my Ubuntu Server 12.04

    I installed tomcat7 using apt-get.

    Yeah, but when I try to open the mypublicip:8080 it doesn't show the tomcat page and just display an error.

    Maybe I should have installed using the gz?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •