[SOLVED] CATALINA_HOME environment variable has not been defined.
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CATALINA_HOME environment variable has not been defined.
Scroll down to see the above error message:
Code:
[javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/SendMailArgs.java:266: package javax.mail does not exist
[javac] javax.mail.Authenticator auth = null;
[javac] ^
[javac] InternetAddress ccAddr[] = _convertRecipients(cc);
[javac] ^
[javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/SendMailArgs.java:287: cannot find symbol
[javac] symbol : class InternetAddress
[javac] location: class org.opengts.util.SendMailArgs
[javac] InternetAddress bccAddr[] = _convertRecipients(bcc);
[javac] ^
[javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/SendMailArgs.java:296: package Message does not exist
[javac] msg.setRecipients(Message.RecipientType.TO , toAddr);
[javac] ^
[javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/SendMailArgs.java:297: package Message does not exist
[javac] msg.setRecipients(Message.RecipientType.CC , ccAddr);
[javac] ^
[javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/SendMailArgs.java:298: package Message does not exist
[javac] msg.setRecipients(Message.RecipientType.BCC, bccAddr);
[javac] ^
[javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/SendMailArgs.java:302: cannot find symbol
[javac] symbol : class Multipart
[javac] location: class org.opengts.util.SendMailArgs
[javac] Multipart multipart = new MimeMultipart();
[javac] ^
[javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/SendMailArgs.java:302: cannot find symbol
[javac] symbol : class MimeMultipart
[javac] location: class org.opengts.util.SendMailArgs
[javac] Multipart multipart = new MimeMultipart();
[javac] ^
[javac] /usr/local/OpenGTS_2.4.5/src/org/opengts/util/SendMailArgs.java:304: cannot find symbol
[javac] symbol : class MimeBodyPart
[javac] location: class org.opengts.util.SendMailArgs
[javac] MimeBodyPart textBodyPart = new MimeBodyPart();
[javac] ^
/util/SendMailArgs.java:392: cannot find symbol
[javac] symbol : class InternetAddress
[javac] location: class org.opengts.util.SendMailArgs
[javac] return inetAddr.toArray(new InternetAddress[inetAddr.size()]);
[javac] ^
[javac] 39 errors
[javac] Compile failed; see the compiler error output for details.
[echo] Compiling dbtools ...
[javac] Compiling 24 source files to /usr/local/OpenGTS_2.4.5/build
[javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/dbtools/package-info.class
gtsutils.exceltools:
gtsutils.sigHandler:
gtsutils.optional:
gtsutils.jar:
[echo] Creating gtsutils.jar ...
[copy] Copying 14 files to /usr/local/OpenGTS_2.4.5/build
[jar] Building jar: /usr/local/OpenGTS_2.4.5/build/lib/gtsutils.jar
gtsutils:
CompileTime.java:
[echo] Creating CompileTime module ...
gtsdb:
[echo] Creating gtsdb.jar ...
[javac] Compiling 110 source files to /usr/local/OpenGTS_2.4.5/build
[javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/geocoder/tinygeocoder/package-info.class
.....
[javac] Creating empty /usr/local/OpenGTS_2.4.5/build/org/opengts/db/package-info.class
[copy] Copying 42 files to /usr/local/OpenGTS_2.4.5/build
[jar] Building jar: /usr/local/OpenGTS_2.4.5/build/lib/gtsdb.jar
[copy] Copying 1 file to /usr/local/OpenGTS_2.4.5/build/lib
optjars:
tomcat.home:
BUILD FAILED
/usr/local/OpenGTS_2.4.5/build.xml:111: CATALINA_HOME environment variable has not been defined.
(make sure CATALINA_HOME is defined and exported to the list of environment variables)
Code:
anisha@linux-trra:/usr/local/OpenGTS_2.4.5> $CATALINA_HOME
bash: /home/anisha/openGTS17Nov/apache-tomcat-7.0.32/bin: is a directory
anisha@linux-trra:/usr/local/OpenGTS_2.4.5> $JAVA_HOME
bash: /home/anisha/openGTS17Nov/jdk1.6.0_26/bin: is a directory
anisha@linux-trra:/usr/local/OpenGTS_2.4.5> $PATH
bash: /home/anisha/qtsdk-2010.05/qt/bin/:/home/anisha/qtsdk-2010.05/bin:/home/anisha/openGTS17Nov/javamail-1.4.5/mail-1.4.jar:/usr/lib64/libreoffice/share/extensions/gdocs_2.1.0_modified/external_jars/activation.jar:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:
/home/anisha/openGTS17Nov/jdk1.6.0_26/bin:/home/anisha/openGTS17Nov/apache-ant-1.8.4/:
/home/anisha/openGTS17Nov/apache-tomcat-7.0.32/bin:/usr/local/OpenGTS_2.4.5/::/home/anisha/openGTS17Nov/javamail-1.4.5/mail.jar:/home/anisha/openGTS17Nov/apache-tomcat-7.0.32/lib: No such file or directory
anisha@linux-trra:/usr/local/OpenGTS_2.4.5>
From the installation guide of openGTS (w.r.t Tomcat):
Quote:
2.4.a) Linux users installing the downloaded Apache Tomcat:
It is recommended that the manual Tomcat installation be installed in the "/usr/local/" directory ('root'
access will be required to install into this directory).
The CATALINA_HOME environment variable should then be set to the following:
$ export CATALINA_HOME=/usr/local/apache-tomcat-x.xx.xx
Where "/usr/local/apache-tomcat-x.xx.xx" matches the name of the Tomcat installation directory.
It is recommended to also create a "tomcat" symbolic link in the "/usr/local/" directory which points to the
Tomcat installation, as follows:
# cd /usr/local
# ln -s $CATALINA_HOME tomcat
Within the Tomcat installation 'bin' directory (ie. "$CATALINA_HOME/bin"), make sure the execute
permissions bit is set on all ".sh" files. If not set, the following command will set the execution bit:
$ cd $CATALINA_HOME/bin
$ chmod a+x *.sh
If the execute bit is not set on these files, Tomcat "startup.sh" and "shutdown.sh" commands may not be
able to execute.
openSUSE 11.4 64 bit
Last edited by Aquarius_Girl; 11-23-2012 at 12:53 AM.
The only thing which I have done differently is that I have not installed tomcat
in /usr/local/, instead in my home directory. Can that make a huge difference in this case?
Last edited by Aquarius_Girl; 11-23-2012 at 03:09 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.