Tomcat 6 config for Command line start

Discussion in 'Java' started by martin.strube@arvato-mobile.de, May 14, 2007.

  1. Guest

    Hi there

    My first Problem is that somehow Tomcat is in debug mode but I don't
    want to see all these debug messages in the console since this takes
    so long time while developing.
    My second Problem is that I just want to see the debug messages from
    my own Web Application, where I use log4j, in a stderr.log file.

    - Im using a batch file to start my Tomcat 6.0.10. where the
    server.xml and a properties file is copied to the appropriate
    directories. This is necessary since I develop so many applications.

    - In the batch file I start Tomcat like this:
    C:\Tomcat_6.0\bin\tomcat6.exe //TS//Tomcat6 --LogLevel=ERROR --
    JvmOptions=-Dserver.status=local;-Dcatalina.home=C:\Tomcat_6.0;-
    Dcatalina.base=C:\Tomcat_6.0; -Djava.io.tmpdir=C:\Tomcat_6.0\temp;-
    Djava.util.logging.config.file=C:\Tomcat_6.0\conf\logging.properties;-
    Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

    - I have the standard Tomcat installation.
    - In the /lib folder I additionally put the log4j1.2.8.jar, servlet-
    api.jar, mysql-connector-java-3.1.10-bin.jar, junit-3.8.1.jar, commons-
    collections-3.1.jar, commons-dbcp-1.2.1.jar and the commons-
    pool-1.2.jar since I need this for my web application.

    - How can I swith of the danmed debug mode? --LogLevel=ERROR seems
    not to work...

    - How can I tell Tomcat where to put the error messages? In my old
    Resin.conf it was sth. like:
    <web-app>
    <error-log id='c:\resin-2.1.16\logs\error.log'/>
    <stderr-log id='c:\resin-2.1.16\logs\stderr.log'/>
    <stdout-log id='c:\resin-2.1.16\logs\stdout.log'/>
    </web-app>


    any hints?
    Thanks
    Martin :)
    , May 14, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. William Brogden
    Replies:
    3
    Views:
    1,863
  2. Jan Persson
    Replies:
    7
    Views:
    600
    Jan Persson
    Feb 23, 2004
  3. Aleksandar Matijaca
    Replies:
    2
    Views:
    8,272
    Aleksandar Matijaca
    Sep 19, 2004
  4. CSharpner
    Replies:
    0
    Views:
    979
    CSharpner
    Apr 9, 2007
  5. albert kao
    Replies:
    3
    Views:
    1,965
    Arne Vajhøj
    Feb 2, 2011
Loading...

Share This Page