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 |
Likely an extra "$" in a shell script, perhaps your .profile, .bash_profile or .bashrc.
Something like: Code:
$TOMCAT_HOME=/usr/local/tomcat/ Code:
TOMCAT_HOME=/usr/local/tomcat/ |
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 |
Somewhere in your machine, there is a script containing the bogus "export $CATALINA_HOME".
Tomcat seems to run anyway. |
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 0:off 1:off 2:off 3:off 4:off 5:off 6:off [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 |
All times are GMT -5. The time now is 10:16 AM. |