Tomcat 6 config for Command line start

M

martin.strube

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 :)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top