irclog2html for #tomcat on 20060409

00:19.32UvizAnyone?
00:25.33*** join/#tomcat [a]tomi (n=atomi@pool-71-104-33-213.lsanca.dsl-w.verizon.net)
00:44.18*** join/#tomcat GhettoJava (n=Freemani@c-68-55-101-112.hsd1.md.comcast.net)
00:52.31*** join/#tomcat yassine (n=yassine@xdsl-87-78-112-214.netcologne.de)
00:59.01*** join/#tomcat _m0O (n=m0@137.122.200.87)
01:07.37*** join/#tomcat cfrank (n=cfrank@c-67-181-18-236.hsd1.ca.comcast.net)
01:16.13cfrankcluster???
01:32.12jasonbcfrank: problem?
01:33.46UvizSo does anyone know an answer to my question?
01:34.23*** join/#tomcat yel (n=yassine@xdsl-84-44-152-136.netcologne.de)
01:34.34jasonbUviz: Which exact version of Tomcat?
01:34.47Uviz5.5.15 or .16 if I am not wrong.
01:38.52jasonbUviz: Don't use DefaultContext.  Just use Context.
01:39.13UvizI did in no vein.
01:39.24UvizActually, I've both of them in my server.xml.
01:39.29UvizLet me remove DefaultContext.
01:40.10*** join/#tomcat yel (n=yassine@xdsl-84-44-179-110.netcologne.de)
01:41.41UvizNope, same result.
01:41.48UvizI get HTTP 404.
01:42.14jasonbDid you restart Tomcat?
01:42.33UvizYes, shutdown and then restart Tomcat & Apache webserver.
01:42.58jasonbYou hadn't mentioned that you're also attempting to use Apache httpd with it.
01:43.21jasonbPut your server.xml and web.xml on a paste server so we can see how you have this configured.
01:43.22UvizOh, my apologies.
01:44.03UvizWhen you say web.xml, are you refering to webapps' web.xml or /conf/web.xml?
01:44.44jasonbWell, both if you edited both.
01:45.01jasonbIf you didn't edit conf/web.xml at all, then don't show it to us.
01:50.06Uvizhttp://papernapkin.org/pastebin/app/view/286
02:53.51*** join/#tomcat yassine (n=yassine@xdsl-84-44-179-110.netcologne.de)
02:59.48*** join/#tomcat yassine (n=yassine@xdsl-84-44-179-110.netcologne.de)
03:42.03*** join/#tomcat yassine (n=yassine@xdsl-84-44-179-110.netcologne.de) [NETSPLIT VICTIM]
03:42.03*** join/#tomcat GhettoJava (n=Freemani@c-68-55-101-112.hsd1.md.comcast.net) [NETSPLIT VICTIM]
03:42.03*** join/#tomcat Surgat (n=Luciferi@pc-4-37-104-200.cm.vtr.net) [NETSPLIT VICTIM]
03:42.03*** join/#tomcat Pir8 (i=pir8@de.crypted.ca) [NETSPLIT VICTIM]
03:42.03*** join/#tomcat minerale (n=minerale@myrna.cc.gatech.edu) [NETSPLIT VICTIM]
03:42.03*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au) [NETSPLIT VICTIM]
03:42.03*** join/#tomcat dreivier (n=dreivier@port-212-202-171-57.dynamic.qsc.de) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat mlh (n=mlh@c211-30-62-11.belrs1.nsw.optusnet.com.au) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat vinse_ (n=vinse_@208.253.223.146) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat valmont (n=chrishol@pdpc/supporter/silver/valmont) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat don2 (i=sophisti@c-66-30-11-112.hsd1.ma.comcast.net) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat profpoke (n=profo@66.210.75.167) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat bugfixer (n=bugfixer@42gis175.gulftel.com) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat pusling (i=pusling@195.215.29.124) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat katerX (n=marco@wotan.wpp-service.de) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat map7 (n=map7@teksup41.lnk.telstra.net) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat k-y (i=kevin@yoyo.yikes.com) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat Jara[zZ] (n=rimaraj@62.123.204.106) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat nihi|ist (i=nihilist@72.20.3.102) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat orlock (i=[gZsMlMC@202-44-174-4.nexnet.net.au)
03:42.04*** join/#tomcat mocker (n=ks@in.kansas.but.not.a.republi.cn)
03:42.04*** join/#tomcat swente (i=q5wg7DES@hal.infinitumb.de) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat Magistus (i=magistus@alfredos.multi.fi) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat devastor (i=devastor@nepnet.fi) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat teite (i=shu@sun-shu.ision.net) [NETSPLIT VICTIM]
03:42.04*** join/#tomcat cyc (n=cyc@213.253.105.24) [NETSPLIT VICTIM]
03:58.12*** part/#tomcat jsisson (n=sissonj@59.167.30.6)
04:04.08jasonbUviz: Part of your problem is likely to be that you wrote a new server.xml file.  This seems like a good idea, but in the end it causes lots of problems, so I suggest you start over with a stock server.xml file and only edit what you absolutely must in order to get your webapp working.
04:04.08*** join/#tomcat jsisson (n=sissonj@59.167.30.6)
06:13.58*** join/#tomcat [a]tomi (n=atomi@pool-71-104-33-213.lsanca.dsl-w.verizon.net)
07:13.36*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
08:22.15*** join/#tomcat putzel (n=burps@148-202-221-213-pool.cable.lan.ch)
11:40.57*** join/#tomcat [a]tomi (n=atomi@pool-71-104-33-213.lsanca.dsl-w.verizon.net)
14:24.13*** join/#tomcat cfrank (n=cfrank@c-67-181-18-236.hsd1.ca.comcast.net)
14:26.34*** join/#tomcat igorzolnikov (n=igorzoln@217.172.22.211)
14:26.39igorzolnikovhi!
14:26.49igorzolnikovhow know struts?
14:26.58igorzolnikovplz help me...
14:27.57igorzolnikov...
14:28.55igorzolnikovwho know struts?
14:32.10igorzolnikovwho can help me...
14:38.54*** join/#tomcat mlh_ (n=mlh@c211-30-62-11.belrs1.nsw.optusnet.com.au)
14:39.42cfrankigorzolnikov: Don't know.  It times it takes a while to get any answer here
14:41.17cfrankigorzolnikov: I've been tryong for a month to cluster 2 tomcat machines and have them share the sessions.  No luck. No answere here...
14:43.55*** join/#tomcat mlh__ (n=mlh@c211-30-62-11.belrs1.nsw.optusnet.com.au)
15:24.24UvizI really do not like Tomcat's documentations. Nothing seems to be working to explained throughly.
15:25.46UvizWhy is it when I take out <Context> out of my <Host> in conf/server.xml to conf/{enginename}/{hostname}/context.xml, my servlet throws a blank page?
15:26.02UvizBut if I keep it in conf/server.xml, it works just fine!
15:26.56UvizAs a matter of fact, the documentation ( http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#A%20word%20on%20Contexts ) says that location is where the context descriptor must go.
15:43.58jasonbUviz: The docs are subtly wrong..  the Tomcat committers aren't focused on writing good, air-tight docs.
15:44.27jasonbUviz: Writing good docs is a task left to us book authors.  :)
15:49.22Fracturehi jasonb
15:52.29jasonbHi Fracture.
15:57.51*** join/#tomcat a4akb (i=a4akb@ask13-28.qualitynet.net)
16:07.32*** join/#tomcat cfrank (n=cfrank@c-67-181-18-236.hsd1.ca.comcast.net)
16:18.09*** join/#tomcat themoves (n=themoves@82-39-205-193.stb.ubr03.newy.blueyonder.co.uk)
16:33.36*** join/#tomcat a4akb (i=a4akb@ask13-14.qualitynet.net)
16:35.56a4akbhmmm
16:52.32Uvizjasonb, Oh wait, so you are saying that particular page has some anomaly?
16:53.19UvizWhere can I find about an actual specifications regarding server.xml or web.xml for Tomcat?
17:21.41*** part/#tomcat igorzolnikov (n=igorzoln@217.172.22.211)
17:22.51*** join/#tomcat thor (n=thor@host81-149-171-62.in-addr.btopenworld.com)
17:24.45thorHi all, Ive just changed my apache configuration with the jk mod so that it can hook into tomcat.  It works and I can access index.jsp but the images don't load.  Any ideas anyone?
17:53.10*** join/#tomcat NorthDragon (n=IzhikovN@213.251.192.42)
17:54.12*** part/#tomcat NorthDragon (n=IzhikovN@213.251.192.42)
19:15.31*** join/#tomcat jasonb_ (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
19:16.31jasonbUviz: Yes, that particular page is just wrong enough to cause you problems.
19:17.32jasonbUviz: My suggestions: Just configure your context inside server.xml.  Do not use a context.xml fragment config file.  Even though the committers suggest using them, they don't work very well, and just putting your config in server.xml should work fine.
19:30.01[a]tomiit's really helpful to tail catalina.out -f
19:45.27jasonbYes.  Lots of good log info in there.
21:04.46*** join/#tomcat jsisson (n=sissonj@59.167.30.6)
22:18.17*** join/#tomcat jsisson (n=sissonj@218.185.73.243)
22:40.26*** join/#tomcat GhettoJava (n=Freemani@c-68-55-101-112.hsd1.md.comcast.net)
22:54.00*** join/#tomcat FreemaniaX (n=Freemani@c-68-55-101-112.hsd1.md.comcast.net)
23:03.07jasonbAnyone here happily using jsvc to start their Tomcat?  I'm mainly just curious how many people really use it.
23:08.05swentejasonb: here! i! me! count me! i count as 5, don't i? :-)
23:08.52swentejasonb: is it true that your next book will cover only jsvc?
23:15.06jasonbOther than swente.  :)
23:15.33jasonbswente: Hmm, only jsvc?  Well, it will also cover Tomcat.  :)
23:15.50swente;-)
23:15.55swentetomcat? who uses tomcat?!
23:17.08jasonbswente: I just wrote an email to the JSW mailing list asking about the port 80 feature.  We'll see what they say.
23:17.13swentejasonb: so you do recommend people to use iptables because you don't write that chapter?
23:17.16swente"JSW"?
23:17.23jasonbJava Service Wrapper
23:17.29swenteah
23:17.47jasonbswente: The text about jsvc for the book is nearly complete now, actually.
23:17.55jasonbswente: That's what I'm working on this weekend.
23:18.27jasonbThat example jsvc init script example in there really sucks.
23:18.51jasonb(that comes in Tomcat's jsvc.tar.gz)
23:20.41swentejasonb: what's so bad about it?
23:21.20jasonbswente: It's written to be specific to Jean Frederic Clere's development environment where everything is installed in a very wacky absolute path.
23:21.41swenteCATALINA_HOME=/home1/jakarta/jakarta-tomcat-4.1/build
23:21.42swenteoh ic
23:21.45jasonbheh
23:21.56jasonbWhat a mess.
23:22.10swentehmm .. i thought it'd be just an "example", i didn't worry about that
23:22.18jasonbWhat should I tell readers of the book?  Don't use it?  Write my own?  Don't show them an example of that at all?
23:22.21swentebut - from a book-authors view it's terrible i assume *g*
23:22.31jasonbyup.
23:22.50jasonbI've been kneeding my brain about it since yesterday.
23:23.09swentein a boo, i'd expect it like "CATALINA_HOME=</your/path/to/catalina>"
23:23.16swente+k
23:23.46jasonbwell, it *could* be something like CATALINA_HOME="`which java`"
23:23.51jasonboops..
23:23.57jasonbJAVA_HOME I mean
23:24.17jasonbCATALINA_HOME isn't easy to find programmatically.
23:24.29swentei would not even attempt that
23:24.53swenteand `which java` might be errorprone as tomcat is vm-version-dependant
23:25.03jasonbThe problem with finding JAVA_HOME programmatically is that there could be lots of JAVA_HOMEs.  :)
23:25.15swenteyes
23:25.30swenteand here and in #eclipse people often find out they mess with different vms
23:25.40jasonbBut, most linux ones are /usr/java/something if it's a Sun VM.
23:26.00jasonbAnd usually Tomcat is /var/tomcat5 (sadly)
23:26.18swente/usr/lib/j2sdk1.5-sun [debian]
23:26.27jasonbugh.
23:26.33jasonbDebian and Gentoo are just random.
23:26.37swente[make-javapackage]
23:26.46jasonbblah.
23:26.58Uvizjasonb, Are you an author?
23:27.07jasonbUviz: Who, me?  :)
23:27.13UvizYes.
23:27.24jasonbUviz: Well.. a bit.
23:27.41UvizWhat technologies do you write about?
23:27.53jasonbWell, publicly, Tomcat.
23:28.14jasonbBut, I write even more at work..  and right now it's not very much about Tomcat, but that will increase.
23:28.17UvizSo you are what we call an expert? :)
23:28.41jasonbMaybe on the subject of Tomcat..  but only because I've tinkered with it for too many years.
23:28.42swentehe's good in spelling 8-)
23:28.56jasonb:)
23:29.40jasonbI ain't no good at grammer..  And, I mispel lotsa stuff in thu book.  :)
23:29.55UvizI took your advise and added what had worked in my modified server.xml to a stock one but the problem of not being able to modify web.xml on a fly still persists.
23:30.15jasonbLast week I presented a 47 page paper that I wrote to a NASA review board.  :)
23:30.41jasonbUviz: Well, want me to look at your configs the way they are now?
23:31.39UvizIt's exactly the same as what I had posted last night except the <Host> is now part of the stock server.xml. Nothing else changed to be honest.
23:32.05jasonbUviz: Well, your context should have reloadable="true".  I don't know if you had that in there or not.
23:32.35UvizYes, <Context> and <DefaultContext>, both had reloadable="true".
23:32.44jasonbUviz: What version of Tomcat?
23:32.49UvizI tried each exclusively, no luck.
23:32.52Uviz5.5.15.
23:33.11jasonbUviz: You should not have a <DefaultContext> in there at all.  I don't know what happens if you do.. so you should remove that right away.
23:33.27jasonbUviz: You should have <Context>//
23:33.36jasonb(take the two slashes off the end.. :)
23:33.43UvizI can dump .class in WEB-INF/classes and run the servlet just fine w/o restarting Tomcat.
23:33.59UvizYes, I took DefaultContext out.
23:34.51jasonbOkay, so you want Tomcat to auto-restart just your webapp whenever you modify its web.xml file?
23:34.52UvizBut I can modify web.xml, for example changing url-mapping and point my browser to it.
23:35.06jasonbcan or can't?
23:35.19UvizI cannot.
23:35.54UvizThat is, if I modify web.xml, the changes wouldn't take effect until I restart the server.
23:35.58jasonbAdd this inside your <Context> container element.. (this new element):
23:36.00jasonb<WatchedResource>WEB-INF/web.xml</WatchedResource>
23:36.43UvizThat's in conf/context.xml actually.
23:36.43jasonbThen restart Tomcat.
23:37.08UvizDo I need to add it to server.xml's <Context> as well?
23:37.35jasonbIf you are configuring this in the context.xml file, then you shouldn't have a <Context> in server.xml.  It's one or the other.
23:37.47jasonbAnd, I suggest server.xml.
23:38.33UvizUh, I see. Ok, so how is context.xml being called?
23:38.45jasonbMagically.
23:38.49UvizHah.
23:39.05jasonbSo, you're better off configuring your context in server.xml.
23:42.28UvizOk, didn't work.
23:42.48UvizI changed the url-mapping of a servlet, the old one still works but not the new mapping.
23:43.49jasonbYou should be watching your logging to see if/when tomcat is restarting your webapp.
23:44.08jasonbBut, since it didn't work, you probably have something misconfigured.
23:44.39jasonbWhat files are in your conf/Catalina/localhost/ dir at this point?
23:44.48UvizPerhaps. What configurations (attribute) would tell Tomcat to restart my webapp?
23:45.18Uvizhost-manager.xml and manager.xml.
23:45.34jasonbreloadable="true" on the Context element, plus you may need that WatchedResource element inside <Context></Context>
23:45.48jasonbokay, those context xml fragment files are okay.
23:45.59jasonbNow, post your server.xml file on a paste server.
23:46.18Uvizjasonb, Actually I placed WatchedResource element inside <Context> of server.xml's <Host>.
23:46.33jasonbAlso, when you change your web.xml file, how are you doing that?
23:46.52jasonbUviz: Post your server.xml .. that's the only way we can be sure you configured it right.
23:47.48UvizOk, but to answer to your last question, I am just changing the url-pattern of let's say /servlet/myservlet or /servlet/mynewservlet.
23:48.24jasonbGreat.  What's the path to the web.xml file that you're modifying?
23:48.25UvizThen point my browser to the new URI see if the changes has been made which of course, don't.
23:49.10UvizThe path is webapps/vh/application/WEB-INF/web.xml
23:49.56UvizI've configured Apache server, jk_mod, and Tomcat to run my web applications on a virtual host (i.e. vh).
23:54.10jasonbUviz: Well, okay, so now I can't go any further without seeing your server.xml.
23:55.42Uvizhttp://papernapkin.org/pastebin/app/view/306

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.