LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-09-2004, 07:36 AM   #1
treotan
Member
 
Registered: Jun 2004
Posts: 126

Rep: Reputation: 15
Unhappy Tomcat 5.0.28 into Fedora Core 2


I just install J2SDK 1.4.2 and tomcat 5.0.28 into the Fedora Core 2; and modified the /etc/profile is like as following:

export JAVA_HOME=/usr/java/j2sdk1.4.2_06
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export CLASSPATH
export CATALINA_BASE=/usr/tomcat
export CATALINA_HOME=/usr/tomcat
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin

and reboot the machine; Finally try startup the tomcat "/usr/tomcat/bin/startup.sh. It prompted:
[root@localhost bin]# startup.sh
-bash: startup.sh: command not found

How do I fix it? I sure that the Java already installed, coz i check "echo $JAVA_HOME" it shown the path correctly! and type from console "javac" it shown parameter correctly.

Help,
 
Old 11-09-2004, 09:16 AM   #2
Musikolo
Member
 
Registered: Jul 2003
Distribution: Yoper 2.91 beta (kernel 2.6.15)
Posts: 114

Rep: Reputation: 15
I think you are trying to run a command which it's not in the system path. So try to run:

locate startup.sh

to find out where this file is. If you get several options, try to run the full-qualifed one. For this, copy the line with the path and file name and launch it. If you don't get the right output, you might need to update the file's database by running as root:

updatedb

Afterwards, repeat the first step again.

There should also be possible to restart the service by running (as root):

/sbin/service <name_of_service> start

You can find out the name of the service having a look at /etc/init.d/ directory

I don't know if my help will be useful, but it's the most I can do.

Good luck!
 
Old 11-09-2004, 09:37 AM   #3
treotan
Member
 
Registered: Jun 2004
Posts: 126

Original Poster
Rep: Reputation: 15
How to know the port 8080 was occupied by another service? coz I try ./catalina.sh run; it was show the port 8080 was used by another service. How do I know it?

what is the service name for tomcat?

Thks
 
Old 11-09-2004, 09:50 AM   #4
Musikolo
Member
 
Registered: Jul 2003
Distribution: Yoper 2.91 beta (kernel 2.6.15)
Posts: 114

Rep: Reputation: 15
Try the following command:

/bin/netstat -puta

or

/bin/netstat -putan

if you don't want address translation.

Although I'm not absolutely sure, I think the service name for tomcat is 'httpd'.

Good luck!

PD: Can anyone to confirm the last thing?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to run Tomcat 5.5.9 on Fedora core 4 tech_j Linux - Software 2 09-04-2005 09:17 AM
Install Tomcat into Fedora Core 2 treotan Fedora 4 11-18-2004 07:33 PM
Fedora Core 2 + Apache + Tomcat + JDBC paulecoyote Linux - Newbie 9 07-27-2004 06:58 PM
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 02:12 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM


All times are GMT -5. The time now is 09:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration