Results 1 to 8 of 8

Thread: tomcat6 installation on BT5 R3 Gnome 64bit: cannot access localhost:8080

Hybrid View

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default tomcat6 installation on BT5 R3 Gnome 64bit: cannot access localhost:8080

    ok this is about installing tomcat6

    It did work when I installed it first time (and then only). Since then I could not access localhost:8080 at all. Let me run through what I have done:

    My machine:
    Linux bt 3.2.6 #1 SMP Fri Feb 17 10:34:20 EST 2012 x86_64 GNU/Linux

    Installed tomcat6 with this command:
    Code:
    apt-get install tomcat6 tomcat6-admin tomcat6-examples tomcat6-docs
    Installation was ok.

    Then I started the service:
    Code:
    root@bt:~# /etc/init.d/tomcat6 start
     * Starting Tomcat servlet engine tomcat6                                                                       [ OK ]
    Look at netstat output:

    Code:
    root@bt:~# netstat -tunlp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp6       0      0 :::8080                 :::*                    LISTEN      6420/java
    nmap output of 127.0.0.1
    Code:
    root@bt:~# nmap -sS 127.0.0.1
    
    Starting Nmap 6.01 ( http://nmap.org ) at 2012-10-17 15:48 NZDT
    Nmap scan report for localhost (127.0.0.1)
    Host is up (0.0000050s latency).
    Not shown: 993 closed ports
    PORT     STATE SERVICE
    80/tcp   open  http
    139/tcp  open  netbios-ssn
    443/tcp  open  https
    445/tcp  open  microsoft-ds
    902/tcp  open  iss-realsecure
    3001/tcp open  nessus
    8080/tcp open  http-proxy
    
    Nmap done: 1 IP address (1 host up) scanned in 0.29 seconds
    root@bt:~#
    Now trying to access http://localhost:8080/ and it is timing out.

    Funny is that it worked once when I first installed tomcat6 for the very first time I could see "It Works" page with all the infos in it.
    Since then I cannot access it anymore.

    I have removed the tomcat6 and re-installed but I just cannot aeccess http://localhost:8080/
    I have checked my proxy setting and it's set to ignore hosts
    127.0.0.0/8

    I really do not what else I can possibly do.
    Please someone help.

    Kind regards

    I am a bit desperate at the moment: a bit more info:
    Code:
    root@bt:~# service tomcat6 status
     * Tomcat servlet engine is running with pid 1928
    root@bt:~# netstat -nlp | grep 8080
    tcp6       0      0 :::8080                 :::*                    LISTEN      1928/java       
    root@bt:~# ps -ef | grep tomcat
    tomcat6   1928     1  0 16:12 ?        00:00:03 /usr/lib/jvm/java-6-openjdk/bin/java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start
    root      6793  5661  0 16:57 pts/2    00:00:00 grep --color=auto tomcat
    Last edited by hannah; 10-16-2012 at 10:39 PM.

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Re: tomcat6 installation on BT5 R3 Gnome 64bit: cannot access localhost:8080

    just for the heck of it I have edited this file:

    root@bt:/etc/tomcat6# nano server.xml
    Code:
    <Connector port="8081" protocol="HTTP/1.1" 
                   connectionTimeout="20000" 
                   URIEncoding="UTF-8"
                   redirectPort="8443" />
    then:
    restart tomcat server:
    Code:
    root@bt:/etc/tomcat6# /etc/init.d/tomcat6 restart
     * Stopping Tomcat servlet engine tomcat6                                                                                   [ OK ] 
     * Starting Tomcat servlet engine tomcat6                                                                                   [ OK ]
    check the listening port

    Code:
    root@bt:/etc/tomcat6# netstat -tunlp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    
    tcp6       0      0 :::8081                 :::*                    LISTEN      11835/java
    which is correctly changed to 8081 but when I point to
    http://127.0.0.1:8081/

    nothing happens and it times out..
    Please someone help..

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Unhappy Re: tomcat6 installation on BT5 R3 Gnome 64bit: cannot access localhost:8080

    No success yet but further testing:

    Code:
    root@bt:~# /etc/init.d/tomcat6 restart
     * Stopping Tomcat servlet engine tomcat6                                                                                                        [ OK ] 
     * Starting Tomcat servlet engine tomcat6                                                                                                        [ OK ] 
    root@bt:~# netstat -tunpl
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp6       0      0 :::8080                 :::*                    LISTEN      31110/java
    Note the PID number..Then I am trying to find all the log files which are written by this process:

    Code:
    root@bt:~# lsof -p 31110 | grep log
    java    31110 tomcat6    1w   REG    8,3   317646 2113555 /var/log/tomcat6/catalina.out
    java    31110 tomcat6    2w   REG    8,3   317646 2113555 /var/log/tomcat6/catalina.out
    java    31110 tomcat6   13w   REG    8,3   305997 2113562 /var/log/tomcat6/catalina.2012-10-17.log
    java    31110 tomcat6   14w   REG    8,3      234 2113563 /var/log/tomcat6/localhost.2012-10-17.log
    then output from catalina.2012-10-17.log related to this start:


    Code:
    root@bt:~# nano /var/log/tomcat6/catalina.2012-10-17.log
    Oct 17, 2012 10:08:27 PM org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
    SEVERE: Exception processing Global JNDI Resources
    javax.naming.NamingException: Open quote is expected for attribute "{1}" associated with an  element type  "rolename".
            at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
            at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
            at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
            at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
            at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
            at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
            at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.l
    I am going nuts...

  4. #4
    Good friend of the forums zimmaro's Avatar
    Join Date
    Mar 2010
    Location
    milano
    Posts
    407

    Default Re: tomcat6 installation on BT5 R3 Gnome 64bit: cannot access localhost:8080

    hello hannah
    I hope you understand [I state that I understand little or nothing]
    if you can help:
    I had your same test on my BT5-r3 (kde64) [fresh-install-vm]
    access to "localhost: 8080" [home-page] I get more and even after several "" reboot ""
    no time-out!
    I've edit the file / etc/tomcat6/tomcat-users.xlm with "" my credentials "
    and it seems that access is ON [home-page] ( (the pid changed but the accessIPort is the same) )

    root@bt:~# /etc/init.d/tomcat6 start ######i make more restart####
    * Starting Tomcat servlet engine tomcat6 [ OK ]
    root@bt:~# firefox localhost:8080

    root@bt:~# service tomcat6 status
    * Tomcat servlet engine is running with pid 1215
    root@bt:~# netstat -tunlp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 127.0.0.1:7337 0.0.0.0:* LISTEN 1153/postgres.bin
    tcp6 0 0 :::8080 :::* LISTEN 1215/java
    tcp6 0 0 127.0.0.1:8005 :::* LISTEN 1215/java
    tcp6 0 0 ::1:7337 :::* LISTEN 1153/postgres.bin
    udp 0 0 0.0.0.0:68 0.0.0.0:* 824/dhclient3


    http://imageshack.us/f/338/47999195.png/
    http://imageshack.us/f/5/72289817.png/ ####192.168.1.11 is my bt in the same eth0-lan####

  5. #5
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Re: tomcat6 installation on BT5 R3 Gnome 64bit: cannot access localhost:8080

    Quote Originally Posted by zimmaro View Post
    hello hannah
    I hope you understand [I state that I understand little or nothing]

    Hi zimmaro..thanks mate but I am sorry I did not quite understand what you mean here..

    Anyway no love from tomcat as yet..

    I have now done a whole lot of work but I believe I now have broke it completely..let me explain step by step:

    I have decided to completely remove tomcat and re-install it and this is what I have done:

    Code:
    dpkg -l|grep tomcat
    then
    sudo dpkg -P tomcat6
    then
    apt-get purge tomcat6
    I still see a lot instances of tomcat6 by running:

    Code:
    oot@bt:~/scripts# dpkg -l|grep tomcat
    ii  libtomcat6-java                                   6.0.24-2ubuntu1.10                                Servlet and JSP engine -- core libraries
    ii  tomcat6-admin                                     6.0.24-2ubuntu1.10                                Servlet and JSP engine -- admin web applications
    ii  tomcat6-common                                    6.0.24-2ubuntu1.10                                Servlet and JSP engine -- common files
    ii  tomcat6-docs                                      6.0.24-2ubuntu1.10                                Servlet and JSP engine -- documentation
    ii  tomcat6-examples                                  6.0.24-2ubuntu1.10                                Servlet and JSP engine -- example web applications
    Then I manually remove this folder

    rm -R /etc/tomcat6

    I then see traces of tomcat6 here:

    Code:
    Then I see tarces of tomcat6 here:
    root@bt:/usr/share# ls -l | grep tomcat6
    drwxr-xr-x    4 root     root      4096 2012-10-18 10:20 tomcat6
    drwxr-xr-x    4 root     root      4096 2012-10-17 12:53 tomcat6-admin
    drwxr-xr-x    3 root     root      4096 2012-10-17 12:53 tomcat6-docs
    drwxr-xr-x    3 root     root      4096 2012-10-17 12:53 tomcat6-examples
    I remove those files manually as well.
    Then I fire up synaptic and surprise I see a lot of traces of tomcat6 ..see the pic..



    then I install tomcat6 from Synaptic



    tried to start the service throug init.d but now getting fail
    Anyway so I remove this Synaptic installation and install it with apt-get

    Code:
    apt-get install tomcat6 tomcat6-admin tomcat6-examples tomcat6-docs
    After installation tomcat6 service tried to start but getting error

    Code:
    After installation:
    Setting up tomcat6 (6.0.24-2ubuntu1.10) ...
     * Starting Tomcat servlet engine tomcat6                                                 [fail] 
    invoke-rc.d: initscript tomcat6, action "start" failed.
    
    Setting up tomcat6-admin (6.0.24-2ubuntu1.10) ...
    Setting up tomcat6-docs (6.0.24-2ubuntu1.10) ...
    Setting up tomcat6-examples (6.0.24-2ubuntu1.10) ...
    So I manually tried to start tomcat with start up script located here:

    Code:
    root@bt:/usr/share/tomcat6/bin# ./startup.sh
    
    Using CATALINA_BASE:   /usr/share/tomcat6
    Using CATALINA_HOME:   /usr/share/tomcat6
    Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
    Using JRE_HOME:        /usr
    Using CLASSPATH:       /usr/share/tomcat6/bin/bootstrap.jar
    touch: cannot touch `/usr/share/tomcat6/logs/catalina.out': No such file or directory
    /usr/share/tomcat6/bin/catalina.sh: line 332: /usr/share/tomcat6/logs/catalina.out: No such file or directory
    So I manually created the folder logs and file catalina.out

    Now I currently have this: /usr/share/tomcat6/logs/catalina.out

    Now running the start up script again and getting no error there:


    Code:
    root@bt:/usr/share/tomcat6/bin# ./startup.sh
    Using CATALINA_BASE:   /usr/share/tomcat6
    Using CATALINA_HOME:   /usr/share/tomcat6
    Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
    Using JRE_HOME:        /usr
    Using CLASSPATH:       /usr/share/tomcat6/bin/bootstrap.jar
    So I go back to init.d

    Code:
    root@bt:/etc/init.d# ./tomcat6 restart
     * Starting Tomcat servlet engine tomcat6                                                  [fail]
    YUP...very much so... [fail]

    Yes I just managed to lot of work and achieved nothing...

    Help plz...some one..

  6. #6
    Just burned their ISO
    Join Date
    Feb 2010
    Posts
    18

    Default Re: tomcat6 installation on BT5 R3 Gnome 64bit: cannot access localhost:8080

    try to do "https://localhost:8080". replace http with https.

  7. #7
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Re: tomcat6 installation on BT5 R3 Gnome 64bit: cannot access localhost:8080

    Not that I understand this error but please have a look..

    Code:
    root@bt:/usr/share/tomcat6/bin# ./version.sh 
    Using CATALINA_BASE:   /usr/share/tomcat6
    Using CATALINA_HOME:   /usr/share/tomcat6
    Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
    Using JRE_HOME:        /usr
    Using CLASSPATH:       /usr/share/tomcat6/bin/bootstrap.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/util/ServerInfo
    Caused by: java.lang.ClassNotFoundException: org.apache.catalina.util.ServerInfo
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    Could not find the main class: org.apache.catalina.util.ServerInfo. Program will exit.
    This might give some indication..

    Hope to get an answer

  8. #8
    Senior Member
    Join Date
    Feb 2012
    Location
    Cyberspace
    Posts
    174

    Default Manual tomcat7 installation on BT5 R3 Gnome 64bit: Works

    Ok.. obviously I have given up on tomcat6 so I again completely removed and am trying to install tomcat7 MANUALLY

    I have followed the instruction here:
    http://clean-clouds.com/2011/10/19/i...t-7-on-ubuntu/

    I have downloaded tomcat7 from here
    http://mirror.sdunix.com/apache/tomc...-7.0.32.tar.gz

    It works...and I am happy..


    I am sure if I have manually installed tomcat6 it would have worked...

    thanks

Similar Threads

  1. BT5 Gnome 64bit startx issues
    By Pyroflea in forum BackTrack 5 Beginners Section
    Replies: 11
    Last Post: 11-20-2012, 10:57 PM
  2. Firewalk 5 under BT 5 R2 Gnome 64Bit
    By Osirium in forum BackTrack 5 Beginners Section
    Replies: 0
    Last Post: 03-27-2012, 12:38 AM
  3. BT5 Gnome 64bit
    By Soultaker666 in forum BackTrack 5 Beginners Section
    Replies: 2
    Last Post: 07-01-2011, 02:42 PM
  4. BT5 Gnome 64Bit Startx Errors
    By rnr11 in forum BackTrack 5 General Topics
    Replies: 0
    Last Post: 06-01-2011, 06:43 PM
  5. 64bit and Gnome - any chance in BT4 ??
    By dogscahonas in forum OLD BT4 Feature Requests
    Replies: 5
    Last Post: 08-25-2009, 04:14 PM

Posting Permissions

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