IRC log for #tomcat on 20071102

00:12.22*** join/#tomcat twilight\ (n=ask@144.84-48-122.nextgentel.com)
00:22.57*** join/#tomcat wsmoak (n=wsmoak@apache/committer/wsmoak)
00:24.37*** join/#tomcat wsmoak_ (n=wsmoak@apache/committer/wsmoak)
00:46.48*** join/#tomcat _diLLec (n=dillec@dillec.biz)
01:39.10*** join/#tomcat ohsix (i=ohsix@bc111222.bendcable.com)
03:31.28*** join/#tomcat internat85 (n=nf@dsl-58-6-125-95.qld.westnet.com.au)
04:06.17*** join/#tomcat acidjnk (i=acid@p5B3EAC7B.dip0.t-ipconnect.de)
04:51.03*** join/#tomcat vinse_ (n=vinse_@c-67-164-65-172.hsd1.ca.comcast.net)
04:51.36*** part/#tomcat orlock (n=orlock@124.246.27.120.static.nexnet.net.au)
04:55.53*** join/#tomcat barrowkwan (n=barrowkw@adsl-70-137-155-20.dsl.snfc21.sbcglobal.net)
05:00.24*** join/#tomcat acidjnk (i=acid@p5B3EA444.dip0.t-ipconnect.de)
05:48.46*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
06:43.37*** part/#tomcat vinse (n=vinse_@208.253.223.146)
07:11.03*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-22-6.w83-114.abo.wanadoo.fr)
07:13.09*** join/#tomcat compair121 (i=compair1@gateway/tor/x-372b532568b5fc50)
07:32.38*** join/#tomcat compair121 (i=compair1@gateway/tor/x-505c8832317322f2)
07:53.42*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
08:05.11*** join/#tomcat dvayanu (n=another@ppp-62-245-161-137.dynamic.mnet-online.de)
08:36.24*** join/#tomcat Blissex2 (n=pcg@82-69-39-138.dsl.in-addr.zen.co.uk)
09:16.29*** join/#tomcat AlexWorX (n=alexworx@port-87-234-51-211.static.qsc.de)
09:32.11*** part/#tomcat s-ndh-c (n=michi@85.93.11.18)
10:11.02*** join/#tomcat _zz (n=zbigniew@62.77.170.186)
10:32.45jwishermm is there any empty jsp/tomcat framework?
11:24.03pucko?
11:29.43_zzFor some reason when i type in localhost on my browser, i automatically get redirected to port 8080 (my tomcat server). How can i remove this autoredirection?
11:31.21puckothat's prolly related to your OS/browser
11:34.06_zzpucko: i can't see how it could be the browser. i got a direct connection to the internet... hmmm
12:48.37*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
13:04.42*** join/#tomcat CapNemo (n=capnemo@gate.timeinc.com)
13:32.04*** part/#tomcat derekS (n=dereks@unaffiliated/dereks)
13:51.28*** join/#tomcat Nicke (i=niclasa@p189-n81.kthopen.kth.se)
14:22.00*** join/#tomcat Kungen (n=jonasd@ipsec.digitalroute.se)
14:22.07KungenHi there everyone
14:23.59puckohey
14:24.44puckohow's Kristoffer B?
14:25.18CapNemohey Kungen
14:45.15*** join/#tomcat wsmoak (n=wsmoak@apache/committer/wsmoak)
15:43.59*** join/#tomcat keith80403 (n=keith804@71-218-238-21.hlrn.qwest.net)
16:27.10*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
16:31.03*** join/#tomcat rrowell (n=richard@c-71-205-13-127.hsd1.mi.comcast.net)
16:42.49pfnjasonb, so, I got browser hiding working for firefox
16:42.59pfndoesn't quite work for IE yet (can't restore the window correctly)
16:53.10jasonbbrowser hiding?
16:53.23jasonbHow about browser seeking?  :)
16:53.45jasonbLike, you have a whole browser window that stays hidden and doing stuff in the background?
16:59.45pfnit just hides itself while the applet takes the screen capture
16:59.49pfntry it out if you still have the url
16:59.56pfnhttp://paste.hanhuy.com/screenshot/jasonb-test
17:00.13pfnhttp://paste.hanhuy.com/screenshot/jasonb-example
17:00.15pfnor was it that link
17:00.15pfnheh
17:01.38jasonbYeah, it works quite well.  The browser isn't hidden, it just gets pretty small.
17:01.46pfnyeah
17:01.56pfnjavascript offers no method of hiding the window
17:02.07jasonbYeah, and it probably shouldn't.
17:02.46jasonbhttp://paste.hanhuy.com/screenshot/jasonb-test;jsessionid=0033E4CC5F857364E7A6EC9E9B82A34C?saved=yes
17:02.54pfnwell, it'd be nice if it were able to bind to the minimize functionality of the window manager/shell
17:03.24jasonbIt would be nice if no web page was allowed to do that.
17:03.40pfnjasonb, well, you can disable it in firefox
17:03.48pfnI hate web pages that resize my window
17:03.53jasonbYeah, well, it should be disabled by default.
17:04.48jasonbAnyway, great work!
17:04.55jasonbIt seems useful.
17:29.35*** join/#tomcat barnum (i=pt@disgruntled.sysadmins.com)
17:30.25*** join/#tomcat gregor_k (n=a@p54A1A239.dip0.t-ipconnect.de)
17:47.40*** join/#tomcat dan__t (i=dan@neener.neener.org)
17:47.53dan__t'Morning, guys.  How are you all?
17:51.11jasonbWe're all smurfy.
17:52.38dan__tFantastic.
17:55.35dan__tOk, so, let's see if I can do this right... Tomcat 5.5.23-0jpp.3.0.2, Java 1.4.2 (gcj), CentOS5 (linux 2.6.18*)
17:55.55dan__tIs jrun known as a "connector"?
17:57.15jasonbNope.
17:57.56dan__tOk, what is it known as?
17:58.44dan__tJust trying to see how it all ties together heh.
17:59.47jasonbjrun?  Like, the commercial software package?
18:00.14dan__tI'm looking at the AddType directive in Apache for .jsp and friends.
18:00.29dan__tThe handler is known as jrun-handler, so I'm just going from that.
18:00.50jasonboh.  Well, I don't know about the jrun handler.  Do you have a URL for that?
18:03.33dan__t<PROTECTED>
18:03.43dan__tI suppose I can find the spec for jrun-handler and see what it references
18:04.01dan__tI thought it simply passed the request on to a local (or whichever) Tomcat instance.
18:09.08dan__tThe request comes in, AddType catches the request being .jsp, and passes it to jrun-handler - then what.
18:09.12dan__tI guess that's what I'm confused at.
18:14.04jasonbGenerally, the answer is "use mod_proxy if you really have to use Apache httpd at all".
18:15.44dan__tOh, that bad huh?
18:15.52jasonbyup.
18:15.59dan__tWow.
18:16.44dan__tSo web requests are proxied, or jsp and friends are proxied?
18:17.11jasonbweb requests.
18:17.18dan__tok.
18:17.26jasonbThat is.. when you use Apache httpd as your front-end web server.
18:17.27dan__tThat kind of turns my plans completely upside down then.
18:17.50jasonbDo you have to use httpd?
18:17.55jasonb(if so, why?)
18:18.09dan__tActually...................
18:18.15dan__tLet me think about that.
18:18.39dan__tok, so, traditionally, jsp and friends are served from tomcat alone, without the integration of httpd by any means?
18:18.54jasonbWell, today it is much better that way.
18:19.07jasonbI don't know how to answer your question with the word "traditionally" in there.
18:19.16dan__tSure, np.
18:19.17jasonb(complicates it a bit)
18:19.34dan__tI'm trying to relate it to something I already know, like how PHP works and is parsed by httpd.
18:19.47dan__tBut in this case... it's not.
18:20.25jasonbExactly.
18:20.38dan__tOk.
18:20.54jasonbYou *can* proxy the requests through httpd, but it slows things down significantly, and complicates the configuration quite a bit.
18:20.59dan__tSo it's generally bad practice to mix and match a .jsp page with some .php page along the lines, right?
18:21.02dan__tSure.
18:23.34jasonbdan__t: It is okay to mix php and jsp within one web site, but it is not okay to put the JSP files mixed into the same directory with the php files.
18:24.05dan__tOk.
18:24.22jasonbAbout the performance issues with proxying requests through httpd connectors to Tomcat, see my benchmarks here: http://www.oreilly.com/catalog/9780596101060/chapter/index.html
18:25.02dan__tLooking right now, thank you.
18:25.08jasonbYou're welcome.
18:25.18dan__tThe more I think about this, the more comfortable I'm feeling with jsp being split from everything else.
18:25.32dan__tI say that because the stuff written in jsp is the actual "workhorse" to generate content for the front-end.
18:25.45dan__tAnd there will be a middle tier database where things will be stored
18:25.57dan__tSo perhaps making the split between the two "sides", if you will, is for the better anyway.
18:27.15dan__tOn a side note, thanks for your contribution to the O'Reilly family.  I'm an avid collector of their books heh.
18:27.24dan__tI think yours will be purchased today.
18:28.48jasonbYou're quite welcome.  
18:29.06dan__tYou and your co-pilot see a cut of that, right?
18:29.20jasonbI'm a collector of their books, and more recently an author.  I've read them since as far back as 1994.
18:29.30jasonbYes.  :)
18:29.34dan__tGood heh.
18:29.46dan__tJust saw your name in the book... must be pretty cool haha.
18:29.54dan__t1994.... that would have made me 9.
18:30.03dan__tuh, 11.  Ignore me.
18:30.05jasonbIt's a huge, huge amount of work, and I'm glad to be done with the second edition now.
18:30.10dan__tI bet
18:30.12jasonbBut, otherwise, yes, it's pretty cool.
18:31.22*** join/#tomcat Nicke (n=niclasa@p23.kthopen.kth.se)
18:31.35jasonbAs for JSP being a workhorse, yes, it is great for doing webapps..  and whether your focus is on PHP or JSP, that may determine which web server you use for your first contact web server.  But, Apache httpd isn't very good at proxying requests for Tomcat.  It slows down Tomcat's responses significantly, as the graphs in my benchmarks show.
18:36.43dan__tWord.
18:37.32dan__tI love working from home.
18:37.41dan__tI can rock out so hard when no one else is in the apartment building.
18:37.42jasonbheh!
18:38.09jasonbWhich music is good Tomcat development music?  :)
18:38.16dan__tRight now?  Toadies.
18:38.28dan__tMight throw on some BB King or Stevie Ray Vaughn or some Stones later.
18:38.47dan__tVaughan, too  ;)
18:40.28dan__tOk.  So go with Tomcat's internalwebserver.
18:41.04jasonbYes, I'd highly suggest it.
18:41.59dan__tNoted.
18:46.14dan__tI'm going to order a pizza, you want one?
18:46.45jasonbSounds great.  We need a pizza transfer protocol for that though.
18:46.50dan__tSore do.
18:46.53dan__tSure, rather.
18:46.57dan__tWhere are you located?
18:47.07jasonbpttp://over.here/
18:47.14dan__thahaha
18:47.17jasonbDublin, California, USA.
18:47.19jasonbAnd you?
18:47.25dan__tChandler, AZ
18:47.35jasonbahh, I used to live in Tempe and Scottsdale.
18:48.14jasonbAz was fun.. and I'm a bit too cold here.
18:48.22*** join/#tomcat etaylor (n=chatzill@209.10.69.157)
18:50.22dan__tI sometimes work in Tempe, right down the street from Campus.
18:50.35dan__tWarm summer days in Tempe near Campus are what keeps me here, if you know what I mean.
18:51.13pfnwarm?
18:51.15pfnsummer?
18:51.22pfnarizona?  hah
18:51.34pfnmore like arid desert summer days  :)
18:51.42dan__tGirls.  College campus.  Enough said.
18:51.50pfnindeed
18:53.58dan__tI'd really like to find out what modified httpd.conf.
18:54.13dan__tThen stab the packager for not making a conf.d/* file?
19:19.24*** part/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
19:27.35*** join/#tomcat l0ngbeach (n=mike@AFontenayssB-152-1-44-183.w83-114.abo.wanadoo.fr)
19:29.35*** join/#tomcat CapNemo (n=capnemo@gate.timeinc.com)
19:31.37dan__tCool, my dev said that would work well.
19:32.18*** join/#tomcat acidjnk (i=acid@p5B3EA444.dip0.t-ipconnect.de)
19:35.00*** part/#tomcat CharlieSu (n=charlie@pool-71-114-232-73.austtx.dsl-w.verizon.net)
19:35.57*** join/#tomcat CharlieSu (n=charlie@pool-71-114-232-73.austtx.dsl-w.verizon.net)
19:46.48dan__tjasonb, thanks again for the help.  I really do appreciate it.
20:06.07*** join/#tomcat a4akb (n=a4akb@62.215.156.215)
20:06.15a4akbHiall
20:06.17a4akbHi jasonb
20:07.38dan__t'afternoon.
20:35.38*** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu)
21:03.10*** join/#tomcat rizenine (n=rizenine@pool-70-106-219-128.chi.dsl-w.verizon.net)
21:21.10*** join/#tomcat wsmoak (n=wsmoak@apache/committer/wsmoak)
21:29.38*** join/#tomcat donny (n=donny@pool-68-162-186-113.pitt.east.verizon.net)
21:30.00donnythis a good place to ask about ant?
21:33.01dvayanuno
21:33.06dvayanubut you can ask nevertheless
21:34.54dan__theh
21:37.59donnyit's okay, it was esaier than i thought to find out what i wanted in the manual
21:38.14donnyin fact judging by the makefile, i'd say i now know more about ant than my predecessor did ;)
21:38.48donnybut on to other questions...
21:38.48donnycan i tell ant to just drop my app war into the webapps directory and expect tomcat to update from it?
21:40.43*** join/#tomcat Max_- (n=max@modemcable194.96-130-66.mc.videotron.ca)
21:40.47dvayanuyes
21:41.29donnyhmm... well maybe something else went wrong then
21:41.38*** join/#tomcat largos (n=rcreswic@dsl081-014-025.sea1.dsl.speakeasy.net)
21:42.19largoswhat is the best way to gracefully shutdown a given servlet it tomcat?
21:42.54donnyhmm
21:42.59largos(in tomcat 5.5.25)
21:43.13largoson Gentoo, and with java 1.5
21:43.23donnydvayanu: until i restarted tomcat, everything was 404 :(
21:43.39donnylargos: isn't there a manager webapp for tomcat that can do that for you?
21:44.02largosdonny: I really don't know
21:44.12donnylargos: well it's usually at host:8080/manager/html
21:44.20donnylargos: but you can probably just use /manager
21:44.27donnylargos: (and :8080 obv)
21:45.44dvayanudonny: have you started tomcat with war or with unpacked war?
21:46.21donnydvayanu: i believe when it was started the war was unpacked, but i deleted that because i wnated to try deploying via war only
21:46.34largosdonny: thanks -- it looks like the problems I'm having are infecting all of tomcat, and not just the webapp in question
21:46.35donnydvayanu: oh, it seems to unzip the war on its own
21:46.46donnylargos: :(
21:46.47largosso I'll have to leave the graceful approach for next time....
21:49.28donnydvayanu: well it seems to be working now. was it because i began with my webapp deployed in folder-form, and then tried deploying via war?
21:50.59dvayanuyeah
21:51.07dvayanuexactly
21:52.06Max_-any way to know the tomcat version?!
21:52.08Max_-im using
21:52.32donnydoe sanyone have any advice for profiling tomcat webapps?
21:52.54donnyMax_-: you could try looking at host:8080/manager/html
21:53.11donnyMax_-: located at the bottom-left corner
21:53.59Max_-nothing there!
21:54.10donnyMax_-: :(
21:54.17donnyMax_-: did you get an error?
21:54.25Max_-no! :(
21:54.31Max_-Just installed it from aptitude on debian etch
21:54.47Max_-tried what a tutorial told me... I just changed an html for a jsp.. it worked
21:54.56donnyMax_-: well then *i* can tell you your tomcat version
21:55.04Max_-they I tried to do the <%= new java.util.Date() %> thing and it didn't change
21:55.23donny<PROTECTED>
21:55.28Max_-yup
21:55.37donnyMax_-: fyi, java.util.Date is deprecated
21:55.45Max_-but the channel asks for the 3 numbers so I was searching for it :P
21:55.53Max_-what should I try instead?
21:55.57donnyaah, heh
21:56.16largosMax_-: Calendar,  I think
21:56.27Max_-new java.util.Calendar() !?
21:56.49largosI think there is an explanation linked from the java.util.Date API docs
21:57.04Max_-humm ok..
21:57.13donnyMax_-: seems to be 5.5.20
21:57.19donnyMax_-: for the 5.5 version obviously
21:57.19Max_-so there's no longer a simple class that gives the date?!
21:57.24Max_-donny : okay !
21:57.26Max_-thanks
21:57.46donnyMax_-: there probably is, i actually don't know what is being recommended over java.util.Date(), i only noticed that Tomcat reminds me every now and then
21:57.58donnyMax_-: (i'm not really into java that much)
21:58.16Max_-oh okay,, im searching
21:58.16largosas of java 1.5, I think the actual class isn't deprecated, but most of it's methods are
21:58.29largosI haven't really used 1.6, so I don't know about it.
22:07.23*** part/#tomcat CapNemo (n=capnemo@gate.timeinc.com)
22:11.42largoshm.. what username / password would I use to get to the tomcat webadmin servlet?
22:13.40largosah.. found the howto :)
22:19.46Max_-<%= "allo" %>   should this print  allo  ?
22:22.15Max_-looks like it just doesn't work
22:23.36Max_-tried The time is now <% out.println("bleh"); %> and it just did nothing...
22:26.52*** join/#tomcat twilight\ (n=ask@144.84-48-122.nextgentel.com)
22:27.54largosis removing a war from the webapps dir a valid way to shutdown a web app?
22:28.09largos(I don't have access to the tomcat manager)
22:28.22pfnmaybe, try it
22:28.29pfnI wouldn't count on it, though
22:28.38*** join/#tomcat donny (n=donny@64.190.42.246)
22:29.01donnyhi, what is the tomcat method to write data to the response? (as opposed to inlining literal strings between %> and %<)
22:29.01Max_-any suggestion to know what's wrong?!
22:29.21pfnusing <% %> is bad practice...
22:29.30pfnfor jsp
22:30.38donnypfn, you mean.. people often overuse it? or using it at all is considered bad practice?
22:30.43*** part/#tomcat donny (n=donny@64.190.42.246)
22:30.45*** join/#tomcat donny (n=donny@64.190.42.246)
22:30.46donnydamnit
22:31.02pfnit's generally bad practice for a webapp of any respectable size
22:31.26pfnfor a one-off page or two, it might be ok
22:31.32donnypfn, yeah i really don't have much experience with tomcat, but the app i've been dropped into is pretty horrid even from my humble experience
22:31.52donnypfn, anyhow, what method do i use? what object do i have to use to write to the response directly?
22:32.19pfnfrom what?
22:32.49donnypfn, well i suppose this is a JSP file, but in general, programming with servlets, i can't remember the object you write your response to
22:32.54donnypfn, it's been a while since i've used tomcat
22:33.05pfnthis applies to all servlet containers, not just tomcat
22:33.17pfnif you're in a servlet, you use response.getOutputStream/getWriter
22:33.25pfnbut you should generally never write html from there
22:33.45pfngenerally-accepted practice is to use a servlet, set request attributes, and forward to a jsp for *display*
22:34.02pfnor use a framework that does something similar
22:34.06donnypfn, ahhh, that makes so much more sense to me than what my predecessor here has done
22:34.16donnypfn, i'm very used to doing processing with python and then using XSLT to format my repsonse :)
22:34.39pfnxslt templates are nuts, too
22:34.54donnypfn, well.. it's appropriate for some things
22:34.59pfnit's only "nice" if your python application doesn't know it's generating xml
22:35.05pfnor if your data is natively xml
22:35.26pfnotherwise, I would choose a different templating language
22:35.29donnypfn, the data i used to work with was encapsulated in objects supplied by an external library that serialized to XML
22:35.41donnypfn, my preferred templating language for personal projects is the one bundled with Django
22:37.07*** part/#tomcat largos (n=rcreswic@dsl081-014-025.sea1.dsl.speakeasy.net)
22:37.24pfnI haven't use django, wouldn't know it
22:37.30donnypfn, hey you seem like a good person to ask: what do tomcat developers use for profiling?
22:37.37pfnI've tried out clearsilver with python, that sucks
22:37.49pfnI don't know, I don't profile my webapps much, outside of a basic aop logger
22:38.17pfnI imagine people would profile inside of netbeans or eclipse
22:38.23pfnor use the various profilers out there
22:38.25pfnyourkit, etc.
22:38.28donnywell this code is _so slow_
22:38.31donnyit's unimagineable
22:38.43donnymy boss has been telling me sometimes the pages just dont' work
22:38.50donnyi only realized today that that meant the http requests were timing out
22:40.16donnyalrihgt, time to log out
22:40.18donnythanks for the help pfn
23:10.27*** join/#tomcat twilight\ (n=ask@144.84-48-122.nextgentel.com)

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