LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2007, 04:10 AM   #1
karthi26
Member
 
Registered: Mar 2007
Posts: 62

Rep: Reputation: 15
can anyone solve the error i got in tomcat server configuration


Hello guys,
when i am trying to login in to the remote server.
i got this error message. can anyone help me where i have to make the changes to solve this error.

i have installed tomcat two days back and its not working. but today when i logged in this is the error message i got. please help me to solve this problem.

-bash: export: `/usr/local/tomcat/': not a valid identifier

Regards,
karthi26

Last edited by karthi26; 07-18-2007 at 04:22 AM.
 
Old 07-18-2007, 04:33 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Likely an extra "$" in a shell script, perhaps your .profile, .bash_profile or .bashrc.

Something like:
Code:
$TOMCAT_HOME=/usr/local/tomcat/
vs
Code:
TOMCAT_HOME=/usr/local/tomcat/
 
Old 07-18-2007, 04:53 AM   #3
karthi26
Member
 
Registered: Mar 2007
Posts: 62

Original Poster
Rep: Reputation: 15
But this is how i have spcified in my /etc/profile.

JAVA_HOME=/usr/java/jdk1.5.0_04
JAVA_PATH=/usr/java/jdk1.5.0_04/bin
CATALINA_HOME=/usr/local/tomcat/
export CATALINA_HOME


I couln't able to identify wheather the tomcat server is running properly.
This is the output when i check the Tomcat


jakarta-tomcat-5.0.28]# ps -aux | grep tomcat
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 13226 0.0 0.0 3880 692 pts/0 S+ 02:53 0:00 grep tomcat
root 30546 0.0 4.2 742188 88388 ? Sl Jul16 0:19 /usr/java/jdk1.5.0_04/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.28/common/endorsed -classpath /usr/java/jdk1.5.0_04/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.28/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.28/bin/commons-logging-api.jar -Dcatalina.base=/usr/local/jakarta-tomcat-5.0.28 -Dcatalina.home=/usr/local/jakarta-tomcat-5.0.28 -Djava.io.tmpdir=/tmp org.apache.catalina.startup.Bootstrap start

Regards,
karthi26

Last edited by karthi26; 07-18-2007 at 04:56 AM.
 
Old 07-18-2007, 05:16 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Somewhere in your machine, there is a script containing the bogus "export $CATALINA_HOME".

Tomcat seems to run anyway.
 
Old 07-18-2007, 05:29 AM   #5
karthi26
Member
 
Registered: Mar 2007
Posts: 62

Original Poster
Rep: Reputation: 15
As you said that there is another tomcat i found in the /usr/share/directory.

[root@69-64-78-130 tomcat5]# pwd
/usr/share/tomcat5
[root@69-64-78-130 tomcat5]# ls bin/
bootstrap.jar commons-daemon.jar jkstatus-tasks.xml [mx4j][mx4j].jar reloctomcat5
catalina-tasks.xml commons-logging-api.jar jmxaccessor-tasks.xml relink setclasspath.sh.p10
[root@69-64-78-130 tomcat5]#


but the the service is stopped.

[root@69-64-78-130 tomcat5]# chkconfig --list tomcat5
tomcat5 0ff 1ff 2ff 3ff 4ff 5ff 6ff
[root@69-64-78-130 tomcat5]#

Anyway that i can stop that without deleting. or plz say any idea to start my server.

Thanks
karthi26
 
  


Reply



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
Identify this RAM... phantom_cyph General 4 06-01-2007 08:52 PM
help to identify a logo devbro General 2 03-22-2007 09:29 AM
can anyone identify if these services are necessary? kushalkoolwal Debian 6 05-09-2006 03:23 AM
Identify this insect. Ikebo General 17 07-16-2004 12:45 AM
Webmin error - unable to identify operating system LittleAngel Linux - Software 2 05-15-2004 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration