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.23 | marx2k | So 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.23 | marx2k | they 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.40 | vinse | how do i get at the http headers for static content? |
09:05.00 | *** join/#tomcat fifo_ (n=quintin@196.38.199.139) |
09:05.15 | fifo_ | 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.18 | fifo_ | It doesn't register the change |
09:05.23 | fifo_ | I've stopped/started it tons of tims |
09:05.25 | fifo_ | wtf? |
09:13.19 | *** join/#tomcat anujsingh (n=anuj@59.90.65.14) |
09:13.37 | anujsingh | hi everyone |
09:13.46 | anujsingh | how to configure access log for tomcat? |
09:14.11 | anujsingh | to get the IP address and similar informations. |
09:14.58 | anujsingh | i used logj4 and common logging class, getting tomcat.log |
09:15.53 | anujsingh | my target is to get the access log , similar one which i get with apache access_log with IP addresses/host |
09:16.31 | anujsingh | valve ? |
09:24.52 | *** join/#tomcat npm (n=npm@cpe-75-83-171-237.socal.res.rr.com) |
09:27.10 | anujsingh | how to get acess log for tomcat? |
09:27.37 | anujsingh | access log with ip address for tomcat ? |
10:21.46 | kjkoster5489 | anujsingh: check the documentation about valves. |
10:23.35 | anujsingh | yes kjkoster5489 , can i have access log with customized logj4 ? i am using tomcat for the first time. |
10:31.53 | kjkoster5489 | Access log for custominzed log4j? I don't understand your question. |
10:32.08 | kjkoster5489 | Access logs are generated using valves. See the docs and see conf/server.xml |
10:32.20 | kjkoster5489 | custom log4j is application-specific. |
10:34.08 | anujsingh | yes |
10:35.33 | anujsingh | do i have to modify conf/server.xml with the values from valve documentation ? |
10:35.56 | kjkoster5489 | you may have to, if you are not happy with the defaults that Tomcat ships with. |
10:49.52 | anujsingh | ThankYou kjkoster5489 , modifying conf/server.xml worked |
10:50.06 | anujsingh | Thanks a lot. |
10:50.13 | kjkoster5489 | Cool. No problem. |
11:11.01 | deebo | ngh, where does <Context> element belong in server.xml? |
11:11.15 | deebo | in <Engine> or <Service>? |
11:14.13 | deebo | nevermind, its under <Host> :P |
11:17.52 | lyken | if will be doing a lot of tomcat work |
11:18.07 | lyken | you should consider grabbing a copy of tomcat the definitive guide from oriellys |
11:18.26 | lyken | 2nd 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.28 | tue | Hello. 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.44 | tue | Ah, 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.37 | david__ | Hi all, first time here and got a notice not to ask a question but this is reason why am here |
14:24.58 | david__ | 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.41 | paa02002 | Hello, 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.06 | paa02002 | nevermind, 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.17 | Sembiance | So 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.03 | Sembiance | In 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.31 | Sembiance | However putting log4j.properties in the new tomcat6/lib directory does not appear to do anythig. Checking for .isDebugEnabled() returns false |
17:06.59 | Sembiance | Any ideas? (why on earth tomcat needs to be so complicated and so poorly documented I have no idea heh) |
17:07.39 | Sembiance | I 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.52 | Sembiance | maybe 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.43 | pfn | using log4j should be trivial |
17:58.52 | pfn | you'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.47 | klapzin | hi guys |
18:37.04 | klapzin | where is the file extras.xml to configure log4j ? |
18:37.11 | klapzin | someone knows ? |
18:37.37 | klapzin | I am installing tomcat 6 on Solaris 10 |
19:00.42 | *** join/#tomcat bugfixer (n=bugfixer@42gis175.gulftel.com) |
19:08.44 | kjkoster5489 | klapzin: should that not be log4j.xml or log4j.properties? |
19:09.42 | kjkoster5489 | klapzin: http://tomcat.apache.org/tomcat-6.0-doc/logging.html |
19:09.48 | kjkoster5489 | Does that help? |
19:09.52 | klapzin | in this tutorial |
19:09.58 | klapzin | says about extras.xml |
19:10.59 | kjkoster5489 | Are you using the source distribution of Tomcat or the binary distribution? |
19:11.45 | kjkoster5489 | extras.xml seems to be the Ant build file for Tomcat. I never used that myself. |
19:14.09 | klapzin | kjetilkWork, we are using binary distribution with apr and native libary |
19:14.59 | kjkoster5489 | You are not hapy with the logging that Tomcat does by default? |
19:15.15 | klapzin | kjetilkWork, no... |
19:15.24 | klapzin | here we have to use log4j |
19:15.33 | kjkoster5489 | Uhm.... |
19:15.58 | kjkoster5489 | What precisely is it that goes wrong? |
19:16.50 | kjkoster5489 | Usually you ask the application devs to use log4j and then the log4j configuration is part of the WAR file. |
19:16.52 | klapzin | o log file doesn't create |
19:17.03 | kjkoster5489 | ? |
19:18.01 | klapzin | we just started the log4j and we don't get log |
19:18.39 | kjkoster5489 | You started log4j? |
19:18.57 | klapzin | we make one log4j.properies inside $CATALINA_HOME/LIB |
19:18.58 | kjkoster5489 | http://vegdave.wordpress.com/2006/08/31/how-to-configure-log4j-on-tomcat-for-one-of-your-apps/ |
19:19.19 | kjkoster5489 | Ah. Why not put log4j in the application instead of the platform? |
19:19.33 | kjkoster5489 | Are you an application dev or a platform admin? |
19:20.10 | klapzin | plataform admin |
19:22.39 | kjkoster5489 | The 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.49 | kjkoster5489 | You can control the built-in logger with conf/logging.properties. |
19:23.00 | kjkoster5489 | Does that maybe help? |
19:23.41 | kjkoster5489 | Otherwise you have to run with a non-stock tomcat. |
19:25.30 | klapzin | after create log4j.properties what we have to do ? |
19:26.22 | kjkoster5489 | Have you looked at the configuration file for the logger, conf/logging.properties? |
19:27.35 | klapzin | yes |
19:27.55 | kjkoster5489 | It does not solve your problem? |
19:28.17 | klapzin | i have to add log4j in log.properties ? |
19:28.28 | klapzin | logging.properties* |
19:29.11 | kjkoster5489 | No. |
19:29.44 | kjkoster5489 | logging.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.19 | klapzin | ok |
19:30.22 | klapzin | understand |
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.53 | Sembiance | pfn: 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.27 | Sembiance | With tomcat before version 6 it's easy. Just add log4j.properties to the classes directory, done. |
20:29.35 | Sembiance | but with tomcat 6, no such luck. |
20:30.26 | pfn | Sembiance, you need to add log4j |
20:30.33 | pfn | tomcat does not use log4j internally |
20:30.37 | pfn | it uses commons-logging |
20:30.41 | pfn | so you need to add log4j |
20:31.03 | pfn | once you have log4j in, then you j ust need to add log4j.properties to your classes directory |
20:32.14 | Sembiance | pfn: hrm... |
20:34.36 | Sembiance | pfn: 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.01 | Sembiance | pfn: 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.38 | ralfWORK | does the tomcat project keep a list of tomcat hosting providers? if so, where can I find this list? |
20:38.09 | pfn | log4j.jar doesn't go into WEB-INF/classes |
20:38.24 | Sembiance | pfn: I added it to /lib |
20:38.29 | pfn | log4j would be a global install option, it'd go into CATALINA_HOME/lib |
20:39.00 | Sembiance | pfn: 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.10 | Sembiance | pfn: log4j:WARN Please initialize the log4j system properly. |
20:39.25 | pfn | so it can't find your log4j.properties or whatever |
20:39.30 | pfn | that's a log4j problem, not tomcat now |
20:39.35 | Sembiance | pfn: 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.50 | pfn | so figure out where log4j expects it then |
20:39.57 | Sembiance | pfn: that's the tricky part :) |
20:40.06 | Sembiance | pfn: I don't *need* log4j if there is something better. |
20:40.15 | pfn | jdk logging |
20:40.19 | pfn | what's wrong with that |
20:40.25 | Sembiance | pfn: I'm just using Log log = LogFactory.getLog(logee); with log.isDebugEnabled() |
20:40.47 | Sembiance | pfn: and I want to be able to set the level for classes in a file for DEBUG, INFO, etc. |
20:41.02 | pfn | so, Logger.getLogger("qname");, if (logger.isLoggable(Level.XXX) { log.XXX() } |
20:42.18 | Sembiance | pfn: hrm. |
20:42.35 | pfn | anyway, there's no real reason to use log4j |
20:42.57 | Sembiance | pfn: so with these other approaches, how are log levels configured? |
20:42.57 | pfn | unless 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.15 | pfn | logging.properties |
20:43.18 | Sembiance | pfn: I'm building something new here, so I'm more than willing to use whatever I should be using now-a-days :) |
20:44.02 | pfn | jdk logging then |
20:44.17 | pfn | unless you're a fan of introducing unnecessary dependencies |
20:44.26 | Sembiance | pfn: this one? pfn: http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/ |
20:45.06 | pfn | yes |
20:45.19 | Sembiance | wow, that's 5+ years old |
20:45.27 | Sembiance | why do so many people still use log4j? |
20:45.47 | Sembiance | and why does tomcat use commons-logging instead of the built in jdk logging? |
20:46.23 | Sembiance | pfn: by the way, thank you very much for your help. I appreciate it :) |
20:49.21 | pfn | some people think log4j is more "powerful" |
20:49.27 | pfn | or that jdk logging is just a silly "copycat" |
20:49.34 | pfn | or they think that they *do* need to support jdk 1.3 |
20:49.45 | pfn | tomcat uses commons-logging for such legacy |
20:51.58 | Sembiance | ahhh |
20:52.04 | Sembiance | well thank you very much for your help :) |
21:00.45 | pfn | you're welcome |
21:08.18 | ralfWORK | does 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.18 | flehm | Hello everyone |
21:50.39 | *** join/#tomcat DspaceN00b (n=matt@ip24-255-175-117.ks.ks.cox.net) |
21:53.13 | Sembiance | hello 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) |