IRC log for #tomcat on 20080122

01:41.39*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-286ab586210cd0ce)
04:03.24*** join/#tomcat lance107 (n=chatzill@061093246097.ctinets.com)
04:03.40*** join/#tomcat marx2k (n=marx2k@24-158-13-251.dhcp.mdsn.wi.charter.com)
04:04.23marx2kSo I have a TomCat server running on a remote machine. I have a netbeans project sitting here locally which runs fine locally. What do I need to do in order to have NetBeans save it to the remote TomCat server to have it run correctly there as well? right now I have it saving to <remote server webapps>/prof/ and it's picking up <remote IP>/prof/whatever.jsp just fine but the JSPs are not able to (404 error) call the servlets like
04:04.23marx2kthey do locally
04:46.42*** join/#tomcat acidjnk (i=acid@p5B3F2F18.dip0.t-ipconnect.de)
04:55.12*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-5536907a3128be38)
06:25.41*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
07:43.19*** join/#tomcat jasonb_ (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
08:26.22*** join/#tomcat kanai (n=kanai@124.32.114.226)
08:33.05*** join/#tomcat kjkoster5489 (n=kjkoster@233-250-103-145.cust.glaslokaal.nl)
08:53.40vinsehow do i get at the http headers for static content?
09:05.00*** join/#tomcat fifo_ (n=quintin@196.38.199.139)
09:05.15fifo_I have a webapp with a .properties file, but it had a wrong value. Now I changed it, but tomcat just keeps reading the old value
09:05.18fifo_It doesn't register the change
09:05.23fifo_I've stopped/started it tons of tims
09:05.25fifo_wtf?
09:13.19*** join/#tomcat anujsingh (n=anuj@59.90.65.14)
09:13.37anujsinghhi everyone
09:13.46anujsinghhow to configure access log for tomcat?
09:14.11anujsinghto get the IP address and similar informations.
09:14.58anujsinghi used logj4 and common logging class, getting tomcat.log
09:15.53anujsinghmy target is to get the access log , similar one which i get with apache access_log with IP addresses/host
09:16.31anujsinghvalve ?
09:24.52*** join/#tomcat npm (n=npm@cpe-75-83-171-237.socal.res.rr.com)
09:27.10anujsinghhow to get acess log for tomcat?
09:27.37anujsinghaccess log with ip address for tomcat ?
10:21.46kjkoster5489anujsingh: check the documentation about valves.
10:23.35anujsinghyes kjkoster5489 , can i have access log with customized logj4 ? i am using tomcat for the first time.
10:31.53kjkoster5489Access log for custominzed log4j? I don't understand your question.
10:32.08kjkoster5489Access logs are generated using valves. See the docs and see conf/server.xml
10:32.20kjkoster5489custom log4j is application-specific.
10:34.08anujsinghyes
10:35.33anujsinghdo i have to modify conf/server.xml with the values from valve documentation ?
10:35.56kjkoster5489you may have to, if you are not happy with the defaults that Tomcat ships with.
10:49.52anujsinghThankYou kjkoster5489 , modifying conf/server.xml worked
10:50.06anujsinghThanks a lot.
10:50.13kjkoster5489Cool. No problem.
11:11.01deebongh, where does <Context> element belong in server.xml?
11:11.15deeboin <Engine> or <Service>?
11:14.13deebonevermind, its under <Host> :P
11:17.52lykenif will be doing a lot of tomcat work
11:18.07lykenyou should consider grabbing a copy of tomcat the definitive guide from oriellys
11:18.26lyken2nd edition only just released with updates including tc6 stuff
13:13.19*** join/#tomcat tue (n=tue@port351.ds1-ly.adsl.cybercity.dk)
13:15.28tueHello. Very basic questions: tomcat does not seem to register System.out/err in logs/catalina.out. The webapps are run with debug=9. Any hints on where the configuration file is goofed up?
13:44.56*** join/#tomcat AlexWorX (n=alexworx@port-87-234-51-211.static.qsc.de)
13:52.44tueAh, i figured it out myself. rm logs/catalina.out (it was empty!?) and everything works fine. no idea what went wrong though.
13:56.37*** join/#tomcat jstephan (n=jstephan@p5B326416.dip.t-dialin.net)
14:22.36*** join/#tomcat david__ (n=david@193.123.234.226)
14:23.37david__Hi all, first time here and got a notice not to ask a question but this is reason why am here
14:24.58david__I want to enable php on tomcat but haven't used linux for a long time and would be grateful if anybody could assist me on that - will buy you a beer :)
14:36.22*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
15:20.45*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
16:01.39*** join/#tomcat david___ (n=david@193.123.234.226)
16:01.57*** join/#tomcat paa02002 (n=IceChat7@d80h220.public.uconn.edu)
16:02.34*** join/#tomcat david__ (n=david@193.123.234.226)
16:04.41paa02002Hello, I am running Ubuntu 6.06 with tomcat-5.0.30 and the Kaffe java VM which supports java 1.4 ...  I am trying to start tomcat5 through /etc/init.d and the kaffe process is pegging the CPU while the catalina logs say "processing context configuration file" with a path to the admin.xml file in the tomcat5-admin package.  it has been well over 5 minutes and the server is not coming up still... has anyone seen this/know what i should be lookin
16:08.59*** part/#tomcat david__ (n=david@193.123.234.226)
16:12.48*** join/#tomcat Internat (n=nf@dsl-58-6-125-95.qld.westnet.com.au) [NETSPLIT VICTIM]
16:12.48*** join/#tomcat andyt (n=andyt@THOMPSON.ADMIN.SCPS.NYU.EDU) [NETSPLIT VICTIM]
16:12.48*** join/#tomcat ccherrett (n=chris@S0106000c413c715f.ed.shawcable.net)
16:15.06paa02002nevermind, seems to be resolved switching to the sun java stuff.
16:31.05*** join/#tomcat mib_4qwd9a6v (i=c064c0fd@gateway/web/ajax/mibbit.com/x-7770851ad221faa0)
16:36.01*** join/#tomcat ^Quiddity (n=steve@ng1.cptxoffice.net)
16:43.36*** join/#tomcat rikkor (n=ulk@209.45.74.205)
17:04.32*** join/#tomcat Sembiance (n=Sembianc@permafrost.telparia.com)
17:05.17SembianceSo I have tomcat 6 running okay with a context file. I needed to add commons-logging.jar to TOMCAT_HOME/lib   But now I'm trying to add a custom log4j.properties for my webapp so that I can enable DEBUG on certain classes
17:06.03SembianceIn pre-tomcat-6 I just put log4j.properties in common/classes and bingo.
17:06.26*** join/#tomcat melter_ (n=Melter@dyn082.morrill-116.ndsu.NoDak.edu)
17:06.31SembianceHowever putting log4j.properties in the new tomcat6/lib directory does not appear to do anythig. Checking for .isDebugEnabled() returns false
17:06.59SembianceAny ideas? (why on earth tomcat needs to be so complicated and so poorly documented I have no idea heh)
17:07.39SembianceI found a logging.html page that wants me to build custom jars from the source and replace the bin ones, but that it appears is if I want to change how tomcat itself logs, not my app...
17:18.21*** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
17:20.20*** join/#tomcat andyt (n=andyt@THOMPSON.ADMIN.SCPS.NYU.EDU)
17:21.52Sembiancemaybe I'll just use tomcat 5.x instead
17:32.11*** join/#tomcat mascix_ (n=opera@88.248.140.104)
17:38.38*** part/#tomcat mascix_ (n=opera@88.248.140.104)
17:58.43pfnusing log4j should be trivial
17:58.52pfnyou're just doing something wrong (tm)
18:01.34*** join/#tomcat gregor_k (n=a@stgt-4dbdcb76.pool.einsundeins.de)
18:03.03*** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu)
18:10.03*** join/#tomcat tomisina (n=tomisina@c-24-3-194-97.hsd1.mn.comcast.net)
18:12.17*** join/#tomcat kab (n=abarrera@148.229.1.11)
18:12.38*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
18:36.28*** join/#tomcat klapzin (n=klapzin@200.230.21.51)
18:36.47klapzinhi guys
18:37.04klapzinwhere is the file extras.xml to configure log4j ?
18:37.11klapzinsomeone knows ?
18:37.37klapzinI am installing tomcat 6 on Solaris 10
19:00.42*** join/#tomcat bugfixer (n=bugfixer@42gis175.gulftel.com)
19:08.44kjkoster5489klapzin: should that not be log4j.xml or log4j.properties?
19:09.42kjkoster5489klapzin: http://tomcat.apache.org/tomcat-6.0-doc/logging.html
19:09.48kjkoster5489Does that help?
19:09.52klapzinin this tutorial
19:09.58klapzinsays about extras.xml
19:10.59kjkoster5489Are you using the source distribution of Tomcat or the binary distribution?
19:11.45kjkoster5489extras.xml seems to be the Ant build file for Tomcat. I never used that myself.
19:14.09klapzinkjetilkWork, we are using binary distribution with apr and native libary
19:14.59kjkoster5489You are not hapy with the logging that Tomcat does by default?
19:15.15klapzinkjetilkWork, no...  
19:15.24klapzinhere we have to use log4j
19:15.33kjkoster5489Uhm....
19:15.58kjkoster5489What precisely is it that goes wrong?
19:16.50kjkoster5489Usually you ask the application devs to use log4j and then the log4j configuration is part of the WAR file.
19:16.52klapzino log file doesn't create
19:17.03kjkoster5489?
19:18.01klapzinwe just started the log4j and we don't get log
19:18.39kjkoster5489You started log4j?
19:18.57klapzinwe make one log4j.properies inside $CATALINA_HOME/LIB
19:18.58kjkoster5489http://vegdave.wordpress.com/2006/08/31/how-to-configure-log4j-on-tomcat-for-one-of-your-apps/
19:19.19kjkoster5489Ah. Why not put log4j in the application instead of the platform?
19:19.33kjkoster5489Are you an application dev or a platform admin?
19:20.10klapzinplataform admin
19:22.39kjkoster5489The way I see it you don't have to add log4j to Tomcat. In http://tomcat.apache.org/tomcat-6.0-doc/logging.html they state that they are using something like that, but renamed for whatever reason.
19:22.49kjkoster5489You can control the built-in logger with conf/logging.properties.
19:23.00kjkoster5489Does that maybe help?
19:23.41kjkoster5489Otherwise you have to run with a non-stock tomcat.
19:25.30klapzinafter create log4j.properties what we have to do ?
19:26.22kjkoster5489Have you looked at the configuration file for the logger, conf/logging.properties?
19:27.35klapzinyes
19:27.55kjkoster5489It does not solve your problem?
19:28.17klapzini have to add log4j in log.properties ?
19:28.28klapzinlogging.properties*
19:29.11kjkoster5489No.
19:29.44kjkoster5489logging.properties is how you can control the logging of a Tomcat server without having to hack the server and build a custom one from the sources.
19:30.19klapzinok
19:30.22klapzinunderstand
20:01.46*** join/#tomcat mascix_ (n=opera@88.248.140.104)
20:15.32*** join/#tomcat ibot (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
20:15.32*** topic/#tomcat is Stable versions: 6.0.14, 5.5.23 and 4.1.36. Newbies use the official binary from tomcat.apache.org, or an RPM package from http://www.webdroid.org:8080/archives/tomcat-package. Check your Tomcat logs before you ask for an answer. SLOW MOTION CHANNEL (we all have jobs & kids): Ask your question, including your TC, Java, & OS versions, then wait; check back often for answers.
20:23.37*** join/#tomcat ibot (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
20:23.37*** topic/#tomcat is Stable versions: 6.0.14, 5.5.23 and 4.1.36. Newbies use the official binary from tomcat.apache.org, or an RPM package from http://www.webdroid.org:8080/archives/tomcat-package. Check your Tomcat logs before you ask for an answer. SLOW MOTION CHANNEL (we all have jobs & kids): Ask your question, including your TC, Java, & OS versions, then wait; check back often for answers.
20:26.16*** part/#tomcat mascix_ (n=opera@88.248.140.104)
20:27.53Sembiancepfn: so given a fresh tomcat 6, what steps are needed to enable DEBUG mode for logging in my web app for a given class?
20:29.27SembianceWith tomcat before version 6 it's easy. Just add log4j.properties to the classes directory, done.
20:29.35Sembiancebut with tomcat 6, no such luck.
20:30.26pfnSembiance, you need to add log4j
20:30.33pfntomcat does not use log4j internally
20:30.37pfnit uses commons-logging
20:30.41pfnso you need to add log4j
20:31.03pfnonce you have log4j in, then you j ust need to add log4j.properties to your classes directory
20:32.14Sembiancepfn: hrm...
20:34.36Sembiancepfn: so out of the box binary tomcat 6 fails with "ava.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory"   This is corrected by adding commons-logging.jar to the tomcat_home/lib directory
20:34.57*** join/#tomcat ralfWORK (i=jwalker@flynn.smearcampaign.org)
20:35.01Sembiancepfn: I just tried adding log4j.jar to lib as well along with a log4j.properties to my WEB-INF/classes ffolder, but no luck.
20:35.38ralfWORKdoes the tomcat project keep a list of tomcat hosting providers? if so, where can I find this list?
20:38.09pfnlog4j.jar doesn't go into WEB-INF/classes
20:38.24Sembiancepfn: I added it to /lib
20:38.29pfnlog4j would be a global install option, it'd go into CATALINA_HOME/lib
20:39.00Sembiancepfn: That's where I put it. Now when I start my app I get INFO: log4j:WARN No appenders could be found for logger (com.companydemo.demoApplication).
20:39.10Sembiancepfn: log4j:WARN Please initialize the log4j system properly.
20:39.25pfnso it can't find your log4j.properties or whatever
20:39.30pfnthat's a log4j problem, not tomcat now
20:39.35Sembiancepfn: I've tried putting log4j.properties in WEB-INF/classes  in WEB-INF/   in TOMCAT_HOME/lib   in WEB-INF/lib  failed in all of them
20:39.50pfnso figure out where log4j expects it then
20:39.57Sembiancepfn: that's the tricky part :)
20:40.06Sembiancepfn: I don't *need* log4j if there is something better.
20:40.15pfnjdk logging
20:40.19pfnwhat's wrong with that
20:40.25Sembiancepfn: I'm just using Log log = LogFactory.getLog(logee);   with   log.isDebugEnabled()
20:40.47Sembiancepfn: and I want to be able to set the level for classes in a file for DEBUG, INFO, etc.  
20:41.02pfnso, Logger.getLogger("qname");, if (logger.isLoggable(Level.XXX) { log.XXX() }
20:42.18Sembiancepfn: hrm.
20:42.35pfnanyway, there's no real reason to use log4j
20:42.57Sembiancepfn: so with these other approaches, how are log levels configured?
20:42.57pfnunless you need to support java 1.3, but it's been eol for so long now (even java 1.4 is now eol)
20:43.15pfnlogging.properties
20:43.18Sembiancepfn: I'm building something new here, so I'm more than willing to use whatever I should be using now-a-days :)
20:44.02pfnjdk logging then
20:44.17pfnunless you're a fan of introducing unnecessary dependencies
20:44.26Sembiancepfn: this one?   pfn: http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/
20:45.06pfnyes
20:45.19Sembiancewow, that's 5+ years old
20:45.27Sembiancewhy do so many people still use log4j?
20:45.47Sembianceand why does tomcat use commons-logging instead of the built in jdk logging?
20:46.23Sembiancepfn: by the way, thank you very much for your help. I appreciate it :)
20:49.21pfnsome people think log4j is more "powerful"
20:49.27pfnor that jdk logging is just a silly "copycat"
20:49.34pfnor they think that they *do* need to support jdk 1.3
20:49.45pfntomcat uses commons-logging for such legacy
20:51.58Sembianceahhh
20:52.04Sembiancewell thank you very much for your help :)
21:00.45pfnyou're welcome
21:08.18ralfWORKdoes the tomcat project keep a list of tomcat hosting providers? if so, where can I find this list?
21:34.04*** join/#tomcat flehm (n=karol@albatrosow2.piaseczno.robbo.pl)
21:34.18flehmHello everyone
21:50.39*** join/#tomcat DspaceN00b (n=matt@ip24-255-175-117.ks.ks.cox.net)
21:53.13Sembiancehello flehm
22:29.40*** join/#tomcat fzlogik (n=fzlogik@host-87-74-128-81.dslgb.com)
22:52.51*** join/#tomcat fzl0gik (n=fzlogik@host-84-9-144-210.dslgb.com)
22:53.37*** join/#tomcat tomisina (n=tomisina@c-24-3-194-97.hsd1.mn.comcast.net)
23:54.42*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.