You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Unnsse Khan <un...@gmail.com> on 2007/10/08 04:35:29 UTC
Trouble running tomcat on Ubuntu Linux & OS X Tiger
Hello there,
Having trouble running tomcat on Ubuntu Linux 7.0.4 and am
experiencing the exact same problem under OS X Tiger.
I installed tomcat under:
/home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25
Created the CATALINA_HOME system environmental variable inside
my .profile directory.
When I try to run TOMCAT, this is what I get:
$ sh $CATALINA_HOME/bin/startup.sh
Cannot find /home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25/
bin/catalina.sh
This file is needed to run this program
This file (catalina.sh) is obviously located in the right directory...
When I try to run this file, this is what I get:
$ sh /home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25/bin/
catalina.sh
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
My CLASSPATH is set as:
$ echo $CLASSPATH
.:/usr/lib/jvm/java-6-sun-1.6.0.00/lib/tools.jar:/usr/lib/jvm/
java-6-sun-1.6.0.00/jre/lib/rt.jar:/home/untz/DevTools/Java/tomcat/
apache-tomcat-5.5.25/common/lib/servlet-api.jar:/home/untz/DevTools/
Java/tomcat/apache-tomcat-5.5.25/common/lib/jsp-api.jar
What am I possibly doing wrong?
Happy programming,
Unnsse
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Unnsse Khan [mailto:untzkhan@gmail.com]
> Subject: Trouble running tomcat on Ubuntu Linux & OS X Tiger
>
> When I try to run TOMCAT, this is what I get:
> $ sh $CATALINA_HOME/bin/startup.sh
Try making $CATALINA_HOME/bin your current directory before running the
startup script.
> $ echo $CLASSPATH
> .:/usr/lib/jvm/java-6-sun-1.6.0.00/lib/tools.jar:/usr/lib/jvm/
> java-6-sun-1.6.0.00/jre/lib/rt.jar:/home/untz/DevTools/Java/tomcat/
> apache-tomcat-5.5.25/common/lib/servlet-api.jar:/home/untz/DevTools/
> Java/tomcat/apache-tomcat-5.5.25/common/lib/jsp-api.jar
Don't ever, ever, ever put anything in CLASSPATH in order to run Tomcat.
The above didn't cause your current problem, but it's an accident
waiting to happen.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by Unnsse Khan <un...@gmail.com>.
Hi Mark,
I just tried that and it worked!
Then, I tried it by issuing:
sh $CATALINA_HOME/bin/startup.sh
and it worked again!
I don't know what was wrong with it (I did reboot my computer, but
don't know how much that helps)...
Well, it wasn't working before, so I don't know what fixed it, but I
am happy that's fixed, nonetheless!
Happy coding,
Unnsse
On Oct 8, 2007, at 8:41 PM, Mark Thomas wrote:
> Unnsse Khan wrote:
>> Chuck,
>>
>> It can't be a permissions problem, because I conducted a chmod +x
>> *.sh
>> inside $CATALINA_HOME/bin
>
> In case you missed Chuck's previous suggestion. Try a
> cd /DevTools/Java/Tomcat/apache-tomcat-5.5.25/bin
> first.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by Mark Thomas <ma...@apache.org>.
Unnsse Khan wrote:
> Chuck,
>
> It can't be a permissions problem, because I conducted a chmod +x *.sh
> inside $CATALINA_HOME/bin
In case you missed Chuck's previous suggestion. Try a
cd /DevTools/Java/Tomcat/apache-tomcat-5.5.25/bin
first.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by Unnsse Khan <un...@gmail.com>.
Chuck,
It can't be a permissions problem, because I conducted a chmod +x
*.sh inside $CATALINA_HOME/bin
Hence:
/DevTools/Java/Tomcat/apache-tomcat-5.5.25/bin untz$ ls -al *.sh
-rwxr-xr-x 1 untz untz 12044 Aug 24 17:34 catalina.sh
-rwxr-xr-x 1 untz untz 841 Aug 24 17:34 digest.sh
-rwxr-xr-x 1 untz untz 3059 Oct 8 16:08 setclasspath.sh
-rwxr-xr-x 1 untz untz 780 Aug 24 17:34 shutdown.sh
-rwxr-xr-x 1 untz untz 1173 Aug 24 17:34 startup.sh
-rwxr-xr-x 1 untz untz 2545 Aug 24 17:34 tool-wrapper.sh
-rwxr-xr-x 1 untz untz 784 Aug 24 17:34 version.sh
I am getting the BASEDIR problem in both OS X Tiger and Ubuntu 7.0.4...
When I googled, this problem, it seems as if a bunch of people were
experiencing this but there was no solutions?!
See:
http://www.google.com/search?q=The+BASEDIR+environment+variable+is+not
+defined+correctly&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-
US:official&client=firefox-a
Also, I even posted this on JavaRanch's Big Moose Saloon (if you want
a more detailed explanation):
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?
ubb=get_topic&f=56&t=005952&p=1
This seems like a very common problem...
As of now, I am "Tomcat-less" until this problem becomes fixed...
Has anyone experienced this same problem (from the link above, it
seems like a lot of people have)...
With thanks,
Unnsse
On Oct 8, 2007, at 6:24 AM, Caldarale, Charles R wrote:
>> From: Unnsse Khan [mailto:untzkhan@gmail.com]
>> Subject: Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
>>
>> It was the tar.gz package that is downloadable from:
>> http://tomcat.apache.org/download-55.cgi#5.5.25
>>
>> I am guessing that I only downloaded the Core distribution...
>> Is this the problem?
>
> No, that's fine - should be all you need. Still looking like a
> permissions problem.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-
> mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Unnsse Khan [mailto:untzkhan@gmail.com]
> Subject: Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
>
> It was the tar.gz package that is downloadable from:
> http://tomcat.apache.org/download-55.cgi#5.5.25
>
> I am guessing that I only downloaded the Core distribution...
> Is this the problem?
No, that's fine - should be all you need. Still looking like a
permissions problem.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by Unnsse Khan <un...@gmail.com>.
It was the tar.gz package that is downloadable from:
http://tomcat.apache.org/download-55.cgi#5.5.25
The following distributions on that page are:
* Core:
o zip (pgp, md5)
o tar.gz (pgp, md5)
o Windows Service Installer (pgp, md5)
* Deployer:
o zip (pgp, md5)
o tar.gz (pgp, md5)
* Embedded:
o zip (pgp, md5)
o tar.gz (pgp, md5)
* Administration Web Application:
o zip (pgp, md5)
o tar.gz (pgp, md5)
* JDK 1.4 Compatability Package:
o zip (pgp, md5)
o tar.gz (pgp, md5)
* Documentation (Already Included in Core Downloads):
o tar.gz (pgp, md5)
I am guessing that I only downloaded the Core distribution...
Is this the problem?
Kindest regards,
Unnsse
On Oct 7, 2007, at 9:30 PM, Caldarale, Charles R wrote:
>> From: Unnsse Khan [mailto:untzkhan@gmail.com]
>> Subject: Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
>>
>> The BASEDIR environment variable is not defined correctly
>> This environment variable is needed to run this program
>
> Looks like you may still have a permissions problem. The above
> message
> is displayed by setclasspath.sh only if it can't find itself in
> $BASEDIR/bin; the BASEDIR environment variable is set by catalina.sh,
> which is kicked off by the startup.sh script.
>
> Are you using a real Tomcat (downloaded from tomcat.apache.org), or
> some
> 3rd-party repacked junk? If the latter, throw it away and download
> and
> install a real one.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-
> mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Unnsse Khan [mailto:untzkhan@gmail.com]
> Subject: Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
>
> The BASEDIR environment variable is not defined correctly
> This environment variable is needed to run this program
Looks like you may still have a permissions problem. The above message
is displayed by setclasspath.sh only if it can't find itself in
$BASEDIR/bin; the BASEDIR environment variable is set by catalina.sh,
which is kicked off by the startup.sh script.
Are you using a real Tomcat (downloaded from tomcat.apache.org), or some
3rd-party repacked junk? If the latter, throw it away and download and
install a real one.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by Unnsse Khan <un...@gmail.com>.
Oliver & Chuck,
Thank you for the response(s)!
I already thought of this and conducted a
chmod +x catalina.sh
~/DevTools/Java/tomcat/apache-tomcat-5.5.25/bin untz$ ls -al catalina.sh
-rwxr-xr-x 1 untz untz 12044 Aug 24 17:34 catalina.sh
The only thing this does is when I run sh startup.sh (using
$CATALINA_HOME/bin as my current dir):
~/DevTools/Java/tomcat/apache-tomcat-5.5.25/bin untz$ sh startup.sh
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
Does anyone know what's going on??
-Unnsse
On Oct 7, 2007, at 8:10 PM, Oliver Yang wrote:
> I think you need to check the catalina.sh permission.
>
> On Sun, 2007-10-07 at 19:35 -0700, Unnsse Khan wrote:
>> Hello there,
>>
>> Having trouble running tomcat on Ubuntu Linux 7.0.4 and am
>> experiencing the exact same problem under OS X Tiger.
>>
>> I installed tomcat under:
>>
>> /home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25
>>
>> Created the CATALINA_HOME system environmental variable inside
>> my .profile directory.
>>
>> When I try to run TOMCAT, this is what I get:
>>
>> $ sh $CATALINA_HOME/bin/startup.sh
>> Cannot find /home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25/
>> bin/catalina.sh
>> This file is needed to run this program
>>
>> This file (catalina.sh) is obviously located in the right
>> directory...
>>
>> When I try to run this file, this is what I get:
>>
>> $ sh /home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25/bin/
>> catalina.sh
>> The BASEDIR environment variable is not defined correctly
>> This environment variable is needed to run this program
>>
>> My CLASSPATH is set as:
>>
>> $ echo $CLASSPATH
>>
>> .:/usr/lib/jvm/java-6-sun-1.6.0.00/lib/tools.jar:/usr/lib/jvm/
>> java-6-sun-1.6.0.00/jre/lib/rt.jar:/home/untz/DevTools/Java/tomcat/
>> apache-tomcat-5.5.25/common/lib/servlet-api.jar:/home/untz/DevTools/
>> Java/tomcat/apache-tomcat-5.5.25/common/lib/jsp-api.jar
>>
>> What am I possibly doing wrong?
>>
>> Happy programming,
>>
>> Unnsse
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Trouble running tomcat on Ubuntu Linux & OS X Tiger
Posted by Oliver Yang <ol...@lateralnz.com>.
I think you need to check the catalina.sh permission.
On Sun, 2007-10-07 at 19:35 -0700, Unnsse Khan wrote:
> Hello there,
>
> Having trouble running tomcat on Ubuntu Linux 7.0.4 and am
> experiencing the exact same problem under OS X Tiger.
>
> I installed tomcat under:
>
> /home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25
>
> Created the CATALINA_HOME system environmental variable inside
> my .profile directory.
>
> When I try to run TOMCAT, this is what I get:
>
> $ sh $CATALINA_HOME/bin/startup.sh
> Cannot find /home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25/
> bin/catalina.sh
> This file is needed to run this program
>
> This file (catalina.sh) is obviously located in the right directory...
>
> When I try to run this file, this is what I get:
>
> $ sh /home/untz/DevTools/Java/tomcat/apache-tomcat-5.5.25/bin/
> catalina.sh
> The BASEDIR environment variable is not defined correctly
> This environment variable is needed to run this program
>
> My CLASSPATH is set as:
>
> $ echo $CLASSPATH
>
> .:/usr/lib/jvm/java-6-sun-1.6.0.00/lib/tools.jar:/usr/lib/jvm/
> java-6-sun-1.6.0.00/jre/lib/rt.jar:/home/untz/DevTools/Java/tomcat/
> apache-tomcat-5.5.25/common/lib/servlet-api.jar:/home/untz/DevTools/
> Java/tomcat/apache-tomcat-5.5.25/common/lib/jsp-api.jar
>
> What am I possibly doing wrong?
>
> Happy programming,
>
> Unnsse
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org