Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1354
  • Last Modified:

tomcat 5 does not start

hi all,
tomcat 5 start but can't browse the samples on the browser
can any body help
[root@localhost ~]# service tomcat5 start
Starting tomcat5: lock file found but no process running for pid 6028, continuing
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:      
                                                           [  OK  ]
[root@localhost ~]#
0
hatem_from_mesr
Asked:
hatem_from_mesr
  • 7
  • 2
1 Solution
 
Gibu GeorgeChief Technology OfficerCommented:
You need to set the JAVA_HOME env variable
0
 
hatem_from_mesrAuthor Commented:
gibu_george,
thanks for reply
would you please give me the syntax
0
 
hatem_from_mesrAuthor Commented:
[root@pc-460 ~]# export JAVA_HOME ='/usr/share/java/'
-bash: export: `=/usr/share/java/': not a valid identifier
[root@pc-460 ~]#

0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
hatem_from_mesrAuthor Commented:
any help please
0
 
Gibu GeorgeChief Technology OfficerCommented:
also add export PATH=$PATH:$JAVA_HOME/bin

and try

java -version

and post the output you are getting
0
 
see4me2002Commented:
First you need to make sure you have the executeable rights for this what you do is, in the command prompt type

$ chmod 777 /usr/share/tomcat5

and then start the server.
0
 
hatem_from_mesrAuthor Commented:
gibu_george,

[root@pc-460 ~]# export JAVA_HOME="usr/share/java";
[root@pc-460 ~]# export PATH=$PATH:$JAVA_HOME/bin;
[root@pc-460 ~]# service tomcat5 stop
Stopping tomcat5: Found JAVA_HOME: /usr/lib/java
Please complete your /etc/tomcat5/tomcat5.conf so we won't have to look for it next time
Using CATALINA_BASE:   /usr
Using CATALINA_HOME:   /usr
Using CATALINA_TMPDIR: /usr/temp
Using JRE_HOME:      
/usr/bin/dtomcat5: line 332: /usr/lib/java/bin/java: No such file or directory
                                                           [  OK  ]
waiting for processes to exit
waiting for processes to exit
waiting for processes to exit
waiting for processes to exit
waiting for processes to exit
[root@pc-460 ~]# netstat -aptun
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name  
tcp        0      0 127.0.0.1:2208              0.0.0.0:*                   LISTEN      2502/hpiod          
tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LISTEN      5599/java          
tcp        0      0 0.0.0.0:11111               0.0.0.0:*                   LISTEN      3495/ricci          
tcp        0      0 0.0.0.0:8009                0.0.0.0:*                   LISTEN      5599/java          
tcp        0      0 0.0.0.0:782                 0.0.0.0:*                   LISTEN      2296/rpc.statd      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      2262/portmap        
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      5599/java          
tcp        0      0 0.0.0.0:16851               0.0.0.0:*                   LISTEN      3394/modclusterd    
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      2521/cupsd          
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2567/sendmail: acce
tcp        0      0 127.0.0.1:2207              0.0.0.0:*                   LISTEN      2509/python        
tcp        0      0 192.168.35.25:51606         74.125.43.83:80             ESTABLISHED 3975/firefox-bin    
tcp        1      0 192.168.35.25:52517         74.125.43.18:80             CLOSE_WAIT  3975/firefox-bin    
tcp        1      0 192.168.35.25:52516         74.125.43.18:80             CLOSE_WAIT  3975/firefox-bin    
tcp        1      0 192.168.35.25:59826         129.143.116.10:80           CLOSE_WAIT  3264/python        
tcp        1      0 192.168.35.25:32856         130.133.35.16:80            CLOSE_WAIT  3264/python        
tcp        1      0 192.168.35.25:56248         80.237.136.138:80           CLOSE_WAIT  3264/python        
tcp        0      0 :::22                       :::*                        LISTEN      2535/sshd          
udp        0      0 0.0.0.0:32768               0.0.0.0:*                               3276/avahi-daemon:  
udp        0      0 0.0.0.0:776                 0.0.0.0:*                               2296/rpc.statd      
udp        0      0 0.0.0.0:779                 0.0.0.0:*                               2296/rpc.statd      
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               2093/dhclient      
udp        0      0 0.0.0.0:5353                0.0.0.0:*                               3276/avahi-daemon:  
udp        0      0 0.0.0.0:111                 0.0.0.0:*                               2262/portmap        
udp        0      0 0.0.0.0:631                 0.0.0.0:*                               2521/cupsd          
udp        0      0 :::32769                    :::*                                    3276/avahi-daemon:  
udp        0      0 :::5353                     :::*                                    3276/avahi-daemon:  
[root@pc-460 ~]# kill 5599
[root@pc-460 ~]# service tomcat5 start
Starting tomcat5: lock file found but no process running for pid 5599, continuing
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:      
                                                           [  OK  ]
[root@pc-460 ~]#
0
 
hatem_from_mesrAuthor Commented:
gibu_george,
[root@pc-460 ~]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-52)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@pc-460 ~]#
0
 
hatem_from_mesrAuthor Commented:
see4me2002,

>>>$ chmod 777 /usr/share/tomcat5
I did what you told me but no good

any help is appreciated
0
 
hatem_from_mesrAuthor Commented:
hi all,
sorry for interruption I make it work without tomcat5d service and it worked fine just in a minute of adjusting variables thats it
I installed tomcat 6 from apache.org and stopped the service of tomcat5d for ever

best regards
hatem gamal
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 7
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now