IRC log for #tomcat on 20080908

00:08.39*** join/#tomcat tryte (n=zaimmer@149.152.132.12)
00:36.19*** join/#tomcat roadt (n=roadt@61.191.27.34)
01:06.06*** join/#tomcat mithraic` (n=mithraic@dyn-209-2-234-134.dyn.columbia.edu)
01:09.29*** join/#tomcat kanai (n=kanai@124.32.114.226)
01:18.55*** join/#tomcat ibot (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
01:18.55*** topic/#tomcat is Topic for #tomcat is: Stable versions: 6.0.18, 5.5.26 and 4.1.37. Newbies use the official binary from tomcat.apache.org, or an RPM package from http://www.webdroid.org/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...
01:24.49*** join/#tomcat saiful (n=chatzill@202.79.193.50)
01:46.00*** join/#tomcat mithraic (n=mithraic@dyn-209-2-234-134.dyn.columbia.edu)
01:50.22*** join/#tomcat mithraic`_ (n=mithraic@dyn-209-2-234-134.dyn.columbia.edu)
01:53.58*** join/#tomcat mithraic` (n=mithraic@dyn-209-2-234-134.dyn.columbia.edu)
01:55.09*** join/#tomcat mithraic`__ (n=mithraic@dyn-209-2-234-134.dyn.columbia.edu)
02:00.01*** join/#tomcat mithraic`___ (n=mithraic@dyn-209-2-234-134.dyn.columbia.edu)
02:02.10*** join/#tomcat mithraic`____ (n=mithraic@dyn-209-2-234-134.dyn.columbia.edu)
02:25.58*** join/#tomcat mithraic (n=mithraic@dyn-160-39-19-246.dyn.columbia.edu)
02:51.17*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
03:00.25*** join/#tomcat kanai (n=kanai@124.32.114.226)
03:20.15*** join/#tomcat mithraic` (n=mithraic@dyn-160-39-19-165.dyn.columbia.edu)
03:21.29*** join/#tomcat acidjnk (i=acid@pD9509C18.dip0.t-ipconnect.de)
03:38.30*** join/#tomcat albert_kam (n=albert@125.160.174.102)
04:11.18*** join/#tomcat shital12 (n=shital@121.243.177.213)
04:56.23*** join/#tomcat shashi_ (n=shashi@125.16.213.2)
04:57.38*** join/#tomcat magentar (n=magentar@ip-81-210-151-106.hsi.iesy.net)
05:18.36*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
06:01.23*** join/#tomcat jfclere (n=jfclere@57.79.66.141)
06:10.30*** join/#tomcat ghostwalker (n=rhonabwy@dslb-084-057-034-121.pools.arcor-ip.net)
06:19.18karstensrage_altwhere does tomcat set the path to ?
06:19.43karstensrage_altfor instance if the servlet does FileOutputStream("test.txt") where is that going to be?
06:22.23*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
06:23.12karstensrage_altjasonb
06:23.50jasonbhi karstensrage.
06:24.01karstensragehi
06:24.05karstensragewere does tomcat set the path to?
06:24.15karstensrage<PROTECTED>
06:24.40karstensrageis running 'find / ' at the moment
06:24.46jasonbThat's a relative path.  In Java, it's relative to the JVM process's current working directory.
06:27.03karstensragehmm
06:27.04jasonbI believe Tomcat sets the current working directory to the JVM user's home directory.
06:27.21karstensragefind didnt find it
06:27.38jasonbFor example, if the JVM is running as user "tomcat", and that user's home directory is "/opt/tomcat/temp", then the current working directory of the JVM gets set to /opt/tomcat/temp.
06:28.10karstensragehmm
06:28.17karstensragei think i want the webapp direcotry
06:28.26karstensrageservletConfig must have that
06:54.37karstensragethe servlet doesnt seem to be able to write a file
07:10.45karstensragei must be tired
07:10.56jasonbIt might be a permissions problem.
07:11.11jasonbThe Tomcat JVM user must have write permissions to the dir where it tries to write it.
07:11.28jasonbBut, yes, you're probably tired.  :)
07:16.51*** join/#tomcat mesut (n=power@tuxhacker/mesut)
07:19.45*** join/#tomcat kjkoster5489 (n=kjkoster@233-250-103-145.cust.glaslokaal.nl)
08:30.44*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-1b3f91b868a9097e)
10:02.36*** join/#tomcat yassine (n=yassine@p54BB5069.dip.t-dialin.net)
10:03.42*** join/#tomcat magentar_ (n=magentar@ip-81-210-151-106.hsi.iesy.net)
10:04.34*** join/#tomcat KimHansen (n=kim@0404ds1-by.0.fullrate.dk)
10:08.39KimHansenWhen I undeploy my war tomcat (5.5) keeps the connections open to the database, is that because I am leaking connections ?
10:20.58kjkoster5489KimHansen: most likely.
10:21.30kjkoster5489You can use p6spy or hibernate's connection logging to track connection leaks.
10:23.01*** join/#tomcat internat1 (n=nf@123-243-184-161.static.tpgi.com.au)
10:39.00*** join/#tomcat BryanWB (n=hitman@202.63.242.211)
10:39.15*** part/#tomcat BryanWB (n=hitman@202.63.242.211)
10:43.21KimHansenI think Tomcat/DBCP keeps the connections open forever when they are idle, when I lower maxIdle to 0 all connections are closed immediately. Is it possible to get idle connections closed after 5 minutes ?
11:10.54*** join/#tomcat mithraic (n=mithraic@dyn-160-39-19-165.dyn.columbia.edu)
11:26.48kjkoster5489KimHansen: Ahh, so this is a Tomcat pool, not an application pool.
11:26.55kjkoster5489Sorry for my misunderstanding.
11:27.04kjkoster5489In that case I don't think you are leaking connections.
11:27.17kjkoster5489And you can still use p6spy to verify. :-)
12:25.39KimHansenkjkoster5489: ok, thanks
12:27.08KimHansenI expected minEvictableIdleTimeMillis="300000" would keep idle connections alive for some time, but it doesn't. Strange...
12:40.13*** join/#tomcat mithraic (n=mithraic@dyn-160-39-19-165.dyn.columbia.edu)
12:44.03kjkoster5489KimHansen: Most such settings are hints rather than actual configuration. Pools tend to have their own life.
12:52.15*** join/#tomcat power (n=power@tuxhacker/mesut)
13:08.26*** part/#tomcat yassine (n=yassine@unaffiliated/yassine)
13:29.45*** join/#tomcat bindaas (n=chatzill@59.94.97.204)
13:36.49*** join/#tomcat randrew (n=raj@dyn-128-59-53-165.dyn.columbia.edu)
13:37.38*** join/#tomcat mesutt (n=power@tuxhacker/mesut)
13:52.54*** join/#tomcat Bollinger (n=peter@88-105-241-230.dynamic.dsl.as9105.com)
14:40.58*** join/#tomcat [MrPresident] (n=Mrpresid@78.164.249.43)
14:42.34*** part/#tomcat jazmin (n=Mrpresid@78.164.249.43)
15:12.49*** join/#tomcat ibot (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
15:12.49*** topic/#tomcat is Topic for #tomcat is: Stable versions: 6.0.18, 5.5.26 and 4.1.37. Newbies use the official binary from tomcat.apache.org, or an RPM package from http://www.webdroid.org/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...
15:20.44*** join/#tomcat _druid_ (n=druid@host106-109-static.42-85-b.business.telecomitalia.it)
15:23.42_druid_hello all, OS:Linux 2.6 - Java 1.6.0 - Tomcat 5.5.26
15:24.28_druid_I need to use a directory placed outside my webapps
15:26.28_druid_I have placed in Catalina/localhost a file named test.xml with the directive path="/test" and baseDoc="/home/files"
15:27.04_druid_but Tomcat require the /webapps/test directory to start correctly
15:27.38_druid_...
15:28.19_druid_I want to upload/download files from my application using a folder not in webapps
15:56.26*** part/#tomcat _druid_ (n=druid@host106-109-static.42-85-b.business.telecomitalia.it)
16:14.45*** join/#tomcat n2o_2k44 (i=0c6e6887@gateway/web/ajax/mibbit.com/x-182b453f9ccb66b6)
16:16.16*** join/#tomcat Levia (n=Levia@unaffiliated/levia)
16:17.41LeviaI'm using Tomcat 6.0.18 with latest Apache and Java SE 6. I have a problem with the mod_jk configuration, apparently. When I got to mywebhost.com/manager/ nothing happens, it gives a normal error page (404 not found). It's not a tomcat error page though.
16:18.36n2o_2k44i think apache needs to forward /manager to tomcat
16:18.59n2o_2k44jkmount /manager/* jkworker, i think
16:19.35Levian2o_2k44: yeah, I have something like that. I used the automatic configuration utility.
16:20.10LeviaJkMount /manager/*.jsp  ajp13
16:20.14Leviaand a bunch of others of those
16:20.53*** join/#tomcat root (n=chatzill@59.96.58.81)
16:21.22*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
16:21.52*** join/#tomcat pfn (n=pfnguyen@hanhuy.com)
16:22.23n2o_2k44Levia, can't think of anything at the moment
16:23.42n2o_2k44using Tomcat 6.0.18, jdk1.6.0_07, rhel 5, i am trying to moved an application written for tomcat 5.0.25 to the latest version of tomcat, most of the pages works, except for pages in one subfolder
16:24.47n2o_2k44I keep on getting this error : The value for the useBean class attribute is invalid.
16:30.16*** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl)
16:36.12*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
17:00.23*** join/#tomcat jashaffner (n=joshua@70.88.226.61)
17:01.31*** join/#tomcat magentar_ (n=magentar@ip-81-210-151-106.hsi.iesy.net)
17:17.09*** join/#tomcat mesut (n=power@tuxhacker/mesut)
17:37.09*** join/#tomcat joshua___ (n=jashaffn@70.88.226.61)
17:44.34*** join/#tomcat karstensrage (n=chatzill@75-55-199-5.mobitv.com)
17:45.26*** join/#tomcat Navi` (n=Navi`@a82-95-218-113.adsl.xs4all.nl)
18:00.30*** join/#tomcat _druid_ (n=druid@host139-105-dynamic.5-87-r.retail.telecomitalia.it)
18:00.38joshua___is apache's mod_proxy THE right one to proxy requests to tomcat?
18:01.01joshua___apache 2.2/tomcat 5.5
18:06.18wltjrjoshua___: there is not right one, but that is the preferred one these days
18:07.26joshua___at least since apache 2.2?
18:08.39joshua___ah, yea, it was available since 2.2, ok, ty
18:09.26_druid_hello all, OS:Linux 2.6 - Java 1.6.0 - Tomcat 5.5.26
18:09.46_druid_I need to upload/download files from my application using a folder not in webapps
18:09.53LeviaI'm using Tomcat 6.0.18 with latest Apache and Java SE 6. I have a problem with the mod_jk configuration, apparently. When I got to mywebhost.com/manager/ nothing happens, it gives a normal error page (404 not found). It's not a tomcat error page though. How do I fix this? also, my own deployed servlet does not work..any ideas?
18:15.12joshua___Levia: can you paste the config?
18:15.37Leviajoshua___: mod_jk.conf? server.xml? or workers.properties?
18:16.02joshua___mod_jk
18:17.14Leviahttp://excessivedarkness.org/conf/mod_jk.conf
18:19.05joshua___what happens if you go to tomcat directly, not thru apach?
18:19.08joshua___apache*
18:19.33Leviait works fine
18:20.26joshua___anything from apache error log?
18:20.46Navi`or the mod_jk error log
18:20.54Levianope.
18:22.21joshua___the servername is showing "localhost", did you try http://localhost/manager?
18:22.42*** join/#tomcat _druid_ (n=druid@host139-105-dynamic.5-87-r.retail.telecomitalia.it)
18:22.54joshua___no error from mod_jk error log as well?
18:23.33Leviawell, the servername is what I think the problem is..but I havent been able to find soemthing that works yet. I cant do localhost..since it's on a server
18:23.54Leviajoshua___: no, only presumably un important warnings
18:24.33joshua___servername will have to be whatever your hostname is
18:26.35Leviajoshua___: ..okay..hold on
18:26.40Leviahostname is Schaapje.
18:26.42Leviaso I'll change it
18:29.14joshua___if you test against something like www.foo.com/manager then you put in www.foo.com
18:30.04joshua___if you test without www then put in without www (you can even put in two servernames - two lines)
18:31.00Leviachanging the hsotname didn't do anything
18:34.11joshua___reboot apache?
18:34.15Leviaalready did
18:34.39Leviahold on, trying something else
18:35.39joshua___look like the conf is auto generated by some tool?
18:35.48Leviayes, by Tomcat
18:35.56Leviait's not set back though
18:37.18joshua___how about changing JkLogLevel to at least confirm that mod_jk got a request
18:37.26joshua___might have to be a debug
18:37.30joshua___level debug*
18:37.38Leviawell, it is auto generated..it'll reset to emerg
18:38.15joshua___ah, i see..auto generated on every reboot?
18:38.19Leviayes
18:38.26LeviaI can override it though
18:38.50joshua___yea, need to see if mod_jk ever saw your request
18:38.56joshua___seen*
18:39.35Leviaokay
18:39.40Leviastarted it all again
18:40.19*** join/#tomcat bindaas (n=chatzill@59.94.97.102)
18:40.27Leviayep
18:40.33Leviait has seen the request
18:41.05joshua___okay, and has tomcat itself seen the request?
18:41.13*** join/#tomcat pucko (i=andreas@81-234-246-21-o933.tbon.telia.com)
18:41.31Leviahttp://rafb.net/p/BK5Zpe41.html
18:42.06Leviathere is nothing in catalina out
18:42.13Leviadon't know whwat the log level is set to, though
18:42.22joshua___ok, paste the worker properties
18:42.41Leviahttp://excessivedarkness.org/conf/workers.properties
18:42.45Leviahost is now Schaapje though
18:42.48Levia(my hostname)
18:47.23joshua___is server.xml using port 8009?
18:47.29LeviaAJp13 is
18:47.48joshua___paste?
18:50.46Leviaview-source:http://excessivedarkness.org/conf/server.xml
18:51.15Leviahttp://rafb.net/p/Qn9Yjs61.html
18:53.16joshua___is the error 404 coming from apache or tomcat?
18:53.45Leviaapache
18:53.52Leviait' sjust showing a browsers 404 error
18:54.01Leviahttp://excessivedarkness.org/manager/
18:54.15randrewLevia: what jkmount commands in httpd.conf?
18:54.24Leviarandrew: none, they are in mod_jk.conf
18:54.31randrewah
18:55.03randrewi see it
18:55.28*** join/#tomcat blacksheep1666 (n=chatzill@dsl-243-11-165.telkomadsl.co.za)
18:55.29randrewyou haven't mapped /manager/
18:56.07Leviayes I have?
18:56.17LeviaJkMount /manager/*.jsp  ajp13
18:56.19Leviaetcetera
18:56.22randrewtry something like /manager/list
18:56.54Leviait's auto generated
18:57.01Leviabut what do you mean with that list
18:57.37randrew/manager/*.jsp maps uris that match that pattern. /manager/ doesn't match that pattern.
18:57.56randrewif you request /manager/list that will match the mapped pattern /manager/list
18:58.03randrewmaybe. : )
18:58.19blacksheep1666I have a question
18:58.57Leviarandrew: /manager/sessionList.jsp doesn't work
18:59.08joshua___what about access log from tomcat, not the catalina.out, does it show a request coming in?
18:59.52Leviatomcat has no access log..right?
19:00.04blacksheep1666i wrote a small servlet, in web.xml i use the load-on-startup parameter to make it part of the startup. but now it wont run my updated code. its liek the old code is cahced somewhere
19:00.15joshua___see anything else than catalina.out in tomcat/logs?
19:00.24Leviano
19:00.58randrewLevia: ok. are you requestiong http://localhost/manager/sessionList.jsp ?
19:01.12Leviano, http://excessivedarkness.org/manager/sessionList.jsp
19:01.27blacksheep1666isnt it http://localhost/server/.... ?
19:02.01randrewIt looks like your mod_jk.conf is attempt to apply those JkMounts to a VirtualHost whose name is 'localhost'.
19:02.59joshua___blacksheep1666: i dont remember which subdirectory under tomcat but probably tomcat/tmp and/or tomcat/work may have cached stuff
19:02.59Leviawell..sorry..I changed localhost to my hostname
19:02.59Leviabut that didnt change anything
19:02.59Leviarandrew: maybe change it to *?
19:03.02Leviawhat is it normally set to/
19:03.23randrewLevia: that might make it easier to diagnose.
19:03.53joshua___yea, * will at least rule it out but levia did confirm that jk log picks up the request
19:04.05joshua___which means that localhost or whatever the name was set to, is okay
19:04.20randrewYou really need to understand the httpd.conf that is including the mod_jk.conf
19:04.41randrewmod_jk.conf is making some assumptions
19:05.49joshua___levia pasted this link to show that mod_jk did log  the request
19:05.50joshua___http://rafb.net/p/BK5Zpe41.html
19:06.07blacksheep1666joshua, if i totally clear the contents of these two directories is it safe?
19:06.36joshua___blacksheep: i dont remember which one off head without looking at the files under either folder
19:07.19blacksheep1666joshua: yeah you gopt the directories right. i am just wondering if its ok to clear the contents of these two directories.
19:07.29joshua___blacksheep: but did you at least edit a file (even just one more letter) to force tomcat to show the change
19:07.46randrewah
19:08.10blacksheep1666joshua, yes i did. i havent seen any changes since i use the load-on-startup paramater in web.xml
19:08.41blacksheep1666i even deleted the subdirectory in classes with the class files.
19:08.56blacksheep1666so its getting the files from some sort of cache.
19:09.48blacksheep1666unless i just make load-on-startup 0 again. or leave it out.
19:10.30joshua___the change of code is in .java or in .jsp?
19:10.43blacksheep1666java servlet
19:10.49blacksheep1666dont know jsp yet
19:11.47Leviajoshua___, randrew:
19:11.47Levianice
19:11.59Leviaatleast: http://alternatestorm.com/manager/sessionsList.jsp
19:12.03Leviait goes to tomcat now
19:12.34randrewYes. Now you can debug your jsp.  : P
19:12.44Leviabut it doesnt work hehe
19:12.55randrew(err, maybe it's someone elses jsp)
19:13.48Leviaoh sorry haha
19:13.58Leviaalternatestorm.com and excessivedarkness.org direct to the same ip
19:15.23joshua___blacksheep: i believe tomcat/work would have just the compiled jsp files
19:15.39blacksheep1666joshua, including servlets ?
19:15.45joshua___i dont think so
19:15.52blacksheep1666oh you man exlc the servlet ?
19:16.11blacksheep1666i do see some tld Cache files.
19:16.13joshua___but i have in the past clear out stuff in localhost under tomcat/work
19:16.17joshua___and it is safe
19:16.23joshua___it will be repopulated upon a reboot
19:16.25blacksheep1666mmm
19:16.32joshua___no harm in doing it
19:16.41blacksheep1666i guess not.
19:16.56joshua___well, repopulated upon requests
19:17.32blacksheep1666i seem to have broken it now, i took that load on startup parameter away and its showing me the middle finger
19:18.14Leviait doesnt serve html anymore and such :s
19:18.57joshua___lol
19:19.06*** part/#tomcat randrew (n=raj@dyn-128-59-53-165.dyn.columbia.edu)
19:19.18joshua___blacksheep: lol*
19:19.47joshua___blacksheep: broken how?
19:20.17joshua___levia: not even html even tho you get nullpointerexception from jsp file?
19:20.36Leviawell..for exmaple...examples/index.html gives 404 not found
19:20.40joshua___is it because of mapping to just *.jsp in vhost conf?
19:20.42Leviawhile it does exist in examples
19:20.56Leviajoshua___: and yes..every jsp gives nullpoitnerexception
19:21.25LeviaI just dont get it - the auto configured mod_jk should work flawlessly, right..?
19:22.04joshua___i would assume the same
19:22.15joshua___try JkMount /manager/*  ajp13
19:22.27joshua___instead of *.jsp in order to see .html files
19:23.23joshua___also, google on the debug message you got from http://rafb.net/p/BK5Zpe41.html
19:23.36joshua___like "Attempting to map URI"
19:25.19Leviathat JkMount line didnt do anything
19:26.02joshua___*.html perhaps?
19:29.13Leviawow!
19:29.51joshua___?
19:29.51Leviahttp://excessivedarkness.org/docs/
19:30.05LeviaI used JkAutoAlias {webapps dir}
19:30.18joshua___nice :)
19:30.25Leviathe manager still doesnt work though
19:30.32Leviabut I dont think I can just call that particular jsp
19:30.53blacksheep1666see you later peple
19:31.37joshua___yea, it most likely means that you are now troubleshooting the reason for nullpointerexception at this point instead of troubleshooting the mod_jk/vhost config
19:36.32Leviajoshua___: it's still not working perfectly though
19:36.52Leviabut Ill continue it later
19:36.55Leviathanks for all the hlep so far
19:37.06joshua___np, good luck
19:48.03*** part/#tomcat joshua___ (n=jashaffn@70.88.226.61)
20:16.16*** join/#tomcat balla (n=balla@adsl-ull-212-30.51-151.net24.it)
20:16.26*** part/#tomcat balla (n=balla@adsl-ull-212-30.51-151.net24.it)
21:21.56*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
21:44.11*** join/#tomcat mey (n=scott@75.148.86.113)
23:41.06*** join/#tomcat pfn (n=pfnguyen@hanhuy.com)
23:58.08*** join/#tomcat kanai (n=kanai@124.32.114.226)

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