Tomcat startup.bat question

When execute Tomcat5/bin/startup.bat,it will appear a command window,all display information of Tomcat will appear in it.Is there a method which can put the display information in this command window into a TXT file? Because if tomcat or JVM raise fatal error,before I see the error display information of Tomcat in this command window,the command window has closed!!! Or is there a method which can keep the tomcat command window opening all time whether it raise so fatal error?
Any idea will be appreciated!

Open a command prompt: Start:run cmd
This opens a dos prompt box for you.
When you run tomcat this way, it won't close the box.
Alternatively check the Tomcat5/logs directory for any error messages there.

Similar Messages

  • Tomcat - startup.bat

    Hello,
    I am getting this error when trying to run Tomcat 5.0 startup.bat file:
    Cannot find the file '-DJava.endorsed.dirs='
    Can anyone tell me what might be wrong?

    has your JAVA_HOME environment variable been set up? check the RUNNING.TXT file for more details.

  • Tomcat startup configuration question

    Can anyone tell me how I can...
    ...add the following parameter to Tomcat startup:
    -Djava.awt.headless=trueWhich file is the advice referring to (and where can I find it)?
    And in which part of the file should I make the insertion?
    Thanks,
    James

    Add JAVA_OPTS="-Djava.awt.headless=true" in $TOMCAT_HOME/bin/startup.sh

  • Do i need to start my startup.bat under tomcat every time?

    do i need to start my startup.bat under tomcat every time
    can i do something to make it start automatically when boot my system?

    From Tomcat 5.x, at least, you can run it as a Window service and have it start automatically.
    For Tomcat 5.0, see here:
    http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html
    From 5.5, I believe the Win service install is the default.

  • Tomcat startup problem Win98

    Hello Friends,
    I am trying to start up Tomcat server, but keep getting error that TOMCAT_HOME is not set. I am using Windows 98. I tried to set the Tomcat_home using
    SET TOMCAT_HOME = C:\Tomcat in autoexec.bat
    but it gives error - out of enviromental space
    How can I set this env. variable? or increase env. space on win98?
    Thank you.

    Hi,
    Thanks for your reply.
    Buy I still get the following error:
    startup.bat -->
    Out of enviroment space
    Out of enviroment space
    Unable to determine value of TOMCAT_HOME
    In my autoexec.bat I have created teh following variables:
    SET CLASSPATH = ".;D:\work\Java\jdk1.3.1\lib;D:\work\Java\jdk1.3.1\lib\dt.jar;dt.jar;D:\work\Java\jdk1.3.1\lib\jvm.jar;jvm.jar;D:\work\Java\jdk1.3.1\lib\jawt.jar;jawt.jar;D:\work\Java\jdk1.3.1\lib\tools.jar;tools.jar"
    SET TOMCAT_HOME = "D:\Programs\jakarta-tomcat-3.2.2"
    SET JAVA_HOME = "D:\work\Java\jdk1.3.1"
    Have no clue ...

  • Tomcat startup error: can't start server

    Hi!
    I got Jbuilder 8, it contains Tomcat 3.1, Tomcat 4.0, Tomcat 4.1 servers.
    When I develop in the IDE, the JBuilder 8 can start any of these servers.
    But if I want to use Tomcat 4.1 alone (independent from JBuilder), it doesn't works.
    I followed the steps written in Tomcat installation instructions (setting path, environment variables), but when I try to run startup.bat it's opened a new window for a minute (I think with error message), and close it too fast to read the message.
    The first DOS window shows:
    USING Java_home.......
    USING Catalina_home......
    etc.
    and nothing else, but Tomcat doesn't run.
    I can start Tomcat 3.1 this way, but not the other two (4.0, 4.1)
    Anyone can help?
    thank you
    sorry for the bad English, I hope you can understand.

    I am also getting the same error while starting tomcat. The catalina command window disappears immediately.
    tried running the catalina run command....it gives
    java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (U
    nsupported major.minor version 48.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    Exception in thread "main"
    i am using jdk131 as the java home directory and tomcat 5.5.
    Are u able to start tomcat?

  • Tomcat startup,shutdown blues......

    hi,
    my dev environment:Win2000 professional,Tomcat 4.1,j2sdk1.4.1_02
    I hv successfully installed TomCat and m able to run jsp,servlet,struts applications.
    The only problem i m facing is dat.....i dun hv to use "startup.bat" for starting the Tomcat.Wheneva i boot my pc.....Tomcat starts on its own.So i cannot even shutdown tomcat using "shudown.bat".I get the following error whn i execute shutdown.bat
    Catalina.stop: java.net.ConnectException: Connection refused: connect
    I even tried stopping the Tomcat services using the taskbar.....but i get "access denied" error.....
    I hv installed tomcat twice.......but the same error still persisits.....
    Can some one please help me out....
    regds,
    ashay

    hi,
    You've dowloaded the tomcat distribution that is installed as a windows service.
    Get the plain installation : the zip file. Unzip it and hit bin/startup.bat ! Don't forget to set your JAVA_HOME environment variable or it won't start.

  • How to start process at tomcat startup

    Hello frens
    I need to start a process when tomcat startup
    the problem is when tomcat startup i have a bat file PushMsg.bat which content are as .............
    cd c:
    cd \tomcat\webapps\myApp\WEB-INF\classes
    java SendMsg
    i need to run this bat file as tomcat get startup .how to achieve this????????????

    Se16 -- table:RSPCPROCESSLOG - click on display entries.
    Entet the variant, instance start date (this info you can get from the "display message" of PC.
    Now execute to display the table entries of RSPCPROCESSLOG.
    Next goto SE37 transaction --enter RSPC_PROCESS_FINISH
    Take the entries from the above table to set the input parameters of the FM.
    I_logid = log_id(from above table)
    I_type = type(from above table)
    i_variant = varaint (from above table)
    i_instance = (from above table)
    Click on F8(EXECUTE)
    now the actual process is set to gree and the process chain will be triggered (rest of the PC with out repeating the step from where is was red).

  • Error when running:    startup.bat -fixdirectory= T:\usr\sap\ABC\upg

    I am trying to start a SAP PI 7/0 to 7.1 installation.
    I have performed all of the prerequisite steps and am now trying to run the startup.bat file from the Installation Master CD.
    I am entering:
    STARTUP.bat -fixdirectory= T:\usr\sap\ABC\upg
    and it runs:
    H:\SAPup\SAPNWAS_ABAP71_UpgMstr>STARTUP.bat -fixdirectory= T:\usr\sap\ABC\upg
    SAP directory - T:\usr\sap
    ABC directory - T:\usr\sap\ABC
    UPG directory - T:\usr\sap\ABC\upg\
    Using SAPCAR from  H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM_SAPCAR_WINDOWS_
    X86_64
    Using SAP JVM from H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM_SAPJVM5_WINDOWS
    X8664
    Creating upgrade directory structure...
    Found runtime H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM_SAPCAR_WINDOWS_X86_6
    4\vcredist_x64.msi
    Installing runtime (msiexec /qn /i H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM
    SAPCARWINDOWS_X86_64\vcredist_x64.msi)...
    Coping SAPCAR.EXE to T:\usr\sap\ABC\upg\sdt\exe\SAPCAR.EXE...
    Coping STARTUP.BAT to T:\usr\sap\ABC\upg\STARTUP.BAT...
    Coping STARTUP.JS to T:\usr\sap\ABC\upg\STARTUP.JS...
    Unpacking H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM_SAPJVM5_WINDOWS_X86_64\S
    APJVM5.SAR ...
    Found H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM_SLCNTRL\DSU_SLCTRL.SAR
    Unpacking H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM_SLCNTRL\DSU_SLCTRL.SAR .
    Unpacking H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM_SLCFG\DSU_SLCFG.SAR ...
    Unpacking H:\SAPup\SAPNWAS_ABAP71_UpgMstr\DATA_UNITS\UM_SLCFG_NW07\DSU_SLCFG_NW0
    7.SAR ...
    Starting DSUService (T:\usr\sap\ABC\upg\sdt\exe\DSUService.bat -srvarg=/DSUServi
    ce/cdpath=H:\SAPup\SAPNWAS_ABAP71_UpgMstr\ -fixdirectory= T:\usr\sap\ABC\upg )..
    And then stops. During this time, a second command window quickly appears and disappears and tries to start.
    No log files are created in:
    H:\SAPup\SAPNWAS_ABAP71_UpgMstr
    or:
    T:\usr\sap\ABC\upg
    Any ideas?
    Thanks.

    Hi Srinivas and Paul,
    How did you solve this issue? I'm facing the same issue
    Thanks andkind regards,
    Angel

  • Error in startup.bat

    When I run my startup.bat file I receive the following errors LRM-00116 syntax error 'undo_tablespace' following '=' and ORA-01078.
    rem startup bat
    @echo on
    echo startup:
    date/t
    echo sys/world9 as sysdba
    echo startup
    echo startup pfile=e:\oracle\admin\V9\pfile\init.ora
    )| sqlplus -s
    # Copyright (c) 1991, 2001 by Oracle Corporation
    # Cache and I/O
    db_block_size=4096
    db_cache_size=33554432
    # Cursors and Library Cache
    open_cursors=300
    # Diagnostics and Statistics
    background_dump_dest=E:\oracle\admin\v9\bdump
    core_dump_dest=E:\oracle\admin\v9\cdump
    timed_statistics=TRUE
    user_dump_dest=E:\oracle\admin\v9\udump
    # Distributed, Replication and Snapshot
    db_domain=world
    remote_login_passwordfile=EXCLUSIVE
    # File Configuration
    control_files=("E:\oracle\oradata\v9\CONTROL01.CTL", "E:\oracle\oradata\v9\CONTROL02.CTL", "E:\oracle\oradata\v9\CONTROL03.CTL")
    # MTS
    dispatchers="(PROTOCOL=TCP)(SER=MODOSE)", "(PROTOCOL=TCP)(PRE=oracle.aurora.server.GiopServer)", "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)", "(PROTOCOL=TCP)"
    # Miscellaneous
    compatible=9.0.0
    db_name=v9
    # Network Registration
    instance_name=v9
    # Pools
    java_pool_size=33554432
    large_pool_size=1048576
    shared_pool_size=33554432
    # Processes and Sessions
    processes=150
    # Redo Log and Recovery
    fast_start_mttr_target=300
    # Sort, Hash Joins, Bitmap Indexes
    sort_area_size=524288
    # System Managed Undo and Rollback Segments
    undo_management=#AUTO
    undo_tablespace=#UNDOTBS
    Thank you in advance

    My tablespace name is UNDOTBS01.DBF. This is the name of datafile. Are you sure that you are using right pfile while starting the instance. Can you post the whole steps with error you are getting here.
    Daljit Singh

  • Startup with question mark flashing..how to do

    Hi;
    mac book air startup with question mark flashing..how to do

    Check the advice in this knowledge base article.

  • Run servlet automatically when tomcat startup

    Dear all
    I need help to run servlet automatically when tomcat startup without starting even the application containing the servlet
    thanks in advance

    lol
    i've the same problem with my car,I want it to go ahead but without starting the engine and using all this gasoline...
    Seriously... the servlet IS almost your application
    when you start the server, the application starts to
    check the init() method of the servlet Interface
    and the "load-on-startup" parameter of the servlet in the deployment descriptor

  • Loading JNI library on Tomcat startup

    I am trying to load a JNI library on startup of servlet. I have written the following code in my servlet init function:
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    log.info("Loading native libraries...");
    System.loadLibrary("foo");
    log.info("Native libraries loaded...");
    On Tomcat startup, I see the "Loading native libraries..." message, but I don't see the "Native libraries loaded...". As if the system hung in the System.loadLibrary function.
    Anybody knows how to solve this problem?
    Martin

    The specification specifically forbids the use of native libraries in container objects. So you might want to take that into consideration with whatever you are doing.
    If you do want to do that then I would suggest loading it outside of the container. There is probably some configuration option that allows you to force tomcat to load something on start up.
    You might also want to consider if hot deploys are part of your future. If they are then you might want to put the interface inside of your own custom class loader, so you can probably control the unload of the shared library.
    If you search the J2EE lists you will find that almost everyone states that JNI should not even be loaded into the server. Instead you should create a seperate application and use RMI to access it. Myself I think that is overkill, but I would probably consider exactly what I am interfacing to before making that final decision. If your JNI library blows up it will take down the entire server (which is why the spec forbids it.)

  • Initial startup with question marked folder with a disk already inside

    Initial startup with question marked folder with a disk already inside

    Reinstalling Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Initialize a web service when Tomcat startup

    Hi,
    I have a web service, built using Axis 2 1.2, that will do all the initialization at the first service call (e.g. create new database tables, create JAXB objects, etc), but it's taking too much time to do those tasks (at least twice slower than a normal service call with everything ready).
    i was wondering if i can do the initialization at Tomcat startup, instead of doing it at the first service call, so that the first service call could always get the highest possible performance..
    Thanks..

    problem resolved... i've created a servlet class to initialize everything, and i have modified web.xml to call this servlet class when tomcat startup.

Maybe you are looking for