Why do we need to declare CATALINA_HOME environment variable in Tomacat?

{color:#ff0000}*Why do we need to set CATALINA_HOME
environment variable while using TomCat and what happens if we do not
{color}
{color:#008000}If anybody has the solution .. please do reply
{color}
Thanks &
Regards, Akshay_L

SoulTech2012 wrote:
it makes zero sense because if CATALINA_HOME is not set, then CATALINA_HOME/bin won't resolve at all (unless some form of magic is used)
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
# Only set CATALINA_HOME if not already set
[ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`rightBy "right", are you being sarcastic or are you saying that code is correct?
It's a pretty standard technique for setting default variables under *nix, no magic involved. And this particular example was taken from the Tomcat 5.5.25 startup script.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Why do we actuallya need the setting of environment variables?

    Hello guys,
    I read that, in order to connect to the database via SQL*Plus, we need to have the environment variables set. So, SQL*Plus is a command tool, which doesnt know over which path to connect to db, if the environment variables are not set?
    How about the needs of setting environment variables at point of view of MS-DOS? I know that over MS-DOS we can check if the environment variables are already set or not. Or we can actively set the environment variables.
    When should we actually set the environment variables? Before we run the GUI or after? I read, that if we set it before we run the GUI, then the setting will be taken over when it comes to that step by running GUI. I am curious, since this would be interesting to know, if we use other version than XE.
    Thanks..

    Oracle's flexibility ... many different versions working the same on many different versions of many different operating systems ... means that a single consistent installation and configuration methodology must work everywhere so as not to have the limitations of other competing products that work on only a single operating system or require that one learn a different syntax and methods for different versions.
    Be grateful Oracle is as it is. Your competence in one version and operating system translates into competence in others.

  • Setup JAVA_HOME n CATALINA_HOME environment variable

    Hi there
    im new in Java Servlet programming... im confused how to setup JAVA_HOME n CATALINA_HOME environment variable... if any1 of u know this plz help me to how to setup it... it will help me very much.
    thanks in advance
    112

    Once you have identified the JDK install path:
    1. Right click on the My Computer icon on your desktop and select properties
    2. Click the Advanced Tab
    3. Click the Environment Variables button
    4. Click New
    5. Enter the variable name as JAVA_HOME
    6. Enter the variable value as the install path for the Java Development Kit.
    7. OK
    Next you have set an environment variable CATALINA_HOME that contains the pathname to the directory in which Tomcat 5 has been installed, the same way you set the JAVA_HOME ev.

  • Why do I need to declare "defaultButton" ? (In a component form part of view stack)

    After doing some research and some help from FlexGuy in another thread, I realize that I need to make sure I have custom components initialized before accessing parts of the component.  Just recently I was thrown for a long time when I tried to first click on a form field that was part of a component in my view stack, I'd get:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.managers::FocusManager/focusInHandler()[C:\autobuild\galaga\frameworks\projects\framew ork\src\mx\managers\FocusManager.as:601]
    With the debugger it's occuring in the focusInHandler method of FocusManager.as: (apparently _defaultButton is null.)
    // restore the default button to be the original one
                    if (defButton && defButton != _defaultButton)
                        defButton.emphasized = false;
                        defButton = _defaultButton;
                       _defaultButton.emphasized = true;
    This prompted me, on a whim, to delcare a defaultButton:
    <mx:Form id="empForm" defaultButton="{submitButton}">
    which refers to my submit button:
    <mx:Button id="submitButton" click="submitEmployee()" label="{submitLabel}"/>
    My question, is why is this necessary? In some examples I don't see this declared at all, but I seem to need it? (I'm calling creationPolicy="all" to make sure my components are initialized but I still seem to have to this defaultButton declared?)

    It's a way of proving that you are able to purchase content from that country's store i.e. that you have a valid billing address in it
    From Why can’t I select None when I edit my Apple ID payment information? - Apple Support :
    If you changed your country or region
    When you change the country or region of an existing Apple ID, you must provide a payment method and update your billing options. If you want to remove your payment method after you change the country or region, you can change your payment information to None.

  • Need some insight on environment variables/.profile

    hello,
    I'm a bit confused by how the various environment profiles are set in Terminal for Leopard. I am working with a developer who used his .profile to set a series of export commands and successfully set some path constants. But when I tried it on my very similarly configured system I can't seem to get anything in my .profile to run. I can run it explicitly by doing . ~/.profile .
    I tried the obvious, restarted terminal, etc and no good. I can add things to .bash_profile and they seem to work. I'm just confused about why this would be different.
    thanks!
    J

    jaeysin wrote:
    I tried the obvious, restarted terminal, etc and no good. I can add things to .bash_profile and they seem to work. I'm just confused about why this would be different.
    Just add a command to run .profile from your .bash_profile file
    Something like:
    if [ -f ~/.profile ]; then
    . ~/.profile
    fi
    Mihalis.
    Message was edited by: Mihalis Tsoukalos

  • Do I need to set  system env variables for weblogic and SOA server installation?

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

  • Dimension declaration. Why do we need it?

    Hey, Oracle data warehouse gurus.
    It should be an easy question for you.
    Why do we need to declare dimension on the top of the dimension table (CREATE DIMENTION dimension_name ...)?
    It seems to me that many functions such as rollup, cube and the like do not need this dimension metadata.
    I am using Crystal Holos OLAP server to do data mining and reporting and again this tool (at least version 7.5) does not use dimension metadata. I suppose that some OLAP servers do.
    Thanks in advance for your answer.
    Best Regards
    Vadim

    Hello  Rajsan Madhavarajan  
    Query as a Web Service (QaaWS) is a SAP Business Objects (BOBJ)  client-side tool that allows users to create and publish Web Services that can be made available over the Web.  Once these web services are created and published,  they can be consumed like any other standard Web Service in software applications including Xcelsius and Crystal Reports.   But first we have to understand what exactly is a Web Service.
    Web Service
    A Web Service is a software system that supports  interoperable interaction over a network from one computer or machine to another but is more commonly defined as a client and a server communicating data over the Web using the HTTP Protocol. Using Web Services along with Business Objects allows a live connection of data to be used in applications such as Xcelsius and Crystal Reports through a semantic layer called a Universe.
    Query as a Web Service (QaaWS)
    The two main components in QaaWS are the Client Tool and the Server.  The QaaWS Client Tool gives the end user an easy to use wizard that allows them to create Universe queries and publish them as Web Services.  Once the QaaWS is published, any user can securely access the data that the Web Service contains as long as they have access to that server. Have a look on  image below that shows the information flow to and from the server via the client.
    Advantages to QaaWS:
    Very easy to use and intuitive interface Familiar look and feel for people who have used Web Intelligence
    Leverages existing Business Objects Universes Shares metadata with Web Intelligence, Desktop Intelligence and Crystal Reports
    Maintains Business Objects Enterprise Security
    Allows live data feeds to be incorporated into Xcelsius Dashboards and Crystal Reports

  • Error in setting environment variable

    hi
    Please note JKit is where my jdk1.3 is stored(i.e instead of jdk1.3 folder its JKit folder)... i have gone thru the similar threads but with no success.
    SET
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;D:\Jkit\bin;D:\Jkit\lib;D:\Oracle\bin;"C:\PROGRAMFILES\ORACLE\JRE\1.1.7\BIN";D:\JKit\Jre\Bin;
    SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1;
    SET CLASSPATH=c:\JavaWebServer2.0\lib\servlet.jar;c:\JKit\lib;
    SET CATALINA_HOME=D:\tomcat\jakarta-tomcat-4.1.29;
    SET JAVA_HOME=D:\Jkit;
    The error i get after running autoexec.bat and then tomcat/bin/startup is as follows..
    The CATALINA_HOME environment variable is not defined
    This environment variable is needed to run this program
    please HELP!!.THANKS

    Hi
    Very many thanks for ur solution.. i actually hadset the environment variables spacce..but when i execute the autoexec.bat file i dont get any error(out of env space)..but when i run the startup.bat file i get from the command prompt, i get the foll error.
    This is my Autoexec.bat
    SET JAVA_HOME=D:\Jkit\bin
    SET CATALINA_HOME=D:\tomcat\jakarta-tomcat-4.1.29\bin
    SET PATH=D:\Jkit\bin;C:\WINDOWS;C:\WINDOWS\COMMAND;
    SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\AUTODE~1;
    THE FOLLOWING IS THE ERROR I GET WHEN I RUN STARTUP.BAT UNDER TOMCAT'S BIN UNDER THE COMMAND PROMPT
    D:\tomcat\jakarta-tomcat-4.1.29\bin>startup
    Syntax error
    Out of environment space
    Out of environment space
    Out of environment space
    Using CATALINA_BASE: D:\tomcat\jakarta-tomcat-4.1.29
    Using CATALINA_HOME: D:\tomcat\jakarta-tomcat-4.1.29
    Using CATALINA_TMPDIR: D:\tomcat\jakarta-tomcat-4.1.29\temp
    Using JAVA_HOME: D:\Jkit
    Out of environment space
    Out of environment space
    Invalid switch - -DJAVA.ENDORSED.DIRS=D:\TOMCAT\JAKARTA-TOMCAT-4.1.29\COMMON\ENDORSED
    I even set JAVA_HOME AND CATALINE_HOME to the \bin dir respectively..
    still i get the same error
    As given under the tomcat installation documentation (RUNNING.txt), i set the space for environment space under the Memory tab, for startup and shutdown.bat files, it creates a shortcut for running the resp .bat files, running startup.bat file i get,CATALINA_HOME VAR HAS NOT BEEN SET PROPERLY, THIS OCCURS FOR BOTH TOP LEVEL DIR SETTING AND /bin DIR SETTING of CATALINE_HOME IN autoexec.bat
    PLEASE HEL, I HAVE BEEN TRYING TO CONFIGURE IT FOR THE PAST DAYS BUT WITH NO SUCCESS, DONT KNOW WHERE I AM GOING WRONG..PLEASE HELP

  • Who can tell me the details about "JMSJVMOPTS" environment variable of JMSC API

              I have a question about JMS C API.
              When in windows service application, JMSContectCreate return JMS_JVM_ERROR error.
              But in desktop app, it does well.
              I think I may need set the JMSJVMOPTS environment variable.
              But how to set JMSJVMOPTS ?
              

    OK,
              The JMSJVMOPTS are extra options passed to the "java" executable itself
              along with
              "-Djava.class.path=${CLASSPATH}"
              Hence, the actual things you can set with this depend on which java compiler
              you are using. If you are using the Sun JVM for instance, here are some of
              the options you can set (from java -?)
              where options include:
              -client to select the "client" VM
              -server to select the "server" VM
              -hotspot is a synonym for the "client" VM [deprecated]
              The default VM is client.
              -cp -classpath <directories and zip/jar files separated by ;>
              set search path for application classes and resources
              -D<name>=<value>
              set a system property
              -verbose[:class|gc|jni]
              enable verbose output
              -version print product version and exit
              -showversion print product version and continue
              -? -help print this help message
              -X print help on non-standard options
              -ea[:<packagename>...|:<classname>]
              -enableassertions[:<packagename>...|:<classname>]
              enable assertions
              -da[:<packagename>...|:<classname>]
              -disableassertions[:<packagename>...|:<classname>]
              disable assertions
              -esa | -enablesystemassertions
              enable system assertions
              -dsa | -disablesystemassertions
              disable system assertions
              As far as what sort of things can cause a JMS_JVM_ERROR from
              JmsContextCreate the answer is that there are many, many reasons this might
              be happening. Please look for a file named ULOG.<mmddyy> (where mmddyy is
              month/day/year - for example ULOG.081403) somewhere on your system (I am not
              sure where this file would go being run from a W2K service). That "userlog"
              file should contain more information about why the failure occurred.
              Also, you can set JMSDEBUG=y in your environment which will print to stdout
              (again, not sure where stdout goes in a system service) stack traces and
              other debugging information into the ULOG file.
              Hope this helps...
              "Luke" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,John Wells,
              > thanks for your help.
              > But what I really don't know is what value I can set for JMSJVMOPTS.
              > There is not document about the detail of optional values for JMSJVMOPTS.
              > And what reasons can result a JMS_JVM_ERROR in JmsContextCreate() ?
              

  • Simple question about environment variables and setting the class path???

    ok I have been trying for a few months now ontrying to set the class path..
    I work with windows vista..
    on the environment variables user variables,
    I have the name of the variable as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    where javac is...
    on the system variables I have
    its name as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    why is this not reading javac

    The PATH environment variable should have as an entry the directory containing your javac executable. The CLASSPATH should have have entries which define your library directories and entries which are your jar file libraries. In the early days, probably the only CLATHPATH entry you will need will be a '.' to indicate the current directory.
    The Java tutorial covers ALL of this.

  • How to Specify the environment variable JCE_POLICY_ZIP and restart

    Hello All,
    I am installing the ABAP SAP NetWeaver 7.01 SR1 ABAP Trial Version.
    sapinst.exe installed successfully.
    I am installing the sapinstgui.exe but I got the following message:
    Program is starting... Please wait!
      Path: C:\Users\George\AppData\Local\Temp\sapinst_exe.6220.1246290325
    jre\bin\java.exe
    For the requested processing mode java policy
    files within the used SAP JVM are needed.
    Specify the environment variable JCE_POLICY_ZIP and restart.
    See also SAP note 1238121.
    Exit status of child: 10
    JRE is installed in C:\Program Files\Java\j2re1.4.2_19
    How do I specify the environment variable JCE_POLICY_ZIP?
    Thanks
    George
    Edited by: George King on Jun 29, 2009 9:01 PM

    Hi everyone,
    I had the same problem and found the solution !
    I was trying to setup the GUI thanks to sapinstgui.exe from the trial download folder and I got the exact same message,
    The problem is not the policies but the installation file.
    The installation file for the GUI is located at :
    <extract_folder_SAP_trial_version>\GUI\SAP_GUI_FOR_WINDOWS(...)\SAP_GUI_for_windows_(...)_Components.exe
    Hope it helps !
    Nicolas

  • Update JDK environment variables...

    Oracle 11g RAC RHEL 4 AS
    I have just upgraded JDK from 1.4 to 6.0 and I wanted to know where and which environment variables need to be updated.
    Thanks.

    Well, I have just finished upgrading my RAC database to 11g. And in the deprecated section, it is mentioned that JDK 1.4 is not supported for 11g and we must upgrade to 1.5 or 5.0. So I upgraded to 1.6 but I still get the error:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/ops/opsctl/OPSCTLDriver (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    when I give the the srvctl stop instance command. I am thinking maybe I need to point the environment variables to the correct java version? Perhaps I need to edit the $ORACLE_HOME/bin/srvctl file?
    please feel free to move this post to the RAC section if you feel necessary.
    Thank you.

  • DBS_ORA_SCHEMA environment variable?

    Hi Gurus,
    I am doing a refresh from Production (P01) to Development (D01). I am having problem to start SAP in D01. I have run the OPS$ script but still unsuccessful. Based on note 534765, it advice to change environment dbs_ora_schema to SAP<SID>.
    Below are my system details :
    Production : SID (P01), dbs_ora_schema = SAPR3
    Development : SID (D01), dbs_ora_schema = SAPSR3
    Should I update dbs_ora_schema for D01 similar to P01 or should I update it to SAPP01.
    Anyone have ideas on this?
    Thanks,
    Intan Azir

    Perform the following check via sqlplus in D01:
    select username from dba_users;
    If your refresh was done as described you should see the schema owner SAPR3 from P01.
    In that case you need to adapt your environment variables in order to use the correct schema user.
    Kind regards,

  • Unable to start java tools - Error : Environment variable JAVA_HOME not set

    hi all,
    I am not able to start the java tool - Visual Admin, Configtool, etc in the solaris Bash shell.
    I was given authorizations on solaris and i'm able to view the logs and browse in solaris boxes,
    But, when i try to start Visual Admin, it says" ERROR environment variable JAVA_HOME not set "
    Since,my colleagues are using this tool for years, how come the environment variable is not set only for my user profile ?
    Is it like the environment variable has to set seperately for every user profile ?
    Do i need to set it initially for my profile eventhough it is working for others ?
    i am confused..please help.
    Addy

    Nicholls, Thanks for your quick reply.
    Ofcourse, I use my login ID to use java tools and they use their's obviously.I don't use <SID>adm.
    We WRQ reflection for X-Windows and Putty for Command line Solaris Access.
    When i try to use VA through the X-Window tool WRQ reflection, I am not able to start the tool.
    My doubt here is, Do we need to setup the environment variable for every new user initially for the first time ? ( I am a new user for this environment )
    Supposing if i need to setup the environment variable, do i need to set it up for the all the Solaris Boxes i use ?
    I am able to browse through the files.when i try to start the VA by giving ./go i am not able to start it up.
    Appreciate your time and valuable replies.
    Addy

  • Setting new environment variable on Linux

    {noformat}I need to set new environment variable on my linux machine from inside my code. I am using csh and the command works fine from command line:
    setenv IFConfigLocation4 /home/username/myfile.xml
    But when i try the same thing from Java code it does not seem to have any effect. here is my code:
    import java.util.*;
    import java.io.*;
    public class CDE_parser_methods{
    public static String fileParse(String inFile, String parserName, String outFile, String CMConfig_locale)
    String parsed = "SUCCESSFUL";
    System.out.println("Parsing file..." + "\nParser name: " + parserName +"\nInput file name: " + inFile + "\nOutput file name: " + outFile + "\nCMConfig file is: " + CMConfig_locale);
    System.out.println("Current Java version: " + System.getProperty("java.version"));
    try
              String cmd[]={"/bin/csh", "-c", "setenv IFConfigLocation4 " + CMConfig_locale};
              Process proc = Runtime.getRuntime().exec(cmd);
              int exitVal= proc.waitFor();
              System.out.println("Value of setenv command is: " + exitVal);
              String cmd2[]={"/bin/csh", "-c", "env"};
              Process proc2 = Runtime.getRuntime().exec(cmd2);
              InputStream instr = proc2.getInputStream();
              InputStreamReader inread = new InputStreamReader(instr);
              BufferedReader buf = new BufferedReader(inread);
              String line=null;
              while((line=buf.readLine()) != null)
                   System.out.println(line);
              int exitVal2= proc2.waitFor();
              }catch(CMException cme){
                   System.out.println("Issue when trying to executing parse command, details: " + cme.getMessage());
                   System.out.println("Description of the issue is: " + cme.getDescription());
                   parsed = "FAILURE: " + cme.getDescription();
              }catch(Exception e){
                   System.out.println("Uncought exception, details: " + e.getMessage());
                   parsed = "FAILURE: " + e.getMessage();
         return parsed;
    public static void main(String[] args) {
         String results=CDE_parser_methods.fileParse("/opt/itemfield/ServiceDB/Project2/Mapping_for_Account_Number_Structure_ITS_Input_File.xls","MappingforAccountNumberStructure","/opt/itemfield/ServiceDB/Project2/test_ws_44.xml","/home/rvenishe/CMConfig.xml");
         System.out.println("Result of fileParse call is: " + results);
         }The out put of my env command does NOT contain system variable "IFConfigLocation4". Any ideas? {noformat}

    Environment variables and their values set from within a user process has their scope and lifetime limited to the process and its subprocesses. See java.lang.ProcessBuilder class and its API documentation for setting env for a subprocess that will be started by a ProcessBuilder instance. Even in the C programming we have the same limitation for the environment.
    Since they are not globally set, system command like env or Java method like System.getenv() can't see them.

Maybe you are looking for

  • Having Problems importing XML file from FCP 6 onto a FCP 5 application

    I have a project file that i worked on FCP 6 and wanted to move to FCP 5 app. on a different Pro Mac but when i try to import the xml, it prompts me to "Please choose a Translation Document File". I choose the FCP 6 project file because i wasn't sure

  • Recovery and Partitions

    Hi, I have a T530. C is my primary operating drive Q is Lenovo recovery drive I shrunk C and created a logical partition for data with a different drive letter. If I use Lenovo's recovery software, when it restores factory state to C drive wil it ove

  • Customer Check Deposit

    Hi Guru's, Can anyone explain Configuration steps for Customer Check Deposit process. Reg Kris

  • Release dates in PR

    Hi Everyone Can some one give me a detailed explaination on how the release date in calculated in a Purchase Requisition. I know that the Release date depends on the Planned Delivery time, GR processing time, Purchasing department processing time. I

  • Hi! Workflow relation to SAP HR?

    Hi Guys! If there is already master data, payroll and OM/PA setup in the PRD system and then if FI, CO, PS, AP, AR, etc. are implemented, would the HR Org structure need to be redone to support workflow? What impact if any would there be on Payroll i