00:19.32 | Uviz | Anyone? |
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.13 | cfrank | cluster??? |
01:32.12 | jasonb | cfrank: problem? |
01:33.46 | Uviz | So 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.34 | jasonb | Uviz: Which exact version of Tomcat? |
01:34.47 | Uviz | 5.5.15 or .16 if I am not wrong. |
01:38.52 | jasonb | Uviz: Don't use DefaultContext. Just use Context. |
01:39.13 | Uviz | I did in no vein. |
01:39.24 | Uviz | Actually, I've both of them in my server.xml. |
01:39.29 | Uviz | Let me remove DefaultContext. |
01:40.10 | *** join/#tomcat yel (n=yassine@xdsl-84-44-179-110.netcologne.de) |
01:41.41 | Uviz | Nope, same result. |
01:41.48 | Uviz | I get HTTP 404. |
01:42.14 | jasonb | Did you restart Tomcat? |
01:42.33 | Uviz | Yes, shutdown and then restart Tomcat & Apache webserver. |
01:42.58 | jasonb | You hadn't mentioned that you're also attempting to use Apache httpd with it. |
01:43.21 | jasonb | Put your server.xml and web.xml on a paste server so we can see how you have this configured. |
01:43.22 | Uviz | Oh, my apologies. |
01:44.03 | Uviz | When you say web.xml, are you refering to webapps' web.xml or /conf/web.xml? |
01:44.44 | jasonb | Well, both if you edited both. |
01:45.01 | jasonb | If you didn't edit conf/web.xml at all, then don't show it to us. |
01:50.06 | Uviz | http://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.08 | jasonb | Uviz: 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.39 | igorzolnikov | hi! |
14:26.49 | igorzolnikov | how know struts? |
14:26.58 | igorzolnikov | plz help me... |
14:27.57 | igorzolnikov | ... |
14:28.55 | igorzolnikov | who know struts? |
14:32.10 | igorzolnikov | who can help me... |
14:38.54 | *** join/#tomcat mlh_ (n=mlh@c211-30-62-11.belrs1.nsw.optusnet.com.au) |
14:39.42 | cfrank | igorzolnikov: Don't know. It times it takes a while to get any answer here |
14:41.17 | cfrank | igorzolnikov: 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.24 | Uviz | I really do not like Tomcat's documentations. Nothing seems to be working to explained throughly. |
15:25.46 | Uviz | Why 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.02 | Uviz | But if I keep it in conf/server.xml, it works just fine! |
15:26.56 | Uviz | As 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.58 | jasonb | Uviz: The docs are subtly wrong.. the Tomcat committers aren't focused on writing good, air-tight docs. |
15:44.27 | jasonb | Uviz: Writing good docs is a task left to us book authors. :) |
15:49.22 | Fracture | hi jasonb |
15:52.29 | jasonb | Hi 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.56 | a4akb | hmmm |
16:52.32 | Uviz | jasonb, Oh wait, so you are saying that particular page has some anomaly? |
16:53.19 | Uviz | Where 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.45 | thor | Hi 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.31 | jasonb | Uviz: Yes, that particular page is just wrong enough to cause you problems. |
19:17.32 | jasonb | Uviz: 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]tomi | it's really helpful to tail catalina.out -f |
19:45.27 | jasonb | Yes. 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.07 | jasonb | Anyone here happily using jsvc to start their Tomcat? I'm mainly just curious how many people really use it. |
23:08.05 | swente | jasonb: here! i! me! count me! i count as 5, don't i? :-) |
23:08.52 | swente | jasonb: is it true that your next book will cover only jsvc? |
23:15.06 | jasonb | Other than swente. :) |
23:15.33 | jasonb | swente: Hmm, only jsvc? Well, it will also cover Tomcat. :) |
23:15.50 | swente | ;-) |
23:15.55 | swente | tomcat? who uses tomcat?! |
23:17.08 | jasonb | swente: I just wrote an email to the JSW mailing list asking about the port 80 feature. We'll see what they say. |
23:17.13 | swente | jasonb: so you do recommend people to use iptables because you don't write that chapter? |
23:17.16 | swente | "JSW"? |
23:17.23 | jasonb | Java Service Wrapper |
23:17.29 | swente | ah |
23:17.47 | jasonb | swente: The text about jsvc for the book is nearly complete now, actually. |
23:17.55 | jasonb | swente: That's what I'm working on this weekend. |
23:18.27 | jasonb | That example jsvc init script example in there really sucks. |
23:18.51 | jasonb | (that comes in Tomcat's jsvc.tar.gz) |
23:20.41 | swente | jasonb: what's so bad about it? |
23:21.20 | jasonb | swente: 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.41 | swente | CATALINA_HOME=/home1/jakarta/jakarta-tomcat-4.1/build |
23:21.42 | swente | oh ic |
23:21.45 | jasonb | heh |
23:21.56 | jasonb | What a mess. |
23:22.10 | swente | hmm .. i thought it'd be just an "example", i didn't worry about that |
23:22.18 | jasonb | What 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.21 | swente | but - from a book-authors view it's terrible i assume *g* |
23:22.31 | jasonb | yup. |
23:22.50 | jasonb | I've been kneeding my brain about it since yesterday. |
23:23.09 | swente | in a boo, i'd expect it like "CATALINA_HOME=</your/path/to/catalina>" |
23:23.16 | swente | +k |
23:23.46 | jasonb | well, it *could* be something like CATALINA_HOME="`which java`" |
23:23.51 | jasonb | oops.. |
23:23.57 | jasonb | JAVA_HOME I mean |
23:24.17 | jasonb | CATALINA_HOME isn't easy to find programmatically. |
23:24.29 | swente | i would not even attempt that |
23:24.53 | swente | and `which java` might be errorprone as tomcat is vm-version-dependant |
23:25.03 | jasonb | The problem with finding JAVA_HOME programmatically is that there could be lots of JAVA_HOMEs. :) |
23:25.15 | swente | yes |
23:25.30 | swente | and here and in #eclipse people often find out they mess with different vms |
23:25.40 | jasonb | But, most linux ones are /usr/java/something if it's a Sun VM. |
23:26.00 | jasonb | And usually Tomcat is /var/tomcat5 (sadly) |
23:26.18 | swente | /usr/lib/j2sdk1.5-sun [debian] |
23:26.27 | jasonb | ugh. |
23:26.33 | jasonb | Debian and Gentoo are just random. |
23:26.37 | swente | [make-javapackage] |
23:26.46 | jasonb | blah. |
23:26.58 | Uviz | jasonb, Are you an author? |
23:27.07 | jasonb | Uviz: Who, me? :) |
23:27.13 | Uviz | Yes. |
23:27.24 | jasonb | Uviz: Well.. a bit. |
23:27.41 | Uviz | What technologies do you write about? |
23:27.53 | jasonb | Well, publicly, Tomcat. |
23:28.14 | jasonb | But, I write even more at work.. and right now it's not very much about Tomcat, but that will increase. |
23:28.17 | Uviz | So you are what we call an expert? :) |
23:28.41 | jasonb | Maybe on the subject of Tomcat.. but only because I've tinkered with it for too many years. |
23:28.42 | swente | he's good in spelling 8-) |
23:28.56 | jasonb | :) |
23:29.40 | jasonb | I ain't no good at grammer.. And, I mispel lotsa stuff in thu book. :) |
23:29.55 | Uviz | I 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.15 | jasonb | Last week I presented a 47 page paper that I wrote to a NASA review board. :) |
23:30.41 | jasonb | Uviz: Well, want me to look at your configs the way they are now? |
23:31.39 | Uviz | It'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.05 | jasonb | Uviz: Well, your context should have reloadable="true". I don't know if you had that in there or not. |
23:32.35 | Uviz | Yes, <Context> and <DefaultContext>, both had reloadable="true". |
23:32.44 | jasonb | Uviz: What version of Tomcat? |
23:32.49 | Uviz | I tried each exclusively, no luck. |
23:32.52 | Uviz | 5.5.15. |
23:33.11 | jasonb | Uviz: 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.27 | jasonb | Uviz: You should have <Context>// |
23:33.36 | jasonb | (take the two slashes off the end.. :) |
23:33.43 | Uviz | I can dump .class in WEB-INF/classes and run the servlet just fine w/o restarting Tomcat. |
23:33.59 | Uviz | Yes, I took DefaultContext out. |
23:34.51 | jasonb | Okay, so you want Tomcat to auto-restart just your webapp whenever you modify its web.xml file? |
23:34.52 | Uviz | But I can modify web.xml, for example changing url-mapping and point my browser to it. |
23:35.06 | jasonb | can or can't? |
23:35.19 | Uviz | I cannot. |
23:35.54 | Uviz | That is, if I modify web.xml, the changes wouldn't take effect until I restart the server. |
23:35.58 | jasonb | Add this inside your <Context> container element.. (this new element): |
23:36.00 | jasonb | <WatchedResource>WEB-INF/web.xml</WatchedResource> |
23:36.43 | Uviz | That's in conf/context.xml actually. |
23:36.43 | jasonb | Then restart Tomcat. |
23:37.08 | Uviz | Do I need to add it to server.xml's <Context> as well? |
23:37.35 | jasonb | If 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.47 | jasonb | And, I suggest server.xml. |
23:38.33 | Uviz | Uh, I see. Ok, so how is context.xml being called? |
23:38.45 | jasonb | Magically. |
23:38.49 | Uviz | Hah. |
23:39.05 | jasonb | So, you're better off configuring your context in server.xml. |
23:42.28 | Uviz | Ok, didn't work. |
23:42.48 | Uviz | I changed the url-mapping of a servlet, the old one still works but not the new mapping. |
23:43.49 | jasonb | You should be watching your logging to see if/when tomcat is restarting your webapp. |
23:44.08 | jasonb | But, since it didn't work, you probably have something misconfigured. |
23:44.39 | jasonb | What files are in your conf/Catalina/localhost/ dir at this point? |
23:44.48 | Uviz | Perhaps. What configurations (attribute) would tell Tomcat to restart my webapp? |
23:45.18 | Uviz | host-manager.xml and manager.xml. |
23:45.34 | jasonb | reloadable="true" on the Context element, plus you may need that WatchedResource element inside <Context></Context> |
23:45.48 | jasonb | okay, those context xml fragment files are okay. |
23:45.59 | jasonb | Now, post your server.xml file on a paste server. |
23:46.18 | Uviz | jasonb, Actually I placed WatchedResource element inside <Context> of server.xml's <Host>. |
23:46.33 | jasonb | Also, when you change your web.xml file, how are you doing that? |
23:46.52 | jasonb | Uviz: Post your server.xml .. that's the only way we can be sure you configured it right. |
23:47.48 | Uviz | Ok, 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.24 | jasonb | Great. What's the path to the web.xml file that you're modifying? |
23:48.25 | Uviz | Then point my browser to the new URI see if the changes has been made which of course, don't. |
23:49.10 | Uviz | The path is webapps/vh/application/WEB-INF/web.xml |
23:49.56 | Uviz | I've configured Apache server, jk_mod, and Tomcat to run my web applications on a virtual host (i.e. vh). |
23:54.10 | jasonb | Uviz: Well, okay, so now I can't go any further without seeing your server.xml. |
23:55.42 | Uviz | http://papernapkin.org/pastebin/app/view/306 |