File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Cannot seem to set JK2 LogLevel in Integrated Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Cannot seem to set JK2 LogLevel in Integrated Tomcat" Watch "Cannot seem to set JK2 LogLevel in Integrated Tomcat" New topic
Author

Cannot seem to set JK2 LogLevel in Integrated Tomcat

Aaron Beverly
Greenhorn

Joined: Sep 10, 2003
Posts: 19
Hello:
I cannot seem to get rid of all the DEBUG level log messages from the JK2 connector I have setup between Apache 2 and the integrated Tomcat container in JBoss 3.2. I have set all of the debug directives in the various loggers to 0 and I have included a JkLogLevel info in my httpd.conf.
My setup is as follows:
I have three instances of Tomcat 4 running, with a separate ajp13 connector for each; two of these instances are stand-alone tomcats, with loadbalancing enables. The third is the integrated tomcat that comes bundled with JBoss. Everything is set up, everything works, the connectors work fine, load-balancing works fine. However, in the Integrated instance of Tomcat running in the JBoos server, I am getting all of the JK2 debugging log messages and I cannot seem to turn them off. I do not get these messages in either of the other two instances of tomcat.
Is there something special I need to do get rid of these things? They are really bogging down the application and bloating the server logs.
Thanks in advance,
Aaron
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 565
Are you configuring the log4j settings in JBoss/server/default/conf/log4j.xml?
Try putting in something like:


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Aaron Beverly
Greenhorn

Joined: Sep 10, 2003
Posts: 19
Ah, you are onto something. I had to add
<category name="org.apache.jk">
<priority value="INFO" />
</category>
to conf/log4j.xml
Thanks for the help!!
 
 
subject: Cannot seem to set JK2 LogLevel in Integrated Tomcat
 
Similar Threads
IIS Integrated Authentication + Tomcat Form-based (or basic) Authentication
HTTP to HTTPS not redirecting
Connect Apache to Tomcat on two machines
Security Contraints setup..
HELP: Tomcat PersistenceManager + JDBCStore stuck in getConnection()